Document Classesto many environments with ntheorem

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
warrence
Posts: 16
Joined: Mon May 05, 2008 10:43 pm

to many environments with ntheorem

Post by warrence »

hi there!

i have some trouble with the ntheorem package (again).
i get the following error:
! No room for a new \count .
\ch@ck ...\else \errmessage {No room for a new #3}
\fi
l.1306 \newcount\MPnumerator
\MPnumerator = 1073741824 % 2^{30}
i have defined 26 different theorem-like environments with this package. among them 3 framed environments and 7 without counters. if i comment out one of the "\newtheorem" commands (no matter if numbered or not) it works. it works fine without ntheorem as well (but then i cannot use the framed env.).
does anyone have an idea on how to get more theorem-like environments with ntheorem?

any help will be appreciated. thanks in advance,
stefan.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: to many environments with ntheorem

Post by balf »

You might try loading the etex package. I remember I had a similar problem once and it was solved loading this package, which increases the number of available registers. Load it as the first one, or at least before ntheorem.
B.A.
warrence
Posts: 16
Joined: Mon May 05, 2008 10:43 pm

Re: to many environments with ntheorem

Post by warrence »

thank you, that works fine.
Post Reply