我有以下文件:
\documentclass{article}
\usepackage[adobe-garamond]{mathdesign}
\begin{document}
This is a test. 1 $1$.
\end{document}
我相信字体安装正确,因为它可以完美地与 pdflatex 和 lualatex 配合使用,但当我使用 xelatex 时会失败。在装有 texlive 2013 的 Windows 上,我得到以下信息:
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/W32TeX)
restricted \write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2011/06/27>
Babel <3.9g> and hyphenation patterns for 78 languages loaded.
(c:/texlive/2013/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(c:/texlive/2013/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mathdesign.sty
(c:/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2013/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdpgd.cfg)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdpgd.sty
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdfont.def)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdsffont.def)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdttfont.def)
(c:/texlive/2013/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(c:/texlive/2013/texmf-dist/tex/generic/xkeyval/xkeyval.tex))
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/ot1mdpgd.fd))
(c:/texlive/2013/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2013/texmf-dist/tex/latex/base/t1enc.def)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/t1mdpgd.fd))) (./tmp.aux
) (c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdacmr.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdbcmr.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/omlmdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/omsmdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/omxmdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdamdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdbmdpgd.fd) [1]
(./tmp.aux) )kpathsea:make_tex: Invalid fontname `<AGaramondPro-Regular.otf', co
ntains '<'
** WARNING ** Could not locate a virtual/physical font for TFM "mdwgdr8t".
** WARNING ** >> This font is mapped to a physical font "<AGaramondPro-Regular.o
tf".
** WARNING ** >> Please check if kpathsea library can find this font: <AGaramond
Pro-Regular.otf
** ERROR ** Cannot proceed without .vf or "physical" font for PDF output...
Output file removed.
Error 1 (driver return code) generating output;
file tmp.pdf may not be valid.
Transcript written on tmp.log.