Garamond Expert 的数学设计不起作用

Garamond Expert 的数学设计不起作用

garamondx按如下所示进行了安装。但是,当我尝试将其合并到文档中时,出现以下错误消息:

!pdfTeX error: /Library/TeX/texbin/pdflatex (file ugmr8a.pfb): cannot open Type
 1 font file for reading
 ==> Fatal error occurred, no output PDF file produced!

以下是产生错误的源代码的最小示例:

\documentclass{report}

\usepackage[urw-garamond]{mathdesign}
\usepackage{garamondx}

\begin{document}

I can compile normal text just fine. However, when I use math mode, I get an error : 
\[x = y.\]

\end{document}

我用它来编译它,pdflatexmk所以也许这就是问题所在。


安装 garamondx 使用 getnonfreefonts

我可以安装getnonfreefontsgaramondx如下

jack@Jacks-MacBook-Air ~ % sudo texlua install-getnonfreefonts
Password:
Detected System: x86_64-darwin
Detected Installation: /usr/local/texlive/2019
mkdir /usr/local/texlive/2019/texmf-dist/scripts/getnonfreefonts ...     [done]
Installing texmf-dist/scripts/getnonfreefonts/getnonfreefonts.pl ...     [done]
Installing texmf-dist/doc/man/man1/getnonfreefonts.1 ...                 [done]
Installing texmf-dist/doc/man/man1/getnonfreefonts.man1.pdf ...          [done]
md5sum: a9e772165e8fdb620bcf9c75c17facda getnonfreefonts.pl ...            [ok]
md5sum: 49be4444054d85b6037d237552a7cea1 getnonfreefonts.1 ...             [ok]
md5sum: f825d523d686dbecdc787535b40f09d0 getnonfreefonts.man1.pdf ...      [ok]
Fixing File Permissions ...                                              [done]
Creating symlink in 'bin/x86_64-darwin' ...                              [done]
mktexlsr: Updating /usr/local/texlive/2019/texmf-dist/ls-R... 
mktexlsr: Done.

jack@Jacks-MacBook-Air ~ % sudo getnonfreefonts --sys garamondx
Password:
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100 34361  100 34361    0     0  47591      0 --:--:-- --:--:-- --:--:-- 47591
------------------------------------------------------
 Installation directory: /usr/local/texlive/texmf-local
------------------------------------------------------

====================
Package 'garamondx':
====================

Downloading 'http://mirrors.ctan.org/install/fonts/garamondx.tds.zip'


 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100   327  100   327    0     0   1302      0 --:--:-- --:--:-- --:--:--  1297
100 2395k  100 2395k    0     0   841k      0  0:00:02  0:00:02 --:--:-- 1408k
                                                            [download done]

Checking integrity of file 'garamondx.tds.zip'...                          [ok]

d81a2e0bc611480e58e414bf9585cc86  garamondx.tds.zip                 [MD5sum ok]

Extracting 'garamondx.tds.zip'...                                        [done]
Installing 'zgm.map'...updmap [WARNING]: resetting $HOME value (was /Users/jack) to root's actual home (/var/root).
Creating new config file /usr/local/texlive/2019/texmf-config/web2c/updmap.cfg
                                              [done]

Running 'mktexlsr /usr/local/texlive/texmf-local >/dev/null 2>/dev/null' ... [done]

Updating map files (updmap-sys). Be patient...updmap [WARNING]: resetting $HOME value (was /Users/jack) to root's actual home (/var/root).
                       [done]

答案1

选项ugmr8a.pfb使用的Type1 字体文件随软件包提供。这意味着您可以使用以下方法修复此问题:mathdesignurw-garamondgaramond

sudo getnonfreefonts --sys garamond

我已经安装了这两个garamondgaramondx并且您的示例代码对我来说没有任何问题。

关于粗体斜体数学:bm在其他字体更改包之后加载时,该包仍然对我有用:

\documentclass{report}

\usepackage[urw-garamond]{mathdesign}
\usepackage{garamondx}
\usepackage{bm}

\begin{document}    
\[ l \neq \bm{l} \]
\end{document}

结果:

在此处输入图片描述

相关内容