使用 beamer 时出现问题。错误:抱歉,miktex-maketfm 未成功

使用 beamer 时出现问题。错误:抱歉,miktex-maketfm 未成功

我一直在尝试编译一个 beamer 演示文稿,并尝试了所有方法:重新安装 (MikTeX) 和运行 updmap.exe 等...但都无济于事。我一直收到此消息。我将不胜感激任何能为我提供帮助的人。谢谢!!

错误

正在运行 miktex-hbf2gf.exe...无法打开“mathkerncmss.cfg”

hbf2gf (CJK 版本 4.8.4)

抱歉,miktex-maketfm 没有成功。

日志文件希望包含让 MiKTeX 再次运行的信息:

C:\Users\axasma\AppData\Local\MiKTeX\2.9\miktex\log\miktex-maketfm.log

!字体 OT1/mathkerncmss/m/sl/6=mathkerncmssi8 在 6.0pt 处无法加载:未找到公制 (TF M) 文件。relax l.55 \begin{document} ?


日志

> 2020-02-05 17:12:03,878-0500 INFO  miktex-maketfm - starting with
> command line: miktex-maketfm --verbose mathkerncmssi8 2020-02-05
> 17:12:03,903-0500 INFO  maketfm - Running miktex-makemf.exe...
> 2020-02-05 17:12:03,903-0500 INFO  maketfm - running:
> miktex-makemf.exe --miktex-enable-installer
> --miktex-disable-maintenance --verbose mathkerncmssi8 2020-02-05 17:12:04,366-0500 INFO  maketfm - Running miktex-hbf2gf.exe...
> 2020-02-05 17:12:04,366-0500 INFO  maketfm - running:
> miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi8 300 2020-02-05 17:12:04,721-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi8. 2020-02-05 17:12:04,721-0500 FATAL miktex-maketfm - No
> creation rule for font mathkerncmssi8. 2020-02-05 17:12:04,721-0500
> FATAL miktex-maketfm - Info:  2020-02-05 17:12:04,721-0500 FATAL
> miktex-maketfm - Source:  2020-02-05 17:12:04,721-0500 FATAL
> miktex-maketfm - Line: 0 2020-02-05 17:12:05,129-0500 INFO 
> miktex-maketfm - starting with command line: miktex-maketfm --verbose
> mathkerncmssi8 2020-02-05 17:12:05,154-0500 INFO  maketfm - Running
> miktex-makemf.exe... 2020-02-05 17:12:05,154-0500 INFO  maketfm -
> running: miktex-makemf.exe --miktex-enable-installer
> --miktex-disable-maintenance --verbose mathkerncmssi8 2020-02-05 17:12:05,613-0500 INFO  maketfm - Running miktex-hbf2gf.exe...
> 2020-02-05 17:12:05,613-0500 INFO  maketfm - running:
> miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi8 300 2020-02-05 17:12:05,962-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi8. 2020-02-05 17:12:05,963-0500 FATAL miktex-maketfm - No
> creation rule for font mathkerncmssi8. 2020-02-05 17:12:05,963-0500
> FATAL miktex-maketfm - Info:  2020-02-05 17:12:05,963-0500 FATAL
> miktex-maketfm - Source:  2020-02-05 17:12:05,963-0500 FATAL
> miktex-maketfm - Line: 0 2020-02-05 17:12:06,414-0500 INFO 
> miktex-maketfm - starting with command line: miktex-maketfm --verbose
> mathkerncmssi12 2020-02-05 17:12:06,439-0500 INFO  maketfm - Running
> miktex-makemf.exe... 2020-02-05 17:12:06,439-0500 INFO  maketfm -
> running: miktex-makemf.exe --miktex-enable-installer
> --miktex-disable-maintenance --verbose mathkerncmssi12 2020-02-05 17:12:06,894-0500 INFO  maketfm - Running miktex-hbf2gf.exe...
> 2020-02-05 17:12:06,894-0500 INFO  maketfm - running:
> miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi12 300 2020-02-05 17:12:07,240-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi12. 2020-02-05 17:12:07,240-0500 FATAL miktex-maketfm -
> No creation rule for font mathkerncmssi12. 2020-02-05
> 17:12:07,240-0500 FATAL miktex-maketfm - Info:  2020-02-05
> 17:12:07,241-0500 FATAL miktex-maketfm - Source:  2020-02-05
> 17:12:07,241-0500 FATAL miktex-maketfm - Line: 0 2020-02-05
> 17:12:07,664-0500 INFO  miktex-maketfm - starting with command line:
> miktex-maketfm --verbose mathkerncmssi10 2020-02-05 17:12:07,688-0500
> INFO  maketfm - Running miktex-makemf.exe... 2020-02-05
> 17:12:07,689-0500 INFO  maketfm - running: miktex-makemf.exe
> --miktex-enable-installer --miktex-disable-maintenance --verbose mathkerncmssi10 2020-02-05 17:12:08,143-0500 INFO  maketfm - Running
> miktex-hbf2gf.exe... 2020-02-05 17:12:08,143-0500 INFO  maketfm -
> running: miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi10 300 2020-02-05 17:12:08,496-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi10. 2020-02-05 17:12:08,496-0500 FATAL miktex-maketfm -
> No creation rule for font mathkerncmssi10. 2020-02-05
> 17:12:08,496-0500 FATAL miktex-maketfm - Info:  2020-02-05
> 17:12:08,496-0500 FATAL miktex-maketfm - Source:  2020-02-05
> 17:12:08,496-0500 FATAL miktex-maketfm - Line: 0 2020-02-05
> 17:12:08,903-0500 INFO  miktex-maketfm - starting with command line:
> miktex-maketfm --verbose mathkerncmssi8 2020-02-05 17:12:08,927-0500
> INFO  maketfm - Running miktex-makemf.exe... 2020-02-05
> 17:12:08,927-0500 INFO  maketfm - running: miktex-makemf.exe
> --miktex-enable-installer --miktex-disable-maintenance --verbose mathkerncmssi8 2020-02-05 17:12:09,380-0500 INFO  maketfm - Running
> miktex-hbf2gf.exe... 2020-02-05 17:12:09,380-0500 INFO  maketfm -
> running: miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi8 300 2020-02-05 17:12:09,735-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi8. 2020-02-05 17:12:09,735-0500 FATAL miktex-maketfm - No
> creation rule for font mathkerncmssi8. 2020-02-05 17:12:09,735-0500
> FATAL miktex-maketfm - Info:  2020-02-05 17:12:09,735-0500 FATAL
> miktex-maketfm - Source:  2020-02-05 17:12:09,735-0500 FATAL
> miktex-maketfm - Line: 0 2020-02-05 17:12:10,187-0500 INFO 
> miktex-maketfm - starting with command line: miktex-maketfm --verbose
> mathkerncmssi10 2020-02-05 17:12:10,210-0500 INFO  maketfm - Running
> miktex-makemf.exe... 2020-02-05 17:12:10,210-0500 INFO  maketfm -
> running: miktex-makemf.exe --miktex-enable-installer
> --miktex-disable-maintenance --verbose mathkerncmssi10 2020-02-05 17:12:10,675-0500 INFO  maketfm - Running miktex-hbf2gf.exe...
> 2020-02-05 17:12:10,675-0500 INFO  maketfm - running:
> miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi10 300 2020-02-05 17:12:11,015-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi10. 2020-02-05 17:12:11,015-0500 FATAL miktex-maketfm -
> No creation rule for font mathkerncmssi10. 2020-02-05
> 17:12:11,015-0500 FATAL miktex-maketfm - Info:  2020-02-05
> 17:12:11,015-0500 FATAL miktex-maketfm - Source:  2020-02-05
> 17:12:11,015-0500 FATAL miktex-maketfm - Line: 0 2020-02-05
> 17:12:11,428-0500 INFO  miktex-maketfm - starting with command line:
> miktex-maketfm --verbose mathkerncmssi8 2020-02-05 17:12:11,453-0500
> INFO  maketfm - Running miktex-makemf.exe... 2020-02-05
> 17:12:11,453-0500 INFO  maketfm - running: miktex-makemf.exe
> --miktex-enable-installer --miktex-disable-maintenance --verbose mathkerncmssi8 2020-02-05 17:12:11,908-0500 INFO  maketfm - Running
> miktex-hbf2gf.exe... 2020-02-05 17:12:11,908-0500 INFO  maketfm -
> running: miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi8 300 2020-02-05 17:12:12,251-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi8. 2020-02-05 17:12:12,252-0500 FATAL miktex-maketfm - No
> creation rule for font mathkerncmssi8. 2020-02-05 17:12:12,252-0500
> FATAL miktex-maketfm - Info:  2020-02-05 17:12:12,252-0500 FATAL
> miktex-maketfm - Source:  2020-02-05 17:12:12,252-0500 FATAL
> miktex-maketfm - Line: 0 2020-02-05 17:12:16,010-0500 INFO 
> miktex-maketfm - starting with command line: miktex-maketfm --verbose
> mathkerncmssi8 2020-02-05 17:12:16,034-0500 INFO  maketfm - Running
> miktex-makemf.exe... 2020-02-05 17:12:16,035-0500 INFO  maketfm -
> running: miktex-makemf.exe --miktex-enable-installer
> --miktex-disable-maintenance --verbose mathkerncmssi8 2020-02-05 17:12:16,487-0500 INFO  maketfm - Running miktex-hbf2gf.exe...
> 2020-02-05 17:12:16,487-0500 INFO  maketfm - running:
> miktex-hbf2gf.exe --miktex-enable-installer
> --miktex-disable-maintenance -g mathkerncmssi8 300 2020-02-05 17:12:16,824-0500 FATAL miktex-maketfm - No creation rule for font
> mathkerncmssi8. 2020-02-05 17:12:16,824-0500 FATAL miktex-maketfm - No
> creation rule for font mathkerncmssi8. 2020-02-05 17:12:16,824-0500
> FATAL miktex-maketfm - Info:  2020-02-05 17:12:16,824-0500 FATAL
> miktex-maketfm - Source:  2020-02-05 17:12:16,824-0500 FATAL
> miktex-maketfm - Line: 0

答案1

这是 miktex 中的打包错误。sansmathaccent 包缺少 tfm 和 vf 文件(https://ctan.org/tex-archive/fonts/sansmathaccent/tfmhttps://ctan.org/tex-archive/fonts/sansmathaccent/vf)。

我提交了一个错误报告

https://github.com/MiKTeX/miktex-packaging/issues/162

这个问题应该很快得到解决。

答案2

我遇到了同样的问题 - 搜索后我找到了帖子错误:!字体 OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 位于 10.95pt 无法加载:未找到公制 (TFM) 文件我认为这是一个相同的问题,并给出了两个解决方案:

  • 卸载 sansmathaccent 软件包并在要求安装时单击“否” - 这似乎对某些人有用,但对我来说却不起作用。
  • 包括包 newcent - 这使其可以编译,但也会改变不希望的字体。

相关内容