错误:(换行符):在可自由选择项中发现类型为 whatsit 且子类型为 19 的无效节点

错误:(换行符):在可自由选择项中发现类型为 whatsit 且子类型为 19 的无效节点

当尝试使用 LuaLaTeX 构建以下文档时,我的计算机运行失败,并出现标题中的错误:

\documentclass{article}
\usepackage{hyperref}
\usepackage{polyglossia}

\setmainfont{Gentium Plus}

\begin{document}
See also \href{https://en.wiktionary.org/}{Wiktio}.
\end{document}

奇怪的是,如果我将链接文本更改为Wikti,删除链接或使用其他字体,它就会起作用。

我曾是无法在 Overleaf 上重现它,所以也许它与我电脑上安装的字体有关?我尝试清除,~/.texlive2021/但没有帮助。

知道该消息的含义或如何解释它吗?

完整日志:

$ lualatex  pisma.tex
This is LuaHBTeX, Version 1.13.0 (Web2C 2021/NixOS.org) 
 restricted system commands enabled.
(./pisma.tex
LaTeX2e <2020-10-01> patch level 4
 L3 programming layer <2021-02-18>
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class

(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/base/size10.clo
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hyperref/hyperref.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/ltxcmds/ltxcmds.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/iftex/iftex.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/pdftexcmds/pdftexcmds.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/infwarerr/infwarerr.sty))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/graphics/keyval.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/kvsetkeys/kvsetkeys.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/pdfescape/pdfescape.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hycolor/hycolor.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/letltxmacro/letltxmacro.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/auxhook/auxhook.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/kvoptions/kvoptions.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hyperref/pd1enc.def)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hyperref/hyperref-langpatches.def)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/intcalc/intcalc.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/etexcmds/etexcmds.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hyperref/puenc.def)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/url/url.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/bitset/bitset.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/bigintcalc/bigintcalc.sty))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/base/atbegshi-ltx.sty))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hyperref/hluatex.def
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/stringenc/stringenc.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/base/atveryend-ltx.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/rerunfilecheck/rerunfilecheck.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/uniquecounter/uniquecounter.sty)))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/polyglossia/polyglossia.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/etoolbox/etoolbox.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/makecmds/makecmds.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/xkeyval/xkeyval.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/xkeyval/xkeyval.tex
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/xkeyval/xkvutils.tex)))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/fontspec/fontspec.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/l3packages/xparse/xparse.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/l3kernel/expl3.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/l3backend/l3backend-luatex.def))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/l3packages/xparse/xparse-2020-10-01.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/l3packages/xparse/xparse-generic.tex)))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/fontspec/fontspec-luatex.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/base/fontenc.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/fontspec/fontspec.cfg)))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/luatex/luatexbase/luatexbase.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/luatex/ctablestack/ctablestack.sty))
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/polyglossia/gloss-latex.ldf)) (./pisma.aux)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/base/ts1cmr.fd)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/hyperref/nameref.sty
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/latex/refcount/refcount.sty)
(/nix/store/xygf45hbpwbrwhixhrpi4kdp6dyikd5g-texlive-combined-2021/share/texmf/
tex/generic/gettitlestring/gettitlestring.sty)) (./pisma.out) (./pisma.out)
! error:  (linebreak): invalid node with type whatsit and subtype 19 found in d
iscretionary
!  ==> Fatal error occurred, no output PDF file produced!

答案1

这是一个 luaotfload 错误,将在下一次 luaotfload 更新中修复,但在此之前,您可以使用 Node shaper 而不是 HarfBuzz 来解决它:

\documentclass{article}
\usepackage{hyperref}
\usepackage{polyglossia}

\setmainfont[Renderer=Node]{Gentium Plus}

\begin{document}
See also \href{https://en.wiktionary.org/}{Wiktio}.
\end{document}

在此处输入图片描述

相关内容