我正在尝试使用\mathbb
。看来这个命令需要\usepackage{amsfont}
。但是当我使用这个包时,我的 MikTeX 2.9 安装会抱怨它找不到amsfont.sty
。那么它在哪里,我该如何安装它?
以下是我尝试处理的“公式”:
\documentclass{article}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{amsfont}
\pagestyle{empty}
\begin{document}
$ \mathbb{R}^n $
\end{document}
我还应该指出是amsfonts.sty
名为MiKTeX-2.9\tex\latex\amsfonts
(请注意复数,amsfonts.sty
vs )的文件amsfont.sty
。
完整的错误信息是:
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
(c:/temp/formula.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
(C:\tools\MiKTeX-2.9\tex\latex\base\article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(C:\tools\MiKTeX-2.9\tex\latex\base\size10.clo))
(C:\tools\MiKTeX-2.9\tex\latex\ams\math\amstext.sty
(C:\tools\MiKTeX-2.9\tex\latex\ams\math\amsgen.sty))
(C:\tools\MiKTeX-2.9\tex\latex\ams\math\amsmath.sty
For additional information on amsmath, use the `?' option.
(C:\tools\MiKTeX-2.9\tex\latex\ams\math\amsbsy.sty)
(C:\tools\MiKTeX-2.9\tex\latex\ams\math\amsopn.sty))
答案1
尝试一下amsfonts
,s
最后加上一个。