Revert "Added some tex magic"

This reverts commit 2190d4227f3735a2a753ec15219a5847b6631517.