我从以下网站下载了以下文件http://www.transacl.org/submission/并将它们放在同一目录中:
acl2012.tex
acl2012.sty
acl2012.pdf
acl.bst
但是当我尝试编译 .tex 文件时,它无法编译,并且我的日志中出现了这个错误:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
\write18 enabled.
entering extended mode
(/media/alvas/E418A6B618A686E0/tacl/.acl2012.tex.swp
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 10 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo)) (./acl2012.sty
Conference Style for ACL 2005 -- released Octobe 11, 2004
) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/share/texlive/texmf-dist/tex/latex/base/latexsym.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/multirow/multirow.sty)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty)
No file .acl2012.tex.aux.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ptm.fd)
/media/alvas/E418A6B618A686E0/tacl/.acl2012.tex.swp:35: Font OT1/ptm/m/n/10.95=
ptmr7t at 10.95pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
l.35 \begin{document}
/media/alvas/E418A6B618A686E0/tacl/.acl2012.tex.swp:35: ==> Fatal error occurr
ed, no output PDF file produced!
Transcript written on /tmp/.acl2012.tex.log.
我是否缺少某些软件包?是什么Metric (TFM) file
?如何解决这些错误?
我也尝试过重新安装/更新我的texlive
,但没有效果:
alvas@ubi:~$ sudo apt-get install texlive-latex-base texlive-latex-extra
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-latex-base is already the newest version.
texlive-latex-extra is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
答案1
我刚刚测试了该样式文件,它适用于这台笔记本电脑。我在 OpenBSD 5.4 上安装了完整的 2012 TeXLive。它可以通过以下方式运行
latex->latex->bibtex->latex->dvips->ps2pdf
和
pdflatex->pdflatex->bibtex->pdflatex
例行公事。警告很少,但没有什么大问题。