我从 Overleaf 下载了 LaTeX 模板“sample-sigconf”。
虽然使用 Overleaf 的编译器进行编译时没有错误,但我使用 TeXstudio 进行编译时遇到以下错误消息:
pdfTeX 错误(字体扩展):只有可缩放字体才能自动扩展。
请参阅屏幕截图以了解更多详细信息。
笔记:我从以下 Overleaf 链接下载了 LaTeX 模板: ACM - SIG 会议纪要模板
以下是一个示例 .tex 文件:
\documentclass[sigconf]{acmart}
\AtBeginDocument{%
\providecommand\BibTeX{{%
\normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}
\setcopyright{acmlicensed}
\copyrightyear{2018}
\acmYear{2018}
\acmDOI{XXXXXXX.XXXXXXX}
\acmConference[Conference acronym 'XX]{Make sure to enter the correct
conference title from your rights confirmation emai}{June 03--05,
2018}{Woodstock, NY}
\acmISBN{978-1-4503-XXXX-X/18/06}
\begin{document}
\title{The Name of the Title is Hope}
\author{Lars Th{\o}rv{\"a}ld}
\affiliation{%
\institution{The Th{\o}rv{\"a}ld Group}
\streetaddress{1 Th{\o}rv{\"a}ld Circle}
\city{Hekla}
\country{Iceland}}
\email{[email protected]}
\renewcommand{\shortauthors}{Trovato and Tobin, et al.}
\begin{abstract}
A clear and well-documented \LaTeX\ document is presented as an
article formatted for publication by ACM in a conference proceedings
or journal publication. Based on the ``acmart'' document class, this
article presents and explains many of the common variations, as well
as many of the formatting elements an author may use in the
preparation of the documentation of their work.
\end{abstract}
\keywords{Do, Not, Us, This, Code, Put, the, Correct, Terms, for,
Your, Paper}
\begin{teaserfigure}
\includegraphics[width=\textwidth]{sampleteaser}
\caption{Seattle Mariners at Spring Training, 2010.}
\Description{Enjoying the baseball game from the third-base
seats. Ichiro Suzuki preparing to bat.}
\label{fig:teaser}
\end{teaserfigure}
\maketitle
\section{Introduction}
text
\end{document}
%%
%% End of file `sample-sigconf.tex'.
以下是编译后错误日志的新截图:
我也使用 运行它cmd
。我收到了相同的错误消息:pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.
这是日志文件:
Microsoft Windows [Version 10.0.19045.3930]
(c) Microsoft Corporation. All rights reserved.
F:\Folder>pdflatex sample-sigconf.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (MiKTeX 24.1) (preloaded format=pdflatex.fmt)
restricted \write18 enabled.
entering extended mode
(sample-sigconf.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-01-22>
(acmart.cls
Document Class: acmart 2024/01/21 v2.02 Typesetting articles for the Associatio
n for Computing Machinery
(C:\Program Files\MiKTeX\tex/latex/xkeyval\xkeyval.sty
(C:\Program Files\MiKTeX\tex/generic/xkeyval\xkeyval.tex
(C:\Program Files\MiKTeX\tex/generic/xkeyval\xkvutils.tex
(C:\Program Files\MiKTeX\tex/generic/xkeyval\keyval.tex))))
(C:\Program Files\MiKTeX\tex/latex/xstring\xstring.sty
(C:\Program Files\MiKTeX\tex/generic/xstring\xstring.tex))
(C:\Program Files\MiKTeX\tex/generic/iftex\iftex.sty)
(C:\Program Files\MiKTeX\tex/latex/amscls\amsart.cls
Document Class: amsart 2020/05/29 v2.20.6
(C:\Program Files\MiKTeX\tex/latex/amsmath\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\Program Files\MiKTeX\tex/latex/amsmath\amstext.sty
(C:\Program Files\MiKTeX\tex/latex/amsmath\amsgen.sty))
(C:\Program Files\MiKTeX\tex/latex/amsmath\amsbsy.sty)
(C:\Program Files\MiKTeX\tex/latex/amsmath\amsopn.sty))
(C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd)
(C:\Program Files\MiKTeX\tex/latex/amsfonts\amsfonts.sty))
(C:\Program Files\MiKTeX\tex/latex/microtype\microtype.sty
(C:\Program Files\MiKTeX\tex/latex/etoolbox\etoolbox.sty)
(C:\Program Files\MiKTeX\tex/latex/microtype\microtype-pdftex.def)
(C:\Program Files\MiKTeX\tex/latex/microtype\microtype.cfg))
(C:\Program Files\MiKTeX\tex/latex/booktabs\booktabs.sty)
(C:\Program Files\MiKTeX\tex/latex/refcount\refcount.sty
(C:\Program Files\MiKTeX\tex/generic/ltxcmds\ltxcmds.sty)
(C:\Program Files\MiKTeX\tex/generic/infwarerr\infwarerr.sty))
(C:\Program Files\MiKTeX\tex/latex/totpages\totpages.sty
(C:\Program Files\MiKTeX\tex/latex/everyshi\everyshi.sty))
(C:\Program Files\MiKTeX\tex/latex/environ\environ.sty
(C:\Program Files\MiKTeX\tex/latex/trimspaces\trimspaces.sty))
(C:\Program Files\MiKTeX\tex/latex/textcase\textcase.sty)
(C:\Program Files\MiKTeX\tex/latex/natbib\natbib.sty)
(C:\Program Files\MiKTeX\tex/latex/hyperref\hyperref.sty
(C:\Program Files\MiKTeX\tex/latex/kvsetkeys\kvsetkeys.sty)
(C:\Program Files\MiKTeX\tex/generic/kvdefinekeys\kvdefinekeys.sty)
(C:\Program Files\MiKTeX\tex/generic/pdfescape\pdfescape.sty
(C:\Program Files\MiKTeX\tex/generic/pdftexcmds\pdftexcmds.sty))
(C:\Program Files\MiKTeX\tex/latex/hycolor\hycolor.sty)
(C:\Program Files\MiKTeX\tex/latex/auxhook\auxhook.sty)
(C:\Program Files\MiKTeX\tex/latex/hyperref\nameref.sty
(C:\Program Files\MiKTeX\tex/generic/gettitlestring\gettitlestring.sty
(C:\Program Files\MiKTeX\tex/latex/kvoptions\kvoptions.sty)))
(C:\Program Files\MiKTeX\tex/latex/hyperref\pd1enc.def)
(C:\Program Files\MiKTeX\tex/generic/intcalc\intcalc.sty)
(C:\Program Files\MiKTeX\tex/latex/hyperref\puenc.def)
(C:\Program Files\MiKTeX\tex/latex/url\url.sty)
(C:\Program Files\MiKTeX\tex/generic/bitset\bitset.sty
(C:\Program Files\MiKTeX\tex/generic/bigintcalc\bigintcalc.sty))
(C:\Program Files\MiKTeX\tex/latex/base\atbegshi-ltx.sty))
(C:\Program Files\MiKTeX\tex/latex/hyperref\hpdftex.def
(C:\Program Files\MiKTeX\tex/latex/base\atveryend-ltx.sty)
(C:\Program Files\MiKTeX\tex/latex/rerunfilecheck\rerunfilecheck.sty
(C:\Program Files\MiKTeX\tex/generic/uniquecounter\uniquecounter.sty)))
(C:\Program Files\MiKTeX\tex/latex/hyperxmp\hyperxmp.sty
(C:\Program Files\MiKTeX\tex/generic/stringenc\stringenc.sty)
(C:\Program Files\MiKTeX\tex/latex/ifmtarg\ifmtarg.sty)
(C:\Program Files\MiKTeX\tex/latex/base\ifthen.sty)
(C:\Program Files\MiKTeX\tex/latex/oberdiek\ifdraft.sty)
(C:\Program Files\MiKTeX\tex/generic/iftex\ifluatex.sty))
(C:\Program Files\MiKTeX\tex/latex/graphics\graphicx.sty
(C:\Program Files\MiKTeX\tex/latex/graphics\graphics.sty
(C:\Program Files\MiKTeX\tex/latex/graphics\trig.sty)
(C:\Program Files\MiKTeX\tex/latex/graphics-cfg\graphics.cfg)
(C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def)))
(C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty
(C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg)
(C:\Program Files\MiKTeX\tex/latex/graphics\mathcolor.ltx))
(C:\Program Files\MiKTeX\tex/latex/geometry\geometry.sty
(C:\Program Files\MiKTeX\tex/generic/iftex\ifvtex.sty)
(C:\Program Files\MiKTeX\tex/latex/geometry\geometry.cfg))
(C:\Program Files\MiKTeX\tex/latex/ncctools\manyfoot.sty
(C:\Program Files\MiKTeX\tex/latex/ncctools\nccfoots.sty))
(C:\Program Files\MiKTeX\tex/generic/pdftex\glyphtounicode.tex)
(C:\Program Files\MiKTeX\tex/latex/cmap\cmap.sty)
(C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty<<t1.cmap>>)
(C:\Program Files\MiKTeX\tex/latex/libertine\libertine.sty
(C:\Program Files\MiKTeX\tex/generic/iftex\ifxetex.sty)
(C:\Program Files\MiKTeX\tex/latex/base\textcomp.sty)
(C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty)
(C:\Program Files\MiKTeX\tex/latex/fontaxes\fontaxes.sty)
(C:\Program Files\MiKTeX\tex/latex/libertine\LinLibertine_I.tex))
(C:\Program Files\MiKTeX\tex/latex/inconsolata\zi4.sty
`inconsolata-zi4' v1.12, 2019/05/17 Text macros for Inconsolata (msharpe))
(C:\Program Files\MiKTeX\tex/latex/newtx\newtxmath.sty
`newtxmath' v1.732, 2023/11/05 Math macros based originally on txfonts (msharpe
) (C:\Program Files\MiKTeX\tex/latex/oberdiek\centernot.sty)
(C:\Program Files\MiKTeX\tex/generic/binhex\binhex.tex)
amsthm NOT loaded
) (C:\Program Files\MiKTeX\tex/latex/caption\caption.sty
(C:\Program Files\MiKTeX\tex/latex/caption\caption3.sty
(C:\Program Files\MiKTeX\tex/latex/caption\caption-ams-smf.sto)))
(C:\Program Files\MiKTeX\tex/latex/float\float.sty)
(C:\Program Files\MiKTeX\tex/latex/comment\comment.sty
Excluding comment 'comment') Excluding comment 'CCSXML'
(C:\Program Files\MiKTeX\tex/latex/fancyhdr\fancyhdr.sty)
Special comment 'acks'
(C:\Program Files\MiKTeX\tex/latex/libertine\t1linuxlibertinet-tlf.fd))
(C:\Program Files\MiKTeX\tex/latex/preprint\balance.sty)
Excluding comment 'screenonly' Include comment 'printonly'
Include comment 'anonsuppress'
(C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def)
(sample-sigconf.aux) (C:\Program Files\MiKTeX\tex/latex/newtx\omlnxlmi.fd)
(C:\Program Files\MiKTeX\tex/latex/newtx\untxexa.fd)
(C:\Program Files\MiKTeX\tex/latex/newtx\lmsntxsy.fd)
(C:\Program Files\MiKTeX\tex/latex/newtx\lmxntxexx.fd)
(C:\Program Files\MiKTeX\tex/latex/libertine\ot1linuxlibertinet-tlf.fd)<<ot1.cm
ap>><<oml.cmap>> (C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd)
(C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd)
(C:\Program Files\MiKTeX\tex/latex/newtx\untxmia.fd)
(C:\Program Files\MiKTeX\tex/latex/newtx\untxsym.fd)
(C:\Program Files\MiKTeX\tex/latex/newtx\untxsyc.fd) (sample-sigconf.out)
(sample-sigconf.out)
(C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (C:\Program Files\MiKTeX\tex/latex/epstopdf-pkg\epstopdf-base.sty
(C:\Program Files\MiKTeX\tex/latex/00miktex\epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(C:\Program Files\MiKTeX\tex/latex/upquote\upquote.sty)
(C:\Program Files\MiKTeX\tex/latex/libertine\t1linuxbiolinumt-tlf.fd)
(C:\Program Files\MiKTeX\tex/latex/microtype\mt-msa.cfg)
(C:\Program Files\MiKTeX\tex/latex/microtype\mt-msb.cfg)
(C:\Program Files\MiKTeX\tex/latex/libertine\ts1linuxlibertinet-tlf.fd)
LaTeX Warning: Reference `TotPages' on page 1 undefined on input line 54.
[1.1{C:/Users/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}
! pdfTeX error (font expansion): auto expansion is only possible with scalable
fonts.
<argument> ...shipout:D \box_use:N \l_shipout_box
\__shipout_drop_firstpage_...
l.60 \end{document}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on sample-sigconf.log.
笔记2: 我只在所有 ACM LaTex 模板中遇到这个问题。
答案1
根据@Robert的评论,我libertine
通过 MikTeX 控制台卸载并重新安装了包,问题得到了解决。