<div dir="ltr">Hi<br><br>Since XeTeX allows you to have 256 math families instead 16, I was wondering if this could be done in xelatex.ini. The required changes are:<br><br>\def\new@mathgroup{\alloc@8\mathgroup\chardef\@cclvi}<br>
\let\newfam\new@mathgroup<br>\def\select@group#1#2#3#4{%<br> \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi<br> {%<br> \ifmmode<br>  \ifnum\csname c@mv@\math@version\endcsname<\@cclvi<br>     \begingroup<br>
       \escapechar\m@ne<br>       \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3%<br>       \globaldefs\@ne  \math@fonts<br>     \endgroup<br>     \init@restore@version<br>     \xdef#1{\noexpand\use@mathgroup\noexpand#2%<br>
             {\number\csname c@mv@\math@version\endcsname}}%<br>     \global\advance\csname c@mv@\math@version\endcsname\@ne<br>   \else<br>     \let#1\relax<br>     \@latex@error{Too many math alphabets used in<br>                   version \math@version}%<br>
        \@eha<br>   \fi<br> \else \expandafter\non@alpherr\fi<br> #1{#4}%<br> }%<br>}<br>\def\document@select@group#1#2#3#4{%<br> \ifx\math@bgroup\bgroup\else\relax\expandafter\@firstofone\fi<br> {%<br> \ifmmode<br>   \ifnum\csname c@mv@\math@version\endcsname<\@cclvi<br>
     \begingroup<br>       \escapechar\m@ne<br>       \getanddefine@fonts{\csname c@mv@\math@version\endcsname}#3%<br>       \globaldefs\@ne  \math@fonts<br>     \endgroup<br>     \expandafter\extract@alph@from@version<br>
         \csname mv@\math@version\expandafter\endcsname<br>         \expandafter{\number\csname<br>                       c@mv@\math@version\endcsname}%<br>          #1%<br>     \global\advance\csname c@mv@\math@version\endcsname\@ne<br>
   \else<br>     \let#1\relax<br>     \@latex@error{Too many math alphabets used<br>                   in version \math@version}%<br>        \@eha<br>  \fi<br> \else \expandafter\non@alpherr\fi<br> #1{#4}%<br> }%<br>}<br>
</div>