[luatex] Behaviour of \mathstyle
Hans Hagen
pragma at wxs.nl
Sat Apr 9 12:12:31 CEST 2016
On 4/9/2016 11:46 AM, Joseph Wright wrote:
> Hello all,
>
> As noted by Enrico Gregorio
> (http://chat.stackexchange.com/transcript/message/28883985#28883985),
> the behaviour of \mathstyle seems to be odd:
>
> $\scriptstyle\count255=\mathstyle 3 \the\count255$\par
> $\scriptstyle\count255=\scriptstyle 3 \the\count255$\bye
>
> Unlike similar variables, \mathstyle is not terminated correctly. I also
> see that \(show)the\mathstyle is an error rather than what one might
> expect here.
>
> The manual doesn't specify, but I assume this is not deliberate?
the manual specifies that it's a convert command (and readonly) so it
just injects a sequence of tokens
you can use
\numexpr\mathstyle\relax
if you want to terminate
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the luatex
mailing list