[texhax] No room for new \count
sdh33 at cornell.edu
Sun Aug 22 05:24:31 CEST 2010
Can you figure out which line of code is causing the error? (it
should show up after "l." in the error message). If you want to see
more details of how TeX got there, you can try setting
\errorcontextlines=100 to get more context.
Without knowing anything else, though, my guess would be that you're
including a bunch of other packages that all have their own counters,
and together you're going over the limit. \newcount is declared
\outer by default, so there shouldn't be any way of looping over it.
Also, eTeX provides many more count registers, though I don't know the
details of how to use it (or if that's on by default).
On Sat, Aug 21, 2010 at 8:09 PM, Brandon Kuczenski <brandon at 301south.net> wrote:
> I recently ran into the error "No room for new \count". I understand that
> TeX only has room for 256 counters, but I don't think I'm using this many. I
> think, instead, that I have some kind of error in my coding, which has
> gotten considerably more complicated in the last few weeks.
> I'm using arrayjobx, with many arrays (probably around 20), and a number of
> fancy tricks to index into them. And I'm using multido, with 2 and
> sometimes 3 levels of nesting. Plus a couple of custom styles which use
> counters. But I only declare \newcount 8 times, and they're all at the base
> level in style files (never in macros). So I can't imagine how I could be
> running out of counters.
> Any suggestions as to how I can try to troubleshoot? What commands other
> than \newcount might cause a counter to be allocated?
> I can try to produce a minimal example, but as I said, the code I'm working
> with has gotten quite complex.
> Thanks in advance,
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
More information about the texhax