如何解决 acm 模板的错误

如何解决 acm 模板的错误

我从以下链接下载了 acm 期刊模板,但运行它时出现错误http://www.acm.org/publications/authors/submissions 首先它出现以下错误 Undefined control sequence. \toprule Undefined control sequence. \bottomrule

我通过添加以下包解决了这个问题

\usepackage{booktabs} \usepackage[T1]{fontenc}

然后没有显示 pdf,而日志如下

relsize.sty Warning Failed to get list of font sizes. comment.cut badbox Underfull \vbox (badness 10000) has occurred while \output is active [] name{Hfootnote.3} has been referenced but does not exist, replaced by a fixed one

在信息中

Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "sample-manuscript".tex Sorry, but miktex-makemf did not succeed for the following rea son: The txsya source file could not be found. The log file hopefully contains the information to get MiKTeX going again: C:/Users/Name/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makemf.log You may want to visit the MiKTeX project page, if you need help. Sorry, but miktex-makepk did not succeed for the following reason: PK font txsya could not be created. The log file hopefully contains the information to get MiKTeX going again: C:/Users/Name/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makepk.log You may want to visit the MiKTeX project page, if you need help. Process exited with error(s)

更新卸载并重新安装后。上述错误已解决,但出现以下错误。 pdfTeX error (font expansion): auto expansion is only possible with scalable fonts. T Failed to get list of font sizes.

请注意,我通过 Google 搜索解决了上述错误,并添加了以下软件包 \usepackage[T1]{fontenc} \usepackage{lmodern}

但它并没有帮助解决错误

答案1

  1. MikTeX 的当前版本包含当前的acmart。您最好acmart使用 MikTeX 包管理器进行安装。

  2. 无论如何,看起来你没有txfonts安装软件包。这就是你出现错误信息的原因,

相关内容