字体映射问题

字体映射问题

编译beamer项目时出现以下错误:

mktexpk: /home/matthieu/.texlive2012/texmf-var/fonts/pk/ljfour/public/cm/cmss8.525pk: successfully generated.
 </home/matthieu/.texlive2012/texmf
-var/fonts/pk/ljfour/public/cm/cmss8.525pk>
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+525/600 --dpi 525 mathkerncmssi8
mktexpk: don't know how to create bitmap font for mathkerncmssi8.
mktexpk: perhaps mathkerncmssi8 is missing from the map file.
kpathsea: Appending font creation commands to missfont.log.

!pdfTeX error: /usr/bin/pdflatex (file mathkerncmssi8): Font mathkerncmssi8 at 
525 not found
 ==> Fatal error occurred, no output PDF file produced!

阅读一些答案后,我将其添加\pdfmapfile{+sansmathaccent.map}到我的.tex文件中,并且编译成功,但我想解决这个问题。

因此我也尝试运行updmap-sysmktexlsr但却迷失在地图文件的位置之间......

我复制了这两个命令的输出。如果有人能帮助我...

[root@localhost matthieu]# updmap-sys /usr/share/texmf/fonts/map/pdftex/updmap/pdftex.mapupdmap is using the following updmap.cfg files (in precedence order):   /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" pxdvi output dir: "/var/lib/texmf/fonts/map/pxdvi/updmap"

updmap is creating new map files using the following configuration:   LW35 font names                  : URWkb (/etc/texmf/web2c/updmap.cfg) prefer outlines                  : true (/etc/texmf/web2c/updmap.cfg)  texhash enabled                  : true   download standard fonts (dvips)  : false (/etc/texmf/web2c/updmap.cfg)   download standard fonts (pdftex) : true (/etc/texmf/web2c/updmap.cfg)   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    [ 37 files] Scanning for KanjiMap entries    [  0 files] Scanning for Map entries         [ 73 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:
       11448 2013-05-22 16:04:24 builtin35.map
       15911 2013-05-22 16:04:24 download35.map
      324599 2013-05-22 16:04:24 psfonts_pk.map
      577080 2013-05-22 16:04:24 psfonts_t1.map
      577075 2013-05-22 16:04:24 ps2pk.map
          14 2013-05-22 16:04:24 psfonts.map -> psfonts_t1.map   /var/lib/texmf/fonts/map/pdftex/updmap:
      577082 2013-05-22 16:04:24 pdftex_dl14.map
      575509 2013-05-22 16:04:24 pdftex_ndl14.map
          15 2013-05-22 16:04:24 pdftex.map -> pdftex_dl14.map   /var/lib/texmf/fonts/map/dvipdfmx/updmap:
         281 2013-05-22 16:04:24 kanjix.map

Transcript written on "/var/lib/texmf/web2c/updmap.log". updmap: Updating ls-R files.

[root@localhost matthieu]# mktexlsr mktexlsr: Updating /etc/texmf/ls-R...  mktexlsr: Updating /usr/share/texmf/ls-R...  mktexlsr: Updating /usr/share/texmf-dist/ls-R...  mktexlsr: Updating /usr/share/texmf-local/ls-R...  mktexlsr: Updating /var/lib/texmf/ls-R...  mktexlsr: Done.

答案1

看起来您正在使用的发行版没有正确激活已安装的地图文件。

首先,您的调用updmap是错误的。您无法updmap使用映射文件的完整路径来调用,请参阅手册页updmap --help以了解正确的语法。正常的解决方法是调用

updmap-sys --enable Map sansmathaccent.map

这应该足够了。由于您的发行版只使用,因此/etc/texmf/web2c/updmap.cfg您也可以编辑此文件并添加一行

Map sansmathaccent.map

随后调用updmap-sys

如果你的发行版安装了 sansmathaccent.map,你应该向发行版写一个错误报告,因为他们没有正确设置地图激活系统(我真的应该写一篇关于如何分发 TeX Live 的文章!!!)

相关内容