Tagged Questions
13
votes
2answers
268 views
Macro to take a character as argument, make it active, then \def it.
I have a XeLaTeX document in which I want some unicode symbols to be auto-substituted, like ¼ → 1/4, » → >>, « → <<. But instead of a long list like
\catcode`\¼=\active\def¼{1/4}
...