[NTG-context] Math letters in commands

Hans Åberg haberg-1 at telia.com
Tue Sep 13 10:27:09 CEST 2016

> On 13 Sep 2016, at 07:57, Hans Hagen <pragma at wxs.nl> wrote:

> sure, but when you do
> \appendtoks
>  \catcode`\‘=\active
>  \def‘#1’{\csname #1\endcsname}
> \to …

FYI, this does not work for me; I must use LuaTeX \letcharcode:

\def\usemathcommand#1’{\csname #1\endcsname}

  \letcharcode `‘ \usemathcommand
\to \everymathematics

Then “$” must be followed by a character other than ‘ for this command to be seen, but it works with “$$”.

More information about the ntg-context mailing list