找不到字体“LibertinusMaths”

找不到字体“LibertinusMaths”

使用 LuaLaTeX 运行以下 MWE 时遇到问题,尽管多种的确认使用 Homebrew 成功安装了 font-libertinus!我在 M2 Max 上运行 MacOS Ventura 13.3.1;TeXShop 使用 LuaLaTeX 排版。以下 MWE 足以生成错误:

找不到字体“LibertinusMaths”。

\documentclass[12pt]{book}
\usepackage{unicode-math} % this calls fontspec
\setmathfont[]{Libertinus Maths}
\begin{document}
\end{document}

这会导致以下错误日志:

这是 LuaHBTeX,版本 1.17.0(TeX Live 2023)限制系统命令已启用。 (./font_testing.tex LaTeX2e <2022-11-01> 补丁级别 1 L3 编程层 <2023-05-15> (/usr/local/texlive/2023/texmf-dist/tex/latex/base/book.cls 文档类:book 2022/07/02 v1.4n 标准 LaTeX 文档类 (/usr/local/texlive/2023/texmf-dist/tex/latex/base/bk12.clo))(/usr/local/texlive/2023/texmf-dist/tex/latex/unicode-math/unicode-math.sty (/usr/local/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-luatex.def))(/usr/local/texlive/2023/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty(/usr/local/texlive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)(/usr/local/texlive/2023/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)(/usr/local/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty (/usr/local/texlive/2023/texmf-dist/tex/latex/base/fontenc.sty) (/usr/local/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/local/texlive/2023/texmf-dist/tex/latex/base/fix-cm.sty (/usr/local/texlive/2023/texmf-dist/tex/latex/base/ts1enc.def)) (/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsmath.sty 有关 amsmath 的更多信息,请使用“?”选项。(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amstext.sty(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsgen.sty))(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsbsy.sty)(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsopn.sty))(/usr/local/texlive/2023/texmf-dist/tex/lualatex/lualatex-math/lualatex-math.st y(/usr/local/texlive/2023/texmf-dist/tex/latex/etoolbox/etoolbox.sty)) (/usr/local/texlive/2023/texmf-dist/tex/latex/unicode-math/unicode-math-table.t ex)))luaotfload | db:已启动重新加载(格式:otf、ttf、ttc);原因:未找到字体“LibertinusMaths”。luaotfload | resolve:3 次查找序列未产生任何合适的结果。

./font_testing.tex:4:包 fontspec 错误:找不到字体“LibertinusMaths”。

如需立即帮助,请输入 H...

l.4 \开始{文档}?

我最近从使用 LaTeX 转换为使用 LuaLaTeX 来排版代码。

奇怪的是,相同的代码在运行 Catalina 10.15.7 MacOS 的旧款 Mac 上运行时没有错误。

抱歉,错误日志太长了,但我不知道诊断错误需要什么。

提前致谢!

答案1

如果我改变

\setmathfont[]{Libertinus Maths}

\setmathfont[]{Libertinus Math}

MWE 在我的(上游)TeXLive 2023 上编译得很好。

相关内容