错误:!字体 OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 位于 10.95pt 无法加载:未找到公制 (TFM) 文件

错误:!字体 OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 位于 10.95pt 无法加载:未找到公制 (TFM) 文件

我在使用 Beamer 时遇到了以下问题。 前言如下:

\documentclass{beamer}  
\usetheme{Madrid}   
\usepackage{booktabs} % Allows the use of \  
\usepackage[ngerman,english]{babel}  
\usepackage[utf8]{inputenc}  
\usepackage{amssymb, amstext, amsopn, amsthm, amsmath, amsfonts} % math enviornment
\usepackage{epsfig} %eps
\usepackage{csquotes}
\usepackage{afterpage}
\usepackage{multirow}
\usepackage{placeins}
\usepackage{mathtools}
\usepackage[utf8]{inputenc}
\AtBeginSection[]{
  \begin{frame}
  \vfill
  \centering
  \begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
    \usebeamerfont{title}\insertsectionhead\par%
  \end{beamercolorbox}
  \vfill
  \end{frame}
}

一切都编译得很好,但是当我添加一个方程式环境时,例如

\begin{equation}
a=2+b
\end{equation}

我收到以下错误消息:

! 字体 OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 在 10.95pt 处无法加载:未找到公制 (TFM) 文件。relax l.146 \end{frame}

当我在 $ $ 之间使用数学环境时,也会发生同样的情况。
有人能帮忙吗?

我在这里举一个简单的例子:

\documentclass{beamer}  
\usetheme{Madrid}     
\usepackage[utf8]{inputenc}  
\usepackage{amssymb, amstext, amsopn, amsthm, amsmath, amsfonts} % math enviornment
\begin{document}
\begin{frame}
$a$
\end{frame}
\end{document}

日志文件如下所示:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7250 64-bit)
entering extended mode
(senza-nome-3.tex
LaTeX2e <2019-10-01> patch level 3
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamer.cls"
Document Class: beamer 2019/09/29 v3.57 A class for typesetting presentations

("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasem
odes.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/etoolbox\etoolbox.
sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbased
ecode.sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/iftex\ifpdf.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/iftex\iftex.sty"
))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaseo
ptions.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\keyval.st
y"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/geometry\geometry.
sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/iftex\ifvtex.sty
")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/geometry\geometry.
cfg"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\size11.clo")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pgf/basiclayer\pgf
core.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphicx.
sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\graphics.
sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics\trig.sty"
)
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\graph
ics.cfg")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-def\pdfte
x.def")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pgf/systemlayer\pg
fsys.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pgf/utilities\pgfr
cs.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/utilities\pg
futil-common.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/utilities\pg
futil-common-lists.tex"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/utilities\pg
futil-latex.def"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/ms\everyshi.sty"))

("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/utilities\pg
frcs.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf\pgf.revision
.tex")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/systemlayer\
pgfsys.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/utilities\pg
fkeys.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/utilities\pg
fkeysfiltered.code.tex"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/systemlayer\
pgf.cfg")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/systemlayer\
pgfsys-pdftex.def"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/systemlayer\
pgfsys-common-pdf.def")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/systemlayer\
pgfsyssoftpath.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/systemlayer\
pgfsysprotocol.code.tex"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/xcolor\xcolor.sty"

