[texhax] [lltx] issue with unicode-math, spanish and LuaLaTeX

Donald Arseneau asnd at triumf.ca
Thu Jul 14 21:53:13 CEST 2011


Philipp Stephani <st_philipp at yahoo.de> writes:

> The correct syntax is \showthe\test (mathematical character shorthands are numbers). TeX does some weird things with your syntax. Is this documented somewhere?
> 
> $ tex
> This is TeX, Version 3.1415926 (TeX Live 2011)
> **\mathchardef\a="41
> 
> *\showthe\mathcode\a
> > 28993.
> <*> \showthe\mathcode\a
>                        
> ? 
> 
> *\showthe\a
> > 65.
> <*> \showthe\a
>               
> ? 
> 
> What is the meaning of \mathcode\controlseq?


Given that you started out with the answer, I am surprised you end with 
this question.  If \controlseq returns a number in the range of a character
code, then  \mathcode\controlseq gives the mathcode of that character.  The
example above indicates that the letter A has a mathcode of 28993.

Donald Arseneau                          asnd at triumf.ca


More information about the texhax mailing list