4 ms·
You can change the catcode of the upercase "T" and define it as a macro that peeks some characters to see if it if part of a "Therefore". This may break other c
by gus_massa 13y ago
You can change the catcode of the upercase "T" and define it as a macro that peeks some characters to see if it if part of a "Therefore". This may break other commands that have the upercase T in their name, so it will create some random unexpected incompatibilities. (Many babel languages change catcodes to make accents easier to use, and therefore they create some random unexpected incompatibilities.)
More info about catcodes: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=activechars http://www.tex.ac.uk/cgi-bin/texfaq2html?label=activechars
- adiM 13y agoWith LuaTeX (the modern version of TeX), such catcode trickery is not needed. LuaTeX provides a hook into the file reader, and you can simply change transform the input as you read it. For an example in ConTeXt, see this answer on Tex.sx: http://tex.stackexchange.com/a/4174/323 http://tex.stackexchange.com/a/4174/323