如何在 MacTex 2014 上安装字体 Inconsolata?

如何在 MacTex 2014 上安装字体 Inconsolata?

我尝试按照以下说明安装 Inconsolatahttp://www.ctan.org/tex-archive/fonts/inconsolata/

我执行了以下步骤:

Mac OS X:要安装,请打开终端窗口并进入下载的 TDS 文件夹。

方法 A(推荐):输入

sudo mkdir -p /usr/local/texlive/texmf-local/web2c
sudo cp -Rfp * /usr/local/texlive/texmf-local
sudo echo Map zi4.map >> /usr/local/texlive/texmf-local/web2c/updmap.cfg
sudo mktexlsr
sudo -H updmap-sys

但是当我运行pdftex testfont并输入 Inconsolata 时出现以下输出错误:

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2014/texmf-dist/tex/plain/base/testfont.tex

Name of the font to test = 
kpathsea: Running mktextfm Inconsolata
/usr/local/texlive/2014/texmf-dist/web2c/mktexnam: Could not map source abbreviation I for Inconsolata.
/usr/local/texlive/2014/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2014/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Inconsolata
This is METAFONT, Version 2.7182818 (TeX Live 2014) (preloaded base=mf)

kpathsea: Running mktexmf Inconsolata

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

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

Transcript written on mfput.log.
grep: Inconsolata.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Inconsolata' failed to make Inconsolata.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \testfont=Inconsolata not loadable: Metric (TFM) file not found.
<to be read again> 
                   \spaceskip 
\startfont ...ont \testfont =\fontname \spaceskip 
                                                  =0pt \leftline {\sevenrm T...

\init ...test = } \read -1 to\fontname \startfont 
                                                  \message {Now type a test ...
l.208 \ifx\noinit!\else\init
                            \fi
? 

那么我现在该怎么办?

答案1

我也正在尝试编译ggplot2-book,以下代码替换为我解决了这个特定的错误:

\setmonofont[Mapping=tex-ansi]{Inconsolatazi4}

现在又回到编译此包时涉及的另外一千个错误......

相关内容