texlive 2018 中 stix 字体的问题

texlive 2018 中 stix 字体的问题

我一直在 texlive 2017 中使用 stix 字体。现在我收到了奇怪的错误消息。这是一个最低限度的工作示例:

\documentclass{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{stix}
\begin{document}
    \(\cos^2\theta+\sin^2\theta=1\)
\end{document}

由于日志太长,我正在重现一个编辑过的版本。

*****************beginning of log******
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex 2018.5.7)  9 MAY 2018 10:45
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**stix-problem-mwe.tex
(./stix-problem-mwe.tex
LaTeX2e <2018-04-01> patch level 4
Babel <3.20> and hyphenation patterns for 27 language(s) loaded.
(/opt/texlive/2018/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/opt/texlive/2018/texmf-dist/tex/latex/base/bk10.clo
File: bk10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)

LaTeX Font Info:    Try loading font information for T1+stix on input line 6.
LaTeX Font Info:    No file T1stix.fd. on input line 6.

LaTeX Font Warning: Font shape `T1/stix/m/n' undefined
(Font)              using `T1/cmr/m/n' instead on input line 6.


LaTeX Font Warning: Font shape `LS1/stix/m/n' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.

! Corrupted NFSS tables.
wrong@fontshape ...message {Corrupted NFSS tables}
                                                  error@fontshape else let f...
l.7     \(
       \cos^2\theta+\sin^2\theta=1\)
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.


LaTeX Font Warning: Font shape `LS1/stix/m/n' undefined
(Font)              using `OT1/cmr/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stix/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.


LaTeX Font Warning: Font shape `LS1/stix/m/it' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stix/m/it' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS1+stixscr on input line 
7.
LaTeX Font Info:    No file LS1stixscr.fd. on input line 7.

LaTeX Font Warning: Font shape `LS1/stixscr/m/n' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stixscr/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS2+stixex on input line 7
.
LaTeX Font Info:    No file LS2stixex.fd. on input line 7.

LaTeX Font Warning: Font shape `LS2/stixex/m/n' undefined
(Font)              using `LS2/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS2/stix/m/n' undefined
(Font)              using `LS2/stix/m/n' instead on input line 7.

! Corrupted NFSS tables.
wrong@fontshape ...message {Corrupted NFSS tables}
                                                  error@fontshape else let f...
l.7     \(
       \cos^2\theta+\sin^2\theta=1\)
(That was another \errmessage.)


LaTeX Font Warning: Font shape `LS2/stix/m/n' undefined
(Font)              using `OT1/cmr/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS2/stixex/m/n' undefined
(Font)              using `LS2/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS2/stix/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for U+msa on input line 7.
(/opt/texlive/2018/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info:    Try loading font information for U+msb on input line 7.

(/opt/texlive/2018/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)

LaTeX Font Warning: Font shape `LS1/stix/b/n' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stix/b/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS1+stixfrak on input line
 7.
LaTeX Font Info:    No file LS1stixfrak.fd. on input line 7.

LaTeX Font Warning: Font shape `LS1/stixfrak/m/n' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stixfrak/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS1+stixbb on input line 7
.
LaTeX Font Info:    No file LS1stixbb.fd. on input line 7.

LaTeX Font Warning: Font shape `LS1/stixbb/m/n' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stixbb/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.


LaTeX Font Warning: Font shape `LS1/stixbb/m/it' undefined
(Font)              using `LS1/stixbb/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stixbb/m/it' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS2+stixcal on input line 
7.
LaTeX Font Info:    No file LS2stixcal.fd. on input line 7.

LaTeX Font Warning: Font shape `LS2/stixcal/m/n' undefined
(Font)              using `LS2/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS2/stixcal/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS1+stixsf on input line 7
.
LaTeX Font Info:    No file LS1stixsf.fd. on input line 7.

LaTeX Font Warning: Font shape `LS1/stixsf/m/n' undefined
(Font)              using `LS1/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stixsf/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.


LaTeX Font Warning: Font shape `LS1/stixsf/m/it' undefined
(Font)              using `LS1/stixsf/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS1/stixsf/m/it' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

LaTeX Font Info:    Try loading font information for LS2+stixtt on input line 7
.
LaTeX Font Info:    No file LS2stixtt.fd. on input line 7.

LaTeX Font Warning: Font shape `LS2/stixtt/m/n' undefined
(Font)              using `LS2/stix/m/n' instead on input line 7.


LaTeX Font Warning: Font shape `LS2/stixtt/m/n' in size <7.5> not available
(Font)              size <7> substituted on input line 7.

! Math formula deleted: Insufficient symbol fonts.
\)  ->\relax \ifmmode \ifinner $
                                \else \@badmath \fi \else \@badmath \fi 
l.7     \(\cos^2\theta+\sin^2\theta=1\)

Sorry, but I can't typeset math unless \textfont 2
and \scriptfont 2 and \scriptscriptfont 2 have all
the \fontdimen values needed in math symbol fonts.


LaTeX Font Warning: Font shape `T1/stix/m/sl' undefined
(Font)              using `T1/stix/m/n' instead on input line 8.

[1{/opt/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}

]
(./stix-problem-mwe.aux)

LaTeX Font Warning: Size substitutions with differences
(Font)              up to 0.5pt have occurred.


LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 ) 
Here is how much of TeX's memory you used:
 3129 strings out of 494041
 36584 string characters out of 6166448
 72611 words of memory out of 5000000
 6928 multiletter control sequences out of 15000+600000
 5950 words of font info for 22 fonts, out of 8000000 for 9000
 286 hyphenation exceptions out of 8191
 27i,4n,27p,232b,144s stack positions out of 5000i,500n,10000p,200000b,80000s
{/opt/texlive/2018/texmf-dist/fonts/enc/dvips/cm-super/cm-super-t1.enc}</opt/
texlive/2018/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on stix-problem-mwe.pdf (1 page, 2865 bytes).
PDF statistics:
 13 PDF objects out of 1000 (max. 8388607)
 8 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

***********end-of-log*************

我在开始文档时收到以下错误消息。!LaTeX 错误:此 NFSS 系统未正确设置。`` 是否是因为 texlive 2018 安装已损坏?

答案1

当。。。的时候stix包裹TeX Live 上更新,必要的字体描述.fd文件被删除了,我认为这是一个错误,因为甚至.fdd添加了一个新文件(.fd文件的单独来源)。

临时解决方案,直到情况得到解决:复制stix.fdd工作目录中的文件

cp /usr/local/texlive/2018/texmf-dist/source/fonts/stix/stix.fdd .

tex在上面运行

tex stix.fdd

这将生成必要的.fd文件,并且 LaTeX 应该很乐意运行您的旧文档。

如果你的系统上没有stix.fdd,你可以直接从 CTAN 下载:http://mirrors.ctan.org/fonts/stix/latex/stix.fdd

用于stix2较新的。


更新

TeX Live 软件包的 47652 修订版已修复此问题

相关内容