lualatex 和 polyglossia 错误“缺少数字,视为零。”

lualatex 和 polyglossia 错误“缺少数字,视为零。”

我刚刚遇到了 lualatex 和 polyglossia 最奇怪的错误。我正在尝试编译一个非常简单的文件,如下所示:

\documentclass[a4paper]{article}
\usepackage{polyglossia}
\begin{document}
\end{document}

使用包含所有最新更新的 MiKTeX 2.9 rev.5238 时出现以下错误:

This is LuaTeX, Version beta-0.80.0 (MiKTeX 2.9) (rev 5238)
(./Main.tex
LaTeX2e <2015/01/01>
Babel <3.9l> and hyphenation patterns for 69 languages loaded.
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/base/article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/base/size10.clo"))
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/polyglossia/polyglossia.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/etoolbox/etoolbox.sty")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/makecmds/makecmds.sty")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/xkeyval/xkeyval.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/generic/xkeyval/xkeyval.tex"
("C:/Program Files (x86)/MiKTeX 2.9/tex/generic/xkeyval/xkvutils.tex"
("C:/Program Files (x86)/MiKTeX 2.9/tex/generic/xkeyval/keyval.tex"))))
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/fontspec/fontspec.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/l3kernel/expl3.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/l3kernel/expl3-code.tex")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/l3kernel/l3unicode-data.def")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/l3kernel/l3pdfmode.def"))
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/l3packages/xparse/xparse.sty")
("C:/Program Files (x86)/MiKTeX 2.9/tex/luatex/luaotfload/luaotfload.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/luatex/luatexbase/luatexbase.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/luatex/ctablestack/ctablestack.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/base/ltluatex.tex"
! Missing number, treated as zero.
<to be read again>
\relax
l.140 \newcatcodetable\catcodetable@initex

?
! Emergency stop.
<to be read again>
\relax
l.140 \newcatcodetable\catcodetable@initex

 264 words of node memory still in use:
    nodes
   avail lists: 2:6,3:3,6:2,9:2
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on Main.log.

知道哪里出了问题吗?我没什么主意了……

答案1

你应该升级你的乳胶系统,然后问题就会消失,我不记得那个错误,但我能看到它发生的唯一方式是如果\e@alloc@ccodetable@count有不正确的定义(\relax最有可能)

\newcount如果您在 ltluatex.tex 第 140 行现有行之前立即添加此行\e@alloc@ccodetable@count=\z@,则文件应该如下所示:

\newcount\e@alloc@ccodetable@count
\e@alloc@ccodetable@count=\z@

相关内容