miktex:超出森林 tex 容量

miktex:超出森林 tex 容量

这是后续问题forest tex 容量超出 [保存大小=50000]它收到两个答案。两者都解决了 op 问题,并建议将 oplatex分布升级为texlive 2018

我使用最近的(昨天升级的)测试了这个(巨大的)森林示例miktex并收到类似的错误:

! TeX capacity exceeded, sorry [save size=50000].
\pgf@process #1->{
                  #1\global \pgf@x =\pgf@x \global \pgf@y =\pgf@y }
l.982 \end{forest}

If you really absolutely need more capacity,
you can ask a wizard to enlarge me.

Here is how much of LuaTeX's memory you used:
 85529 strings out of 494300
 244514,1373583 words of node,token memory allocated 204422 words of node memory still in use:
   4591 hlist, 2 rule, 517 disc, 2 dir, 5492 glue, 668 kern, 6951 glyph, 11477 a
ttribute, 52 glue_spec, 11477 attribute_list, 1 temp, 27 if_stack, 1 write, 6882
 pdf_literal, 2 pdf_colorstack nodes
   avail lists: 1:9,2:79,3:18,4:1,5:12,6:6,7:17,8:1,9:8,10:1,12:1
 89047 multiletter control sequences out of 65536+200000
 26 fonts using 5681863 bytes
 184i,9n,190p,1590b,50000s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

如何说服miktex编译这个forest tex 容量超出 [保存大小=80000]文档没有错误吗?

我从.log文件中复制以下内容到 lua 相关部分:

This is LuaTeX, Version 1.09.2 (MiKTeX 2.9.6960 64-bit)  (format=lualatex 2019.2.26)  26 FEB 2019 14:07
 restricted system commands enabled.
**showframe-color.tex
(C:/Users/Zarko/Downloads/LaTeX-SE/SE-tests/showframe-color.tex
LaTeX2e <2018-12-01>
Lua module: luaotfload-main 2019-01-28 2.95 luaotfload entry point
Lua module: luaotfload-init 2019-01-28 2.95 luaotfload submodule / initializatio
n
Lua module: lualibs 2019-01-28 2.63 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2019-01-28 2.63 ConTeXt Lua libraries -- extended c
ollection.
Lua module: luaotfload-log 2019-01-28 2.95 luaotfload submodule / logging
Lua module: luaotfload-parsers 2019-01-28 2.95 luaotfload submodule / filelist
Lua module: luaotfload-configuration 2019-01-28 2.95 luaotfload submodule / conf
ig file reader
luaotfload | conf : Root cache directory is C:/Users/Zarko/AppData/Local/MiKTeX/
2.9/luatex-cache/generic/names.
luaotfload | init : Loading fontloader “fontloader-2019-01-28.lua” from kpse
-resolved path “C:/Users/Zarko/AppData/Local/Programs/MiKTeX 2.9/tex/luatex/lu
aotfload/fontloader-2019-01-28.lua”.
Lua-only attribute luaotfload@state = 1
Lua-only attribute luaotfload@noligature = 2
Lua-only attribute luaotfload@syllabe = 3
luaotfload | init : Context OpenType loader version “3.107”
Inserting `luaotfload.node_processor' at position 1 in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' at position 1 in `hpack_filter'.
Lua module: luaotfload-loaders 2019-01-28 2.95 luaotfload submodule / callback h
andling
Inserting `luaotfload.define_font' at position 1 in `define_font'.
Lua module: luaotfload-database 2019-01-28 2.95 luaotfload submodule / database
Lua module: luaotfload-colors 2019-01-28 2.95 luaotfload submodule / color
Lua-only attribute luaotfload_color_attribute = 4
Lua module: luaotfload-resolvers 2019-01-28 2.95 luaotfload submodule / resolver
s
luaotfload | conf : Root cache directory is C:/Users/Zarko/AppData/Local/MiKTeX/
2.9/luatex-cache/generic/names.
Lua module: luaotfload-features 2019-01-28 2.95 luaotfload submodule / features
Lua module: luaotfload-letterspace 2019-01-28 2.95 luaotfload submodule / color
Lua module: luaotfload-auxiliary 2019-01-28 2.95 luaotfload submodule / auxiliar
y functions
Inserting `luaotfload.aux.set_sscale_dimens' at position 1 in `luaotfload.patch_
font'.
Inserting `luaotfload.aux.patch_cambria_domh' at position 2 in `luaotfload.patch
_font'.
Inserting `luaotfload.aux.fixup_fontdata' at position 1 in `luaotfload.patch_fon
t_unsafe'.
Inserting `luaotfload.aux.set_capheight' at position 3 in `luaotfload.patch_font
'.
Inserting `luaotfload.rewrite_fontname' at position 4 in `luaotfload.patch_font'
.
luaotfload | main : initialization completed in 1.477 seconds

答案1

可以增加 MiKTeX 中的值

对于 PdfLaTeX,您可以通过在编辑器中添加附加选项来更改运行时编译值,例如 pdfLaTeX -save-size=80000 其他选项如 -shell-escape 或 -synctex=...

但是我无法在我的编辑器 LuaLaTeX 命令行上使用相同的临时设置

我必须导航到我的配置文件夹,并且每个用户的配置都会有所
不同不是texmfs\安装\miktex\配置
我使用便携式安装,所以对我来说
它位于 texmfs\config\miktex\config请注意,您的系统中存在多个与 LuaLaTeX.ini 同名的文件。

它应该位于包含大约十几个文件的文件夹中

控制台.ini 格式.ini 语言.ini ... ... yap.ini

如果您没有名为 lualatex.ini 的文件,请添加它(如果它包含大量内容,则可能是错误的,因此请检查相邻的文件)

如果您满意它是正确的位置,那么添加此行save_size=1000000 ,编译现在就可以工作了,对我来说确实如此。

PS 请耐心等待,由于数据量太大,编译过程中确实会暂停几分钟

相关内容