TeX Live 中的新更新可能会出现一些问题。现在,我在使用 LuaLaTeX 编译字体时遇到了这个新错误Charis SIL
。如果我更改字体(例如Gentium Plus
),错误就会消失。
LaTeX3 错误:键“fontspec-renderer/Renderer”仅接受一
组固定的(LaTeX3)选择。]
编辑:我使用 Charis SIL 字体
\setmainfont{Charis SIL}[ Renderer = ICU ]
得到小型大写字母后,才发现这Renderer = ICU
就是问题所在,没有它,问题就消失了。
我担心发生了什么?我使用这个配置好几年了,今天失败了。
编辑 2:这是 MWE
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Charis SIL}[
Renderer = ICU
]
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\end{document}
编辑 3:忘记Renderer = ICU
,我的错误。我的观点是 和 存在一些问题fontspec
。Charis SIL
我有这个 MWE,它在 MacTeX 中编译得很好,但在 Ubuntu 18.04、TeX Live 2018 中出现错误,两者都已更新。但如果我更改字体(例如Gentium Plus
),错误就会消失。
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Charis SIL}[%{Gentium Plus}[%{Charis SIL}[
Ligatures = TeX,
]
%%% Microtype
\usepackage[activate={true,nocompatibility},final,tracking=alltext,letterspace=-10]{microtype}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\textsc{Hello World!}
\end{document}
错误:
Missing number, treated as zero. \begin{document}
Missing number, treated as zero. \begin{document}
Missing number, treated as zero. \begin{document}
Missing number, treated as zero. \begin{document}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
Missing number, treated as zero. \textsc{Hello World!}
重点是,我使用了几个具有类似模板的文件,涉及Charis SIL
几年,但昨天(2019 年 2 月 26 日)它们全部编译失败。如果我将字体更改为 ,相同的文件可以正常工作Gentium Plus
。