如何在 TeXlive 上安装 mathdesign - mktexpk 和 updmap 错误

如何在 TeXlive 上安装 mathdesign - mktexpk 和 updmap 错误

我正在尝试安装mathdesign 包在 TeXlive 上,遇到了一系列问题maketexpkupdmap失败。有没有分步说明来完成此操作?

以下是我目前所做的:

首先,我尝试使用,但在使用 LaTeX 标头进行编译\usepackage[garamond]{mathdesign}时遇到了这个问题:xelatex

\documentclass{book}

\usepackage{amssymb,amsmath,amsfonts,fleqn}
\usepackage{theorem}% Bold Math package

\usepackage{xltxtra}
\usepackage{xunicode}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage[garamond]{mathdesign}

\usepackage[EU1]{fontenc}
\usepackage{bm}% Bold Math package -- install AFTER \usepackage[urw-garamond]{mathdesign}

% bold math and math italic macros

\def\alphab{{\protect\bm{\alpha}}}
\def\Gammab{{\protect\bm{\Gamma}}}
\def\Ab{{\protect\mathbf{A}}}
\def\zerob{{\protect\bm{0}}}
\def\oneb{{\protect\bm{1}}}
\def\Rbmit{{\protect\bm{R}}}
\def\Xbmit{{\protect\bm{X}}}
\def\Ybmit{{\protect\bm{Y}}}
\def\Zbmit{{\protect\bm{Z}}}
\def\Rbbb{{\mathbb{R}}}

\DeclareMathOperator{\tr}{tr}

% http://tex.stackexchange.com/questions/66949/command-nobreakspace-unavailable-when-switching-to-t1-encoding-under-xelatex
\DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ } 

\begin{document}

A pretty fact for a square matrix~$\Ab$
and~${t\in\Rbbb}$: \begin{equation} \det e^{\Ab t} =
  e^{t\tr\Ab}.\end{equation} The Riemannian curvature tensor using bold
math italics: \begin{equation} \Rbmit(\Xbmit,\Ybmit)\Zbmit
  =\bigl([\nabla_\Xbmit,\nabla_\Ybmit]-\nabla_{[\Xbmit,\Ybmit]}\bigr)\Zbmit.\end{equation}
The generalized gamma function $\Gammab_\alphab(\Ab)=\zerob$.

\end{document}

错误:

...
LaTeX Font Warning: Font shape `EU1/mdugm/m/sl' undefined
(Font)              using `EU1/mdugm/m/n' instead on input line 42.

[1] (./foo.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.


kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 md-gmr8y
mktexpk: don't know how to create bitmap font for md-gmr8y.
mktexpk: perhaps md-gmr8y is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.

** WARNING ** Could not locate a virtual/physical font for TFM "md-gmr8y".
** WARNING ** >> There are no valid font mapping entry for this font.
** WARNING ** >> Font file name "md-gmr8y" was assumed but failed to locate that font.
** ERROR ** Cannot proceed without .vf or "physical" font for PDF output...

Output file removed.
 )
Error 256 (driver return code) generating output;
file foo.pdf may not be valid.
Transcript written on foo.log.

因此我尝试通过执行以下操作来安装mathdesign(已md-gmr8y) 。texmf-local

cd ~/Downloads/mathdesign
sudo mkdir /opt/local/share/texmf-local/tex/latex/mathdesign
sudo rsync -va ./latex/ /opt/local/share/texmf-local/tex/latex/mathdesign

sudo rsync -va ./afm/ /opt/local/share/texmf-local/fonts/afm

sudo rsync -va ./opentype/ /opt/local/share/texmf-local/fonts/opentype
sudo rsync -va ./tfm/ /opt/local/share/texmf-local/fonts/tfm
sudo rsync -va ./type1/ /opt/local/share/texmf-local/fonts/type1
sudo rsync -va ./vf/ /opt/local/share/texmf-local/fonts/vf

sudo mkdir -p /opt/local/share/texmf-local/fonts/map/pdftex/mathdesign
sudo rsync -va ./map/ /opt/local/share/texmf-local/fonts/map/pdftex/mathdesign

sudo mkdir -p /opt/local/share/texmf-local/fonts/enc/mathdesign
sudo rsync -va ./enc/ /opt/local/share/texmf-local/fonts/enc/mathdesign

sudo mkdir -p /opt/local/share/texmf-local/dvipdfm/config
sudo rsync -va ./config/ /opt/local/share/texmf-local/dvipdfm/config

sudo vi /opt/local/var/db/texmf/web2c/updmap.cfg
# mathdesign
Map mdput.map
Map mdugm.map
Map mdbch.map
Map mdpus.map
Map mdpga.map
Map mdici.map
sudo mktexlsr
sudo updmap

但这会导致updmap错误:

updmap is using the following updmap.cfg files (in precedence order):
  /var/root/.texlive2012/texmf-config/web2c/updmap.cfg
  /opt/local/var/db/texmf/web2c/updmap.cfg
dvips output dir: "/var/root/.texlive2012/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/var/root/.texlive2012/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/root/.texlive2012/texmf-var/fonts/map/dvipdfmx/updmap"
pxdvi output dir: "/var/root/.texlive2012/texmf-var/fonts/map/pxdvi/updmap"

ERROR:  The following map file(s) couldn't be found:
    mdpga.map (in /opt/local/var/db/texmf/web2c/updmap.cfg)

    Did you run mktexlsr?

    You can disable non-existent map entries using the option
      --syncwithtrees.

我知道我把文件放进mdpga.map去了,/opt/local/share/texmf-local/fonts/map/pdftex因为我可以在那里看到它和结果。它应该放在那里吗?我对有限的 mathdesign 安装和文档mktexlsr感到困惑。updmap

相关内容