我正在研究 ACM 会议模板(sample-sigconf.tex
)来自这里
我正在使用 WinShell 编辑器。脚本编译正常,但当我单击 PDFView 时,出现此错误:
test.tex(34): Error: pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.
test.tex(1): Error: ==> Fatal error occurred, no output PDF file produced!
仅当我添加此包时,错误才能解决:\usepackage{lmodern}
。但是,我被告知这会导致输出与会议记录格式不符。
我该如何解决这些错误?它们的原因是什么?
以下是示例脚本:
\documentclass[sigconf]{acmart}
\usepackage[T1]{fontenc} %to solve the font error
\usepackage{lipsum}
%\usepackage{lmodern} %to solve the font error
% Copyright
%\setcopyright{none}
%\setcopyright{acmcopyright}
%\setcopyright{acmlicensed}
\setcopyright{rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}
\begin{document}
\title{Tests}
\author{Author}
\affiliation{%
\institution{Inst.}}
\email{author@inst}
\begin{abstract}
Abstract
\end{abstract}
\section{Section 1}
\lipsum
%\FloatBarrier %to make references always at the end
\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-bibliography}
\end{document}
编辑:这可能会对你有帮助。日志末尾的这部分内容:
("C:\Program Files\MiKTeX 2.9\tex\latex\libertine\ts1linuxlibertinet-tlf.fd"
File: TS1LinuxLibertineT-TLF.fd 2017/03/20 (autoinst) Font definitions for TS1/
LinuxLibertineT-TLF.
)
LaTeX Font Info: Font shape `TS1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 7.0pt on input line 130.
Package microtype Info: Loading generic protrusion settings for font family
(microtype) `LinuxLibertineT-TLF' (encoding: TS1).
(microtype) For optimal results, create family-specific settings.
(microtype) See the microtype manual for details.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/b/n' will be
(Font) scaled to size 9.0pt on input line 130.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/b/n' will be
(Font) scaled to size 10.95pt on input line 130.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/m/it' will be
(Font) scaled to size 9.0pt on input line 130.
LaTeX Font Info: Font shape `TS1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 9.0pt on input line 130.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 8.0pt on input line 130.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/b/n' will be
(Font) scaled to size 8.0pt on input line 130.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/m/it' will be
(Font) scaled to size 8.0pt on input line 130.
LaTeX Font Info: Font shape `OT1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 8.0pt on input line 130.
LaTeX Font Info: Font shape `OT1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 6.2pt on input line 130.
LaTeX Font Info: Font shape `OT1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 9.0pt on input line 134.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 7.3pt on input line 134.
LaTeX Font Info: Font shape `T1/LinuxLibertineT-TLF/m/n' will be
(Font) scaled to size 5.5pt on input line 134.
[1.1{C:/Users/xx/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}
! pdfTeX error (font expansion): auto expansion is only possible with scalable
fonts.
\@EveryShipout@Output ...@Org@Shipout \box \@cclv
l.141 \begin{itemize}
答案1
对我来说,问题来自包microtype
,@Robert 的评论解决了这个问题:
\microtypesetup{expansion=false}