我本来打算使用该包pifont
来处理\ding{52}
我的文档。但是,当我使用时\usepackage{pifont}
,出现以下错误:
/usr/local/texlive/2008basic/texmf-dist/tex/latex/psnfss/pifont.sty
(/usr/local/texlive/2008basic/texmf-dist/tex/latex/psnfss/upzd.fd)
kpathsea: Running mktextfm pzdr
/usr/local/texlive/2008basic/texmf/web2c/mktexnam: Could not map source abbreviation for pzdr.
/usr/local/texlive/2008basic/texmf/web2c/mktexnam: Need to update ?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pzdr
This is METAFONT, Version 2.718281 (Web2C 7.5.7)
kpathsea: Running mktexmf pzdr
! I can't find file `pzdr'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input pzdr
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input pzdr
Transcript written on mfput.log.
grep: pzdr.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input pzdr' failed to make pzdr.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font U/pzd/m/n/10=pzdr at 10.0pt not loadable: Metric (TFM) file not found.
<to be read again>
relax
extract@font ...ont font@name external@font relax
font@name relax csname f@e...
define@newfont ...ong@fontshape else extract@font
fi endgroup
pickup@font ...ifx font@name relax define@newfont
fi
selectfont ...ape /f@size endcsname }pickup@font
font@name size@update enc@...
l.62 {\Pifont{pzd}
}
我不知道为什么会出现此错误。我可以看到目录中存在 pifont.sty:/usr/local/texlive/2008basic/texmf-dist/tex/latex/
答案1
它位于“pzdr.tfm”字体文件之后。您可以尝试locate pzdr.tfm
(如果您使用的是类 Unix 系统)找到它吗?
对我来说,它出现在以下地方:
/usr/local/texlive/2011/texmf-dist/fonts/tfm/adobe/zapfding/pzdr.tfm
/usr/local/texlive/2011/texmf-dist/fonts/tfm/cspsfonts-adobe/zapfding/rpzdr.tfm
因此我认为您必须zapfding
先安装该软件包(sudo tlmgr install zapfding
)。
答案2
在 Ubuntu precise 12.04 中,您应该安装 texlive-fonts-recommended。
sudo apt-get install texlive-fonts-recommended
答案3
在 Linux Mint 下我使用
sudo apt-get install texlive-fonts-recommended
现在一切正常!
答案4
对我来说,TeXLive 2017 是这样的:
sudo tlmgr install palatino
以下方法可能也有效:
sudo tlmgr install collection-fontsrecommended