("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/graphics-cfg\color
.cfg"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcore.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
calc.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
util.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
parser.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.basic.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.trigonometric.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.random.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.comparison.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.base.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.round.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.misc.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
functions.integerarithmetics.code.tex")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfmath
float.code.tex"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/math\pgfint.
code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorepoints.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorepathconstruct.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorepathusage.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorescopes.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoregraphicstate.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoretransformations.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorequick.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoreobjects.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorepathprocessing.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorearrows.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoreshade.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoreimage.code.tex"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoreexternal.code.tex"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorelayers.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcoretransparency.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorepatterns.code.tex")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/basiclayer\p
gfcorerdf.code.tex")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pgf/utilities\xxco
lor.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/atbegshi\atbegsh
i.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/infwarerr\infwar
err.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/ltxcmds\ltxcmds.
sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/hyperref\hyperref.
sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/pdftexcmds\pdftexc
mds.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/kvsetkeys\kvsetk
eys.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/kvdefinekeys\kvd
efinekeys.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pdfescape\pdfesc
ape.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/hycolor\hycolor.st
y")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/letltxmacro\letltx
macro.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/auxhook\auxhook.st
y")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/kvoptions\kvoption
s.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/hyperref\pd1enc.de
f")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/intcalc\intcalc.
sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/etexcmds\etexcmd
s.sty") ("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/url\url.st
y")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/bitset\bitset.st
y"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/bigintcalc\bigin
tcalc.sty"))

Package hyperref Message: Stopped early.

)
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/hyperref\hpdftex.d
ef"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/atveryend\atveryen
d.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/rerunfilecheck\rer
unfilecheck.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/uniquecounter\un
iquecounter.sty")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaser
equires.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasec
ompatibility.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasef
ont.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsfonts\amssymb.s
ty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsfonts\amsfonts.
sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/sansmathaccent\san
smathaccent.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/koma-script\scrlfi
le.sty")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
ranslator.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor.sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasem
isc.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
woscreens.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaseo
verlay.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
itle.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbases
ection.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasef
rame.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasev
erbatim.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasef
ramesize.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasef
ramecomponents.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasec
olor.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasen
otes.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
oc.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
emplates.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasea
uxtemplates.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaseb
oxes.sty")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasel
ocalstructure.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/tools\enumerate.st
y"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbasen
avigation.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
heorems.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsmath\amsmath.st
y"
For additional information on amsmath, use the `?' option.

("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsmath\amstext.st
y"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsmath\amsgen.sty
"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsmath\amsbsy.sty
")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsmath\amsopn.sty
"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amscls\amsthm.sty"
))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerbaset
hemes.sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamertheme
default.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerfontt
hemedefault.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamercolor
themedefault.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerinner
themedefault.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerouter
themedefault.sty")))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamertheme
Madrid.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamercolor
themewhale.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamercolor
themeorchid.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerinner
themerounded.sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/beamer\beamerouter
themeinfolines.sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\inputenc.sty"
)
No file senza-nome-3.aux.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex

("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/context/base/mkii\supp-p
df.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
)
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/epstopdf-pkg\epsto
pdf-base.sty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/grfext\grfext.sty"
)) ABD: EveryShipout initializing macros
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/hyperref\nameref.s
ty"
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/refcount\refcount.
sty")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/generic/gettitlestring\g
ettitlestring.sty"))
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor-basic-dictionary-English.dict")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor-bibliography-dictionary-English.dict")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor-environment-dictionary-English.dict")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor-months-dictionary-English.dict")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor-numbers-dictionary-English.dict")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/translator\transla
tor-theorem-dictionary-English.dict")
No file senza-nome-3.nav.
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsfonts\umsa.fd")
("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsfonts\umsb.fd")

("C:\Users\bagna\AppData\Local\Programs\MiKTeX 2.9\tex/latex/sansmathaccent\ot1
mathkerncmss.fd")Running miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed.



The log file hopefully contains the information to get MiKTeX going again:



  C:\Users\bagna\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makemf.log

Running miktex-hbf2gf.exe...
Couldn't open `mathkerncmssi.cfg'



hbf2gf (CJK ver. 4.8.4)




Sorry, but miktex-maketfm did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

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

! Font OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 at 10.95pt not loadable: Met
ric (TFM) file not found.
<to be read again> 
                   relax 
l.8 \end{frame}

? 

答案1

我也遇到了同样的问题。卸载sansmathaccent,当被要求安装时单击“否”。现在编译正常。

答案2

这是 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

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

