我有一份main.tex
文档,其中包含 30 个.tex
文件的内容;最终文档应该总共有 30 个章节。每章大约 10-15 页长,所以这是一份相当长的文档。
我lualatex -interaction=nonstopmode --shell-escape --enable-write18 main.tex
从Linux命令行执行来编译我的.pdf
文档。
我可以成功编译最多约 22 个章节(即当我注释掉文件中的其他 8 个章节时main.tex
)。但我就是无法全部需要编译 30 个章节 - 请参阅下面给出的错误消息。我已经排除了 30 个章节中某个章节存在错误的可能性。当我注释掉其余章节时,每个章节都可以成功编译。
我已经清楚,这个错误信息取决于“所有内容的总和”,而不是章节本身的内容/语法。但是,我的理解仅限于此。有人知道这个错误信息到底是什么意思吗? 更重要的是,有没有解决方案可以缓解此错误?请大家帮忙。
如果您愿意,我可以将您添加为这个 LaTeX 项目的 (私人) GitHub 存储库的合作者,以便您可以更深入地了解问题的根源。
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:24653: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.375 \end{comps}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:24482: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:24482: stack overflow
.
<template> \endtemplate
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:24868: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:24868: stack overflow
.
<template> \endtemplate
l.379 \end{remglyph}
warning (node filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-202
1-01-07.lua:35032: stack overflow
.
<recently read> \endgraf
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:35032: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...020/texmf-dist/tex/luatex/luaotfload/luaotfl
oad-szss.lua:48: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...020/texmf-dist/tex/luatex/luaotfload/luaotfl
oad-szss.lua:48: stack overflow
.
<template> \endtemplate
l.379 \end{remglyph}
warning (hpack filter): error: ...020/texmf-dist/tex/luatex/luaotfload/luaotfl
oad-szss.lua:48: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...ve/2020/texmf-dist/tex/luatex/luatexja/ltj-d
irection.lua:516: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...live/2020/texmf-dist/tex/luatex/luatexja/ltj
-jfmglue.lua:1311: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:34923: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:35101: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (hpack filter): error: ...xmf-dist/tex/luatex/luaotfload/fontloader-20
21-01-07.lua:35101: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.379 \end{remglyph}
warning (mlist to hlist): error: ...ve/2020/texmf-dist/tex/luatex/luatexja/ltj
-charrange.lua:83: stack overflow
.
\remcom #1->$\lceil $
#1$\rfloor $
l.379 \end{remglyph}
答案1
我对这个文档感到很不满
\documentclass{article}
\usepackage{luatexja}
\begin{document}
\ExplSyntaxOn
\int_step_inline:nn{1000}
{
\int_step_inline:nn {500} %works with 200
{\hbox{blub}\space } \par
}
\ExplSyntaxOff
\end{document}
warning (hpack filter): error: ...stall/tex/latex-dev/luaotfload/fontloader-202
2-06-15.lua:25611: stack overflow
.
<to be read again>
\ltj@@reset@badness
l.92 }
我假设您的文档中也有很多框。请向 luatexja 维护者报告此问题。