LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version:
1.0 (Apple Message framework v1081)
Content-Type:
text/plain; charset=us-ascii
Date:
Sat, 3 Sep 2011 16:22:26 +0930
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
Content-Transfer-Encoding:
8bit
Message-ID:
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
From:
Will Robertson <[log in to unmask]>
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