答案3

编辑2020-02-07:

sansmathaccent现已提供软件包更新(2020-02-06 打包的版本),可以解决该问题。

动态安装软件包不再影响使用 Beamer 的默认数学字体。


这不是一个完整的答案,而是一个 MWE 演示了控制台输出和日志摘录的错误在评论中请求

截至 2020-02-05T17:38:51Z,在 Windows 10 上使用最新的 MiKTeX 版本。

作为Simon 提及,卸载该sansmathaccent软件包并阻止 MiKTeX 重新安装它似乎是一种解决方法。

梅威瑟:

\documentclass{beamer}

%\usepackage{siunitx} % Triggers the error.

\begin{document}

    \begin{frame}

        %\url{url} % Triggers the error.

        Text.

        $1+1$ % Triggers the error.

    \end{frame}

\end{document}

消息:

Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "Document".tex

Sorry, but miktex-makemf did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\‹username›\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makemf.log

Couldn't open `mathkerncmssi.cfg' hbf2gf (CJK ver. 4.8.4)

Sorry, but miktex-maketfm did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\‹username›\AppData\Local\MiKTeX\2.9\miktex\log\miktex-maketfm.log

Sorry, but miktex-makemf did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\‹username›\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makemf.log

Couldn't open `mathkerncmss.cfg' hbf2gf (CJK ver. 4.8.4)

Sorry, but miktex-maketfm did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\‹username›\AppData\Local\MiKTeX\2.9\miktex\log\miktex-maketfm.log

Sorry, but miktex-makemf did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\‹username›\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makemf.log

Couldn't open `mathkerncmss.cfg' hbf2gf (CJK ver. 4.8.4)

Sorry, but miktex-maketfm did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:\Users\‹username›\AppData\Local\MiKTeX\2.9\miktex\log\miktex-maketfm.log

Process exited with errors

日志(仅与错误相关的部分):



LaTeX Font Info:    Redeclaring symbol font `pureletters' on input line 5.
LaTeX Font Info:    Overwriting symbol font `pureletters' in version `normal'
(Font)                  OT1/cmss/m/it --> OT1/mathkerncmss/m/sl on input line 5.
LaTeX Font Info:    Overwriting symbol font `pureletters' in version `bold'
(Font)                  OT1/cmss/b/it --> OT1/mathkerncmss/m/sl on input line 5.
LaTeX Font Info:    Overwriting symbol font `pureletters' in version `bold'
(Font)                  OT1/mathkerncmss/m/sl --> OT1/mathkerncmss/bx/sl on input line 5.


("C:\Users\‹username›\AppData\Local\Programs\MiKTeX 2.9\tex/latex/amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B)
LaTeX Font Info:    Trying to load font information for OT1+mathkerncmss on input line 15.

("C:\Users\‹username›\AppData\Local\Programs\MiKTeX 2.9\tex/latex/sansmathaccent\ot1mathkerncmss.fd"
File: ot1mathkerncmss.fd 2020/01/31 Fontinst v1.933 font definitions for OT1/mathkerncmss.)
! Font OT1/mathkerncmss/m/sl/10.95=mathkerncmssi10 at 10.95pt not loadable: Metric (TFM) file not found.
<to be read again> 
                   relax 
l.15  \end{frame}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

! Font OT1/mathkerncmss/m/sl/8=mathkerncmssi8 at 8.0pt not loadable: Metric (TFM) file not found.
<to be read again> 
                   relax 
l.15  \end{frame}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

! Font OT1/mathkerncmss/m/sl/6=mathkerncmssi8 at 6.0pt not loadable: Metric (TFM) file not found.
<to be read again> 
                   relax 
l.15  \end{frame}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

答案4

\documentclass{beamer}
\usefonttheme[onlymath]{serif}

添加上述几行,是一种“更好”的解决方法,因为不需要停止安装(或卸载)软件包。

相关内容