以下示例在 TeX Live 2020 系统 ( This is LuaHBTeX, Version 1.12.0 (TeX Live 2020)
) 上编译,但在最新的 TeX Live 2021 ( This is LuaHBTeX, Version 1.13.2 (TeX Live 2021) (format=lualatex 2021.7.3)
) 上失败。
! error: (nodes): trying to delete an attribute reference of a non attribute node
示例中的LetterSpace
功能、\emph
宏和组合有什么特别之处?这是 LuaLaTeX 的一个错误吗?各个版本都是一样的。-
fontspec
% !TeX TS-program = lualatex
\listfiles
\documentclass{article}
\usepackage{fontspec}
\newfontfamily{\trackingfont}{lmroman10}
[%
Extension = .otf,%
UprightFont = *-regular,%
ItalicFont = *-italic,%
LetterSpace = 12.5,%
]%
\begin{document}
AAA \emph{BBB}-CCC% works
{\trackingfont AAA BBB-CCC}% works
{\trackingfont AAA \emph{BBB} CCC}% works
{\trackingfont AAA \emph{BBB}-CCC}% does not work
\end{document}
TeX Live 2020 上的软件包列表:
*File List*
article.cls 2020/04/10 v1.4m Standard LaTeX document class
size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
fontspec.sty 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
xparse.sty 2021-01-09 L3 Experimental document command parser
expl3.sty 2021-02-18 L3 programming layer (loader)
l3backend-luatex.def 2021-03-18 L3 backend support: PDF output (LuaTeX)
xparse-2020-10-01.sty
fontspec-luatex.sty 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
fontspec.cfg
ts1cmr.fd 2019/12/16 v2.5j Standard LaTeX font definitions
***********
答案1
此问题是由中的错误引起的luaotfload
,已在下一版本中修复。请参阅https://github.com/latex3/luaotfload/issues/195了解更多信息。