Stix 包即使在简单的示例中也不起作用

Stix 包即使在简单的示例中也不起作用

我一直在尝试让stix包中的某些符号起作用,但由于某种原因,即使在简单的玩具示例中也会出现错误,而这些示例显然不能与其他包发生任何冲突;例如,这个最小的不起作用的示例:

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{stix}
\begin{document}
$A\subseteq B$
\end{document}

在编译时,我收到错误

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)
entering extended mode
(C:/Users/Admin/Downloads/LaTeX/zzz.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-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\base\size12.clo"))
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the '?' option.
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\stix.sty"
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\base\textcomp.sty"
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\base\ts1enc.def")))
No file zzz.aux.
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\base\ts1cmr.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls1stix.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls2stix.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\t1stix.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls1stixscr.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls2stixex.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls1stixfrak.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls1stixbb.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls2stixcal.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls1stixsf.fd")
("C:\Program Files (x86)\TeX\MiKTeX 2.9\tex\latex\stix\ls2stixtt.fd") [1{C:/Use
rs/Admin/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(C:\Users\Admin\Downloads\LaTeX\zzz.aux)Trying to make PK font t1-stixgeneral at 720 DPI...
Running miktex-makemf.exe...
miktex-makemf: The t1-stixgeneral source file could not be found.
Running ttf2pk.exe...
miktex-makepk: PK font t1-stixgeneral could not be created.
 )
!pdfTeX error: pdflatex.EXE (file t1-stixgeneral): Font t1-stixgeneral at 720 n
ot found
 ==> Fatal error occurred, no output PDF file produced!
texify: pdflatex failed for some reason (see log file).

有人可以解释一下这个错误是什么意思吗(如果我的软件包安装有错误,或者stix不能与我的 TeX 发行版兼容等等),以及我该如何解决这个问题?

答案1

.map首先,验证需要启用的文件的名称。我在主目录下有一个扁平的 Stix-fonts 子目录AMA-stix,它WileyNDJ-v2.zip

其次,MiKTeX 上没有updmap。你应该使用提升的权限打开命令窗口并执行以下命令

initexmf --edit-config-file=updmap.cfg

当配置文件打开时,为每个文件添加一行.map。例如,对我来说,它只是一行:

Map stix.map

请看这里。

手动字体安装

如果有人感兴趣的话,我在 Linux 上创建了一个 texlive 安装程序。我想那应该写在另一篇文章里。

相关内容