LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Will Robertson <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Sat, 3 Sep 2011 16:22:26 +0930
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
Hi all,

Now this sure caused some head scratching. In the process of unicode-math testing some code which otherwise worked started breaking; here's a minimal example:

\documentclass{article}
\usepackage{etex}
\newcount\ii
\loop
  \advance\ii by 1\relax
  \expandafter\newcount\csname count@\number\ii\endcsname
  \ifnum\ii<145 % <- exactly!
\repeat
\DeclareMathVersion{xits}
\begin{document}

The culprit being largely the following line in \new@mathversion:

 \global\expandafter\newcount\csname c@\expandafter \@gobble\string#1\endcsname

When the lower level of registers runs out, etex.sty's \alloc@ redefines \newcount to use the extended pool; the execution of this branch throws an error when preceded by \global.

As far as I know writing \global\newcount is the same as \newcount, so I'll change this in the 2e code.

-- Will

ATOM RSS1 RSS2