
Mac 上の texlive をバージョン 2016 にアップデートした後、ドキュメントをコンパイルできなくなりました。texlive 2013 では正常に動作します。
次に例を示します。
\documentclass[12pt]{report}
\usepackage[vlined,linesnumbered,noend,ruled]{algorithm2e}
\usepackage{xeCJK}
\begin{document}
hello
\end{document}
出力:
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/report.cls
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/xspace.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/relsize/relsize.sty)
********************************************************
Package `algorithm2e' Release 5.1 -- october 19 2015 --
- [email protected] mailing list for announcement about releases
- [email protected] mailing list for discussion about package
subscribe by emailing [email protected] with 'subscribe <list> <firstname name>'
- Author: Christophe Fiorio ([email protected])
********************************************************
) (/usr/local/texlive/2016/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.st
y) (/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
! TeX capacity exceeded, sorry [save size=80000].
<argument> ..._xeCJK_begin_int =\l__xeCJK_tmp_int
\int_incr:N \l__xeCJK_begi...
l.642 \xeCJKResetCharClass
No pages of output.
Transcript written on test.log.
保存サイズを大きくしようとしましたが、うまくいきませんでした。この問題を解決する方法について何かアイデアはありますか?
答え1
の1061行目に問題がありますalgorithm2e.sty
。
\newboolean{algocf@displaygroupmarkers}{\setboolean{algocf@displaygroupmarkers}{false}
しかし、{
その前の括弧\setboolean
は間違っています(バランスが取れていません)。
これはほとんど気付かれず、ログ ファイルに警告が記録されるだけです。 の場合xeCJK
、大量の割り当てが開かれたグループ内で実行されるため、メモリが枯渇します。
開発者が問題を修正するまでの解決策は(数か月前にすでに報告済み)、ファイルのコピーを作成し、間違った部分を削除して{
、「個人用」TeX ツリーまたはメイン ファイルと同じフォルダーに配置することです。