[XeTeX] Suggestion for xelatex.ini (enlarging math families from 16 to 256)
Vafa Khalighi
vafaklg at gmail.com
Wed Nov 23 14:57:07 CET 2011
Hi
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:
\def\new at mathgroup{\alloc at 8\mathgroup\chardef\@cclvi}
\let\newfam\new at mathgroup
\def\select at group#1#2#3#4{%
\ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
{%
\ifmmode
\ifnum\csname c at mv@\math at version\endcsname<\@cclvi
\begingroup
\escapechar\m at ne
\getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
\globaldefs\@ne \math at fonts
\endgroup
\init at restore@version
\xdef#1{\noexpand\use at mathgroup\noexpand#2%
{\number\csname c at mv@\math at version\endcsname}}%
\global\advance\csname c at mv@\math at version\endcsname\@ne
\else
\let#1\relax
\@latex at error{Too many math alphabets used in
version \math at version}%
\@eha
\fi
\else \expandafter\non at alpherr\fi
#1{#4}%
}%
}
\def\document at select@group#1#2#3#4{%
\ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
{%
\ifmmode
\ifnum\csname c at mv@\math at version\endcsname<\@cclvi
\begingroup
\escapechar\m at ne
\getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
\globaldefs\@ne \math at fonts
\endgroup
\expandafter\extract at alph@from at version
\csname mv@\math at version\expandafter\endcsname
\expandafter{\number\csname
c at mv@\math at version\endcsname}%
#1%
\global\advance\csname c at mv@\math at version\endcsname\@ne
\else
\let#1\relax
\@latex at error{Too many math alphabets used
in version \math at version}%
\@eha
\fi
\else \expandafter\non at alpherr\fi
#1{#4}%
}%
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20111124/1708bffc/attachment.html>
More information about the XeTeX
mailing list