XeTeX 中奇怪的 ```tableofcontents`` 错误

XeTeX 中奇怪的 ```tableofcontents`` 错误

我目前正在用 XeTeX 排版一本书,但在 overleaf 中出现了一个奇怪的错误:

\alloc@ ...else \errmessage {No room for a new #2}
                                                  \fi \fi 
l.41 {\sloppy\tableofcontents
                             }
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.

! Missing number, treated as zero.
<to be read again> 
                   \tf@toc 
l.41 {\sloppy\tableofcontents
                             }
A number should have been here; I inserted '0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

我也只是将output.toc其打印为目录项。一些图书模板的包似乎也存在一些问题:

\usepackage{morewrites} %more helper files to write to
\usepackage{etex}
\reserveinserts{18}

在 Macintosh 上使用 TeX Live 时出现以下错误消息:

ERROR: Undefined control sequence.

--- TeX said ---
<recently read> \reserveinserts 
                                
l.283 \reserveinserts
                     {18}
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.

有人知道如何解决这个奇怪的错误吗?提前感谢您的帮助!

相关内容