错误:480 处未找到字体 t1-zi4r-4(TeXLive)

错误:480 处未找到字体 t1-zi4r-4(TeXLive)

我正在尝试使用它acmart.cls来撰写期刊文章。我正在使用环境verbatim在文章中包含代码片段。我知道 ACM 类使用 Inconsolata 字体作为固定宽度字体。当我尝试编译我的文章时,没有生成 PDF,并且文件.log包含以下错误消息:

!pdfTeX error: pdflatex (file t1-zi4r-4): Font t1-zi4r-4 at 480 not found
 ==> Fatal error occurred, no output PDF file produced!

我曾看到过有关 MikTeX 发生此错误的参考,但我在 High Sierra MacBook 上运行 TeXLive 2020。

对于如何解决此错误您有什么建议吗?

(一种选择可能是安装 TeXLive 2021,但这似乎需要 Mojave 或更高版本,而这不是我现在想升级到的版本——我担心我的某些辅助技术软件​​可能无法在 Mojave 或更高版本上运行。)

如果有帮助的话,这里是完整的.log文件。这里有一个示例文档,它尝试使用 Inconsolata/zi4但失败并出现非常相似的错误(ot1-zi4r-4 at 600 not found)。

\documentclass{article}

\usepackage[varqu]{zi4}

\begin{document}

Here is some \verb`code`.
And here is something longer.
\begin{verbatim}
  fun map f [] = []
    | map f (x::xs) = (f x)::(map f xs)
\end{verbatim}

\end{document}

答案1

您有一个本地 pdftex.map /Users/hdeyoung/Library(可能在某个时候通过调用创建updmap),它会遮盖系统映射文件。删除或重命名它。(如果还有其他映射文件,最好也删除它们)

相关内容