在 MikTex (2.9) 中使用 pdflatex 运行大型文档时,我收到错误消息:
! TeX capacity exceeded, sorry [number of destination names (dest_names_size)=500000].
我尝试通过以下方式修复此问题:
pdflatex -dest-names-size=900000
但这屈服了(C:/Users/User/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log
):
2018-04-15 14:15:51,060+0200 INFO pdflatex - starting with command line: pdflatex -dest-names-size=900000 test.tex
2018-04-15 14:15:51,066+0200 INFO pdflatex - allowing known shell commands
2018-04-15 14:15:51,067+0200 INFO pdflatex - enabling input (output) from (to) processes
2018-04-15 14:15:51,067+0200 FATAL pdflatex - The command line options could not be processed.
2018-04-15 14:15:51,067+0200 FATAL pdflatex - Info: optionError="unknown option"
2018-04-15 14:15:51,067+0200 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\webapp.cpp
2018-04-15 14:15:51,067+0200 FATAL pdflatex - Line: 341
2018-04-15 14:15:51,077+0200 INFO pdflatex - finishing with exit code 1
过去,我曾通过以下方式解决与池大小相关的类似问题:
pdflatex -pool-size=2000000 test.tex
在 MikTex 文档中(https://mirror.cyber-perikarp.eu/CTAN/systems/win32/miktex/doc/2.9/miktex.pdfpdftex.cfg
)我找到了对 pdfTex (第 103 页)的引用,并在第 79 页上找到了有关通过以下方式添加值的参考:
initexmf --edit-config-file pdftex.cfg
所以我尝试了:
dest_names_size 900000
以及(分别):
dest-names-size 900000
dest_names_size = 900000
dest-names-size = 900000
但都没什么帮助。
所以现在的问题是我应该怎么做才能正确配置。
答案1
您在命令行中犯了一个错误:日志显示:
-目标名称大小=900000
我想这是:
目标名称大小=900000
弗朗索瓦