我刚刚使用 tlmgr 安装了 newtx 包。(如果这很重要的话,我仍然在使用 TexLive 2011。)安装没有导致任何错误消息 - 但是当我尝试使用该包时,我确实收到了奇怪的错误消息。
这是一个最小(非)工作示例:
\documentclass{minimal}
\usepackage[libertine]{newtxmath}
\begin{document}
Foo bar $x \phi$ baz.
\end{document}
结果是这样的:
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
restricted \write18 enabled.
entering extended mode
(./foo.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ba
sque, danish, dutch, ukenglish, usenglishmax, finnish, french, german, ngerman,
swissgerman, hungarian, italian, bokmal, nynorsk, polish, portuguese, spanish,
swedish, loaded.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/newtxmath.sty
LaTeX Warning: You have requested package `newtxmath',
but the package provides `ntxmath'.
`ntxmath' v0.92, 2012/05/09 Math macros based on txfonts (msharpe)
(/usr/local/texlive/2011/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(./foo.aux) (/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/omlnxlmi.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/omsntxsy.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/omxntxex.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/untxexa.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/untxmia.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/untxsya.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/untxsyb.fd)
(/usr/local/texlive/2011/texmf-dist/tex/latex/newtx/untxsyc.fd) [1{/usr/local/t
exlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./foo.aux)
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 nxlmi
mktexpk: don't know how to create bitmap font for nxlmi.
mktexpk: perhaps nxlmi is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
)
!pdfTeX error: pdflatex (file nxlmi): Font nxlmi at 600 not found
==> Fatal error occurred, no output PDF file produced!
有什么想法吗?
编辑:升级到 TexLive 2012 并安装当前版本的 newtx 后,我收到一系列错误消息,开头如下:
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
restricted \write18 enabled.
entering extended mode
(./foo.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/usr/local/texlive/2012/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/newtxmath.sty
`newtxmath' v0.95, 2012/05/26 Math macros based on txfonts (msharpe)
(/usr/local/texlive/2012/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/local/texlive/2012/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2012/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2012/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(./foo.aux) (/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/omlnxlmi.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/omsntxsy.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/omxntxex.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/untxexa.fd)
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <5.5> not available
(Font) size <5> substituted on input line 4.
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/untxmia.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/untxsya.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/untxsyb.fd)
(/usr/local/texlive/2012/texmf-dist/tex/latex/newtx/untxsyc.fd) [1{/usr/local/t
exlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
kpathsea: Running mktextfm txmi
/usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation for txmi.
/usr/local/texlive/2012/texmf/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input txmi
This is METAFONT, Version 2.718281 (TeX Live 2012)
kpathsea: Running mktexmf txmi
! I can't find file `txmi'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input txmi
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input txmi
Transcript written on mfput.log.
grep: txmi.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input txmi' failed to make txmi.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \csname\endcsname=txmi at 10.0pt not loadable: Metric (TFM) file not fou
nd.
<to be read again>
\endgroup \set@typeset@protect
l.5 \end{document}
...