LaTeX、ntheorem 包和 memoir 文档类:没有空间容纳新的 \count 错误

发布于 2024-08-25 03:54:07 字数 354 浏览 11 评论 0原文

所以我想使用 memoir 文档类和带有 thmmarks 选项的 ntheorem 包。当我尝试编译这样的文件时,出现“没有空间容纳新的 \count”错误。对此我能做什么?

带有 thmmarks 选项的 ntheorem 在文章中工作得很好,只要我不尝试使用 thmmarks 选项,ntheorem 在回忆录中工作得很好......

重新表述问题:有没有办法,我不知道,删掉我不使用回忆录类定义的一部分来释放一些 \counts 用于 ntheorem thmmarks?或者有没有办法改变 LaTeX 允许的 \counts 数量,以便有足够的数量可以共享?

(我完全意识到,坚持使用回忆录来排版大量定理文档有点反常,但那又怎么样。)

So I want to use memoir document class and the ntheorem package with the thmmarks option. When I try and compile a file like this, I get "no room for a new \count" errors. What can I do about this?

ntheorem with thmmarks option works fine in article, and ntheorem works alright in memoir as long as I don't try and use the thmmarks option...

To reformulate the question: Is there a way to, I don't know, cut out parts of the memoir class definitions that I don't use to free up some \counts for ntheorem thmmarks? Or is there a way to alter how many \counts LaTeX allows so that there are enough to share?

(I'm fully aware that insisting on using memoir for typesetting a theorem-heavy document is a little perverse, but what the heck.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬心 2024-09-01 03:54:07

请参阅有关此错误的 TeX 常见问题解答条目:没有空间容纳新“事物”

对于任何现代 LaTeX 安装,您都将使用 eTeX。因此,根据该常见问题解答条目,您应该能够通过

\usepackage{etex}

\documentclass 行之后立即插入来解决问题。如果这还不够,请尝试添加建议的 \reserveinserts{n} 行以及一些适当数量的附加插入(我想您可以通过反复试验找到),以保留额外的空间。 (对 reserveinserts ntheorem 进行一些 Google 搜索表明这是 ntheorem 包的一个常见问题,并发现建议 10 作为合理值,尽管您可能需要更多。)

如果有效,您还可以写信给回忆录类作者,并建议他在手册中添加对此效果的注释。

该线程还建议了另一种加载 ntheorem 包的方法,如果 \reserveinserts 不起作用的话,这可能会有所帮助:
http://newsgroups.derkeiler.com/存档/Comp/comp.text.tex/2009-03/msg00531.html

See the TeX FAQ entry about this error: No room for a new “thing”.

With any modern LaTeX installation, you're going to be using eTeX. Thus, based on that FAQ entry, you should be able to fix the problem by inserting

\usepackage{etex}

immediately after your \documentclass line. If that's insufficient, try also adding the \reserveinserts{n} line suggested there with some appropriate number of additional inserts (which I guess you can find by trial and error), to reserve additional space. (A bit of Google-searching on reserveinserts ntheorem indicates that this is a common problem with the ntheorem package, and finds a suggestion of 10 as a reasonable value, though you may need more.)

If that works, you might also write to the Memoir class author, and suggest that he add a note to this effect in the manual.

This thread also suggests an alternate method of loading the ntheorem package that may help, if \reserveinserts doesn't do the trick:
http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2009-03/msg00531.html

腹黑女流氓 2024-09-01 03:54:07

回忆录的设计目的并不是要设置所有的数学——因此得名回忆录,正因为如此,回忆录以自己的方式做事,并且提供了比文章、报告或书籍。但这是有代价的,因为某些软件包与回忆录不兼容……您可能最好使用文章、报告或书籍。然而,回忆录手册中存在大量错误。读它!

memoir wasn't really designed to be setting all that math-- hence the name memoir and as such, memoir does things in kind-of its own way, and provides much more functionality out of the box than article, report, or book. this comes at a cost though, as some packages aren't compatible with memoir... you might be better of using article, report or book. However, there is an extensive list of errors in the memoir manual. read it!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文