# [dev-context] Example on \mathstyle + \mathchoice + grouping in the LuaMetaTeX Manual

Sebastian Miele sebastian.miele at gmail.com
Tue Feb 4 23:29:36 CET 2020

It took me longer than I want to admit here to mentally parse the
example at the end of section 8.3.1 on \mathstyle, \mathchoice, and
grouping. In particular it took a while until I noticed that the b case
has no \bgroup ... \egroup. This may very well be because of temporary
stupidity on my side.

But nonetheless I recommend changing the example either so that the
mathchoices between \bgroup ... \egroup receive one more level of
indentation, or, even better, to change the example into something like:

\def\a#1{
\mathchoice
{\bf \scriptstyle       (#1:d :\mathstyle)}
{\bf \scriptscriptstyle (#1:t :\mathstyle)}
{\bf \scriptscriptstyle (#1:s :\mathstyle)}
{\bf \scriptscriptstyle (#1:ss:\mathstyle)}}