在 arXiv 上使用 sansmathfonts

在 arXiv 上使用 sansmathfonts

我正在写一篇论文,使用字体包,我正尝试将其上传到 arXiv。不幸的是,这会让我遇到错误

LaTeX 错误:此 NFSS 系统未正确设置。

远程编译时没有生成任何 pdf 文件(虽然在我的机器上编译得很好)。我从这个问题这可能是由于 arXiv 系统缺少字体,但这不是我能控制的。

我应该在提交时上传哪些其他文件来解决这个问题?或者这根本就不是我能做到的事情?


编辑:据我所知,这是一个 MWE

\documentclass{article}
\usepackage{sansmathfonts}
\begin{document}

\sffamily
Some math: $a=b$, and $\omega = \Delta+ \varepsilon$.

\end{document}

我不确定远程编译时出现的错误是否完全可比,但无论如何,这在本地编译并在 arXiv 构建时失败。特别是,如果我将上述文档作为 test.tex 与 sansmathfonts.sty 文件一起上传,arXiv 将返回以下日志文​​件:

[verbose]: Creating arXiv submission AutoTeX object
[verbose]: Calling arXiv submission AutoTeX process
[verbose]: TeX/AutoTeX.pm: admin_timeout = minion
[verbose]: <test.tex>   is of type 'LATEX2e'.
[verbose]: <sansmathfonts.sty>  is of type 'TeX auxiliary'.
[verbose]: ~~~~~~~~~~~ Processing file 'test.tex'
[verbose]: TEXMFCNF is unset.
[verbose]: ~~~~~~~~~~~ Running hlatex for the first time ~~~~~~~~
[verbose]: Running: "(export HOME=/tmp PATH=/texlive/2011/bin/arch:/bin; cd /submissions/1697443/ && latex 'test.tex' < /dev/null)" 2>&1
[verbose]: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/texlive/2011/texmf-dist/tex/latex/base/size10.clo)) (./sansmathfonts.sty)
(/texlive/2011/texmf-dist/tex/latex/hyperref/hyperref.sty
(/texlive/2011/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/texlive/2011/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
(/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/texlive/2011/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/texlive/2011/texmf-config/tex/latex/latexconfig/hyperref.cfg)
(/texlive/2011/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (default): hdvips.

(/texlive/2011/texmf-dist/tex/latex/hyperref/hdvips.def
(/texlive/2011/texmf-dist/tex/latex/hyperref/pdfmark.def
(/texlive/2011/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)))
No file test.aux.
No file OMLcmssm.fd.

! LaTeX Error: This NFSS system isn't set up properly.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
... 

l.7 \begin{document}

? 
! Emergency stop.
... 

l.7 \begin{document}

No pages of output.
Transcript written on test.log.

类似地,我尝试将这两个文件以及 sansmathfonts 文件夹中的所有 .fd 文件上传,但也失败了,日志文件中出现了一些额外的错误消息:

[verbose]: Creating arXiv submission AutoTeX object
[verbose]: Calling arXiv submission AutoTeX process
[verbose]: TeX/AutoTeX.pm: admin_timeout = minion
[verbose]: <ot1xcmss.fd>    is of type 'unknown'.
[verbose]: <ussmsa.fd>  is of type 'unknown'.
[verbose]: <omlcmssm.fd>    is of type 'unknown'.
[verbose]: <ot1cmsmf.fd>    is of type 'unknown'.
[verbose]: <omscmsssy.fd>   is of type 'unknown'.
[verbose]: <test.tex>   is of type 'LATEX2e'.
[verbose]: <uxcmss.fd>  is of type 'unknown'.
[verbose]: <omxcmssex.fd>   is of type 'unknown'.
[verbose]: <ussesint.fd>    is of type 'unknown'.
[verbose]: <ucmsmf.fd>  is of type 'unknown'.
[verbose]: <t1xcmss.fd> is of type 'unknown'.
[verbose]: <ussmsb.fd>  is of type 'unknown'.
[verbose]: <sansmathfonts.sty>  is of type 'TeX auxiliary'.
[verbose]: ~~~~~~~~~~~ Processing file 'test.tex'
[verbose]: TEXMFCNF is unset.
[verbose]: ~~~~~~~~~~~ Running hlatex for the first time ~~~~~~~~
[verbose]: Running: "(export HOME=/tmp PATH=/texlive/2011/bin/arch:/bin; cd /submissions/1697443/ && latex 'test.tex' < /dev/null)" 2>&1
[verbose]: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/texlive/2011/texmf-dist/tex/latex/base/size10.clo))
(/texlive/2011/texmf-dist/tex/latex/lm/lmodern.sty) (./sansmathfonts.sty)
(/texlive/2011/texmf-dist/tex/latex/hyperref/hyperref.sty
(/texlive/2011/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/texlive/2011/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
(/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/texlive/2011/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/texlive/2011/texmf-config/tex/latex/latexconfig/hyperref.cfg)
(/texlive/2011/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (default): hdvips.

(/texlive/2011/texmf-dist/tex/latex/hyperref/hdvips.def
(/texlive/2011/texmf-dist/tex/latex/hyperref/pdfmark.def
(/texlive/2011/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)))
No file test.aux.
(./omlcmssm.fd) (./omscmsssy.fd) (./omxcmssex.fd) (./uxcmss.fd)
(/texlive/2011/texmf-dist/tex/latex/lm/ot1lmr.fd)
(/texlive/2011/texmf-dist/tex/latex/hyperref/nameref.sty
(/texlive/2011/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))

Package hyperref Warning: Rerun to get /PageLabels entry.

(./ot1xcmss.fd) (./ot1cmsmf.fd)
kpathsea: Running mktextfm cmsmf10
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input cmsmf10
This is METAFONT, Version 2.718281 (TeX Live 2011)

kpathsea: Running mktexmf cmsmf10

! I can't find file `cmsmf10'.
<*> ...=ljfour; mag:=1; nonstopmode; input cmsmf10

Please type another input file name
! Emergency stop.
<*> ...=ljfour; mag:=1; nonstopmode; input cmsmf10

Transcript written on mfput.log.
grep: cmsmf10.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input cmsmf10' failed.
kpathsea: Appending font creation commands to missfont.log.

! Font OT1/cmsmf/m/n/10=cmsmf10 at 10.0pt not loadable: Metric (TFM) file not f
ound.
<to be read again> 
relax 
l.12 Some math: $a
=b$, and $\omega = \Delta+ \varepsilon$.
? 
! Emergency stop.
<to be read again> 
relax 
l.12 Some math: $a
=b$, and $\omega = \Delta+ \varepsilon$.
No pages of output.
Transcript written on test.log.

答案1

你可以使用这个cmbright包。它与 TeXLive 2011(以及更早的版本)一起提供。

有关更多选项,另请参阅http://www.tug.org/pracjourn/2006-1/hartke/hartke.pdf

相关内容