查找丢失的字体文件(eurm10.map)

查找丢失的字体文件(eurm10.map)

在 Fedora 39 系统上,我收到以下错误:

 kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 eurm10
 mktexpk: don't know how to create bitmap font for eurm10.
 mktexpk: perhaps eurm10 is missing from the map file.
 kpathsea: Appending font creation commands to missfont.log.
 (see the transcript file for additional information)
 !pdfTeX error: pdflatex (file eurm10): Font eurm10 at 600 not found

我四处寻找,在 Arch 论坛上看到了一篇 2020 年的帖子,上面说我可能需要texlive-most,但这在 Fedora 39 上不可用。但是,texlive-amsfonts是可用的,并且提供了

/usr/share/texlive/texmf-dist/fonts/afm/public/amsfonts/euler/eurm10.afm
/usr/share/texlive/texmf-dist/fonts/tfm/public/amsfonts/euler/eurm10.tfm
/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/euler/eurm10.pfb
/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/euler/eurm10.pfm

我不太明白如何解决此错误。我尝试了以下方法: TeX:mktexpk:不知道如何创建位图字体

$ sudo texhash 
texhash: Updating /usr/share/texlive/texmf-config/ls-R... 
texhash: Updating /usr/share/texlive/texmf-dist/ls-R... 
texhash: Updating /usr/share/texlive/texmf-local///ls-R... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.

进而:

sudo updmap-sys 

并遵循@UlrikeFischer 的建议:

    $ sudo updmap-sys --enable Map=euler
updmap will read the following updmap.cfg files (in precedence order):
  /usr/share/texlive/texmf-config/web2c/updmap.cfg
  /usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /usr/share/texlive/texmf-config/web2c/updmap.cfg
/usr/share/texlive/texmf-config/web2c/updmap.cfg unchanged.  Map files not recreated.
updmap: updating ls-R files.

然后我查看了这个文件:

$ grep eurm10  /usr/share/texlive/texmf-config/web2c/updmap.cfg
#! Map eurm10.map
#! Map eurm10

看起来它被注释掉了。也许这就是问题所在。为什么它被注释掉了?

但是,取消注释会产生类似但略有不同的错误:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+2/600 --dpi 602 eurm10
mktexpk: don't know how to create bitmap font for eurm10.
mktexpk: perhaps eurm10 is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.
(see the transcript file for additional information)
!pdfTeX error: pdflatex (file eurm10): Font eurm10 at 602 not found
 ==> Fatal error occurred, no output PDF file produced!

跑步

$sudo updmap-sys
...
updmap [ERROR]: The following map file(s) couldn't be found:
updmap [ERROR]:         eurm10 (in /usr/share/texlive/texmf-config/web2c/updmap.cfg)
updmap [ERROR]:         eurm10.map (in /usr/share/texlive/texmf-config/web2c/updmap.cfg)
updmap [ERROR]: Did you run mktexlsr?

评论回来得到以下内容:

    $sudo updmap-sys
Files generated:
  /var/lib/texmf/fonts/map/dvips/updmap:
       15758 2024-02-09 11:38:40 builtin35.map
       21231 2024-02-09 11:38:40 download35.map
      606142 2024-02-09 11:38:41 psfonts_pk.map
      815796 2024-02-09 11:38:41 psfonts_t1.map
      815791 2024-02-09 11:38:40 ps2pk.map
          14 2024-02-09 11:38:41 psfonts.map -> psfonts_t1.map
  /var/lib/texmf/fonts/map/pdftex/updmap:
      815798 2024-02-09 11:38:41 pdftex_dl14.map
      814133 2024-02-09 11:38:41 pdftex_ndl14.map
          15 2024-02-09 11:38:41 pdftex.map -> pdftex_dl14.map
  /var/lib/texmf/fonts/map/dvipdfmx/updmap:
         281 2024-02-09 11:38:40 kanjix.map

但还是找不到字体。

我尝试了以下hello.tex示例:

\documentclass[a4paper]{article}
\begin{document}
Hello world!
\end{document}

但这里没有显示错误:

$ pdflatex hello.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./hello.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
No file hello.aux.
[1{/home/user/.texlive2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./hello.aux) )</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cm
r10.pfb>
Output written on hello.pdf (1 page, 12759 bytes).
Transcript written on hello.log.

以下是日志文件的结尾:

{/home/user/.texlive2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./hello.aux) ) 
Here is how much of TeX's memory you used:
 422 strings out of 477985
 8095 string characters out of 5839381
 1849388 words of memory out of 6000000
 20706 multiletter control sequences out of 15000+600000
 512287 words of font info for 32 fonts, out of 8000000 for 9000
 14 hyphenation exceptions out of 8191
 34i,5n,38p,140b,107s stack positions out of 10000i,1000n,20000p,200000b,200000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cm
r10.pfb>
Output written on hello.pdf (1 page, 12759 bytes).
PDF statistics:
 13 PDF objects out of 1000 (max. 8388607)
 7 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

pdftex.map以上映射到pdftex_d114.map

有什么建议我应该尝试吗?再次感谢您的建议!

相关内容