几年前,我使用FontPro
工具,但这次我无法在 Linux(elementary OS / Ubuntu)上使用它。几周前我从网站上安装了最新的 TeXLive 2016 版本,因此没有使用 Ubuntu 存储库。除了无法让 Minion Pro 工作外,一切都运行正常。
这是我做的。我下载了FontPro
,打开指向其目录的命令提示符,然后按照以下说明安装字体(取自这里以及 cfr 的回答这里):
mkdir otf
cp /<my-adobe-installation-directory>/MinionPro*.otf otf
./scripts/makeall MinionPro
sudo ./scripts/install $(kpsewhich -var TEXMFLOCAL)
sudo mkdir -p $(kpsewhich -var TEXMFLOCAL)/web2c
sudo echo Map MinionPro.map >> $(kpsewhich -var TEXMFLOCAL)/web2c/updmap.cfg
sudo mktexlsr $(kpsewhich -var TEXMFLOCAL)
sudo updmap-sys
除了无法echo Map MinionPro.map
访问updmap.cfg
文件(我通过生成文件并手动输入文本解决了这个问题)之外,安装过程中我没有看到任何错误。据我所知,字体安装成功(至少在正确的位置有正确的文件):
[...]/FontPro-master$ ls $(kpsewhich -var TEXMFLOCAL)/fonts/type1/adobe/MinionPro/
MinionPro-BoldIt.pfb MinionPro-Bold.pfb MinionPro-It.pfb MinionPro-Regular.pfb
[...]/FontPro-master$ cat $(kpsewhich -var TEXMFLOCAL)/web2c/updmap.cfg
Map MinionPro.map
经过一些常规浏览以寻找解决方案后,我做了以下操作:
[...]/FontPro-master$ kpsewhich pdftex.map
/usr/local/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map
打开pdftex.map
上面列出的文件后,我找不到任何有关 Minion Pro 的引用。我猜问题就出在这里,但我不知道如何修复它。如果这有帮助的话,我想我从来没有运行过updmap
或。getnonfreefonts
getnonfreefonts-sys
这是我尝试生成使用以下内容的最小文档时遇到的错误\usepackage{MinionPro}
:
!pdfTeX error: pdflatex (file MinionPro-Regular-osf-ot1): Font MinionPro-Regula
r-osf-ot1 at 545 not found
==> Fatal error occurred, no output PDF file produced!
最后,这是我运行时得到的输出sudo updmap-sys
:
[...]/FontPro-master$ sudo updmap-sys
updmap [WARNING]: resetting $HOME value (was /home/louis) to root's actual home (/root).
updmap will read the following updmap.cfg files (in precedence order):
/etc/texmf/web2c/updmap.cfg
/usr/local/share/texmf/web2c/updmap.cfg
/usr/share/texmf/web2c/updmap.cfg
/usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
/etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"
updmap is creating new map files
using the following configuration:
LW35 font names : URWkb (default)
prefer outlines : true (default)
texhash enabled : true
download standard fonts (dvips) : true (default)
download standard fonts (pdftex) : true (default)
kanjiEmbed replacement string : noEmbed (default)
kanjiVariant replacement string : (default)
create a mapfile for pxdvi : false (default)
Scanning for LW35 support files [ 3 files]
Scanning for MixedMap entries [ 6 files]
Scanning for KanjiMap entries [ 0 files]
Scanning for Map entries [ 5 files]
Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...
Files generated:
/var/lib/texmf/fonts/map/dvips/updmap:
15758 2016-10-15 19:05:12 builtin35.map
21231 2016-10-15 19:05:12 download35.map
159562 2016-10-15 19:05:12 psfonts_pk.map
163413 2016-10-15 19:05:12 psfonts_t1.map
163408 2016-10-15 19:05:12 ps2pk.map
14 2016-10-15 19:05:12 psfonts.map -> psfonts_t1.map
/var/lib/texmf/fonts/map/pdftex/updmap:
163415 2016-10-15 19:05:12 pdftex_dl14.map
161750 2016-10-15 19:05:12 pdftex_ndl14.map
15 2016-10-15 19:05:12 pdftex.map -> pdftex_dl14.map
/var/lib/texmf/fonts/map/dvipdfmx/updmap:
281 2016-10-15 19:05:12 kanjix.map
Transcript written on "/var/lib/texmf/web2c/updmap.log".
updmap: Updating ls-R files.
平均能量损失
\documentclass{article}
\usepackage{MinionPro}
\begin{document}
This is a test document.
\end{document}