Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么安装完"STXinwei"之后还是显示 The font "STXinwei" cannot be found. #26

Open
1185016725 opened this issue Sep 9, 2021 · 2 comments

Comments

@1185016725
Copy link

This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021/W32TeX) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./MathModel.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18> (./gmcmthesis.cls
Document Class: gmcmthesis 2020/09/09 v2.2 update https://github.com/zhanwen/Ma
thModel
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/ctexart.cls
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/config/ctexback
end.cfg)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3kernel/expl3.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-
xetex.def (|extractbb --version)))
Document Class: ctexart 2021/03/14 v2.5.6 Chinese adapter for class article (CT
EX)

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xp
arse.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xp
arse-2020-10-01.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xp
arse-generic.tex)))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3packages/l3keys2e/
l3keys2e.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/ctexhook.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/fix-cm.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/ts1enc.def))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/everysel/everysel.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/everysel/everysel-20
11-10-28.sty))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/config/ctexopts
.cfg)

Package ctex Warning: Option cs4size' is deprecated. (ctex) Option zihao=-4' is set.

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/size12.clo))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/engine/ctex-eng
ine-xetex.def
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/l3packages/xtemplate
/xtemplate.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec-xe
tex.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec.cf
g)))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/zhnumber/zhnumber.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/zhnumber/zhnumber-ut
f8.cfg))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/scheme/ctex-sch
eme-chinese-article.def
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/config/ctex-nam
e-utf8.cfg))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/ctex-cs4size.cl
o)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/fontset/ctex-fo
ntset-fandol.def

Package fontspec Warning: Font "FandolSong-Regular" does not contain requested
(fontspec) Script "CJK".

))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/ctex/config/ctex.cfg
)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/iftex/ifxetex.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/geometry/geometry.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics/keyval.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/iftex/ifvtex.sty)
)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsmath/amstext.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsmath/amsgen.sty))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsmath/amsopn.sty)
)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsfonts/amsfonts.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/amsfonts/amssymb.sty
) (d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/tools/bm.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/xcolor/xcolor.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics-cfg/color.c
fg)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics-def/xetex.d
ef))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics/graphicx.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics/graphics.st
y (d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics/trig.sty)

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/graphics-cfg/graphic
s.cfg)))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/tools/tabularx.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/tools/array.sty))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/tools/longtable.sty)

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/booktabs/booktabs.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/multirow/multirow.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/multirow/bigstrut.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/multirow/bigdelim.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/cprotect/cprotect.st
y (d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/ifthen.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/bigfoot/suffix.sty))

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/listings/listings.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/listings/lstmisc.sty
)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/listings/listings.cf
g))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/xelatex/xecjk/xeCJK-listin
gs.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/tools/indentfirst.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/caption/caption.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/caption/caption3.sty
)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/caption/ltcaption.st
y))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/enumitem/enumitem.st
y) (d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/ulem/ulem.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/tools/calc.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/titlesec/titletoc.st
y) (d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/url/url.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/etoolbox/etoolbox.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hyperref/hyperref.st
y
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/ltxcmds/ltxcmds.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/pdftexcmds/pdftexc
mds.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/infwarerr/infwarer
r.sty))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/kvsetkeys/kvsetkey
s.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/kvdefinekeys/kvdef
inekeys.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/pdfescape/pdfescap
e.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hycolor/hycolor.sty)

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/letltxmacro/letltxma
cro.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/auxhook/auxhook.sty)

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/kvoptions/kvoptions.
sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hyperref/pd1enc.def)

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hyperref/hyperref-la
ngpatches.def)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/intcalc/intcalc.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/etexcmds/etexcmds.
sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hyperref/puenc.def)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/bitset/bitset.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/bigintcalc/bigintc
alc.sty))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/atbegshi-ltx.st
y))
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hyperref/hxetex.def
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/stringenc/stringen
c.sty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/rerunfilecheck/rerun
filecheck.sty
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/base/atveryend-ltx.s
ty)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/uniquecounter/uniq
uecounter.sty)))

Package xeCJK Warning: Redefining CJKfamily `\CJKrmdefault'
(xeCJK) (FandolSong-Regular(0)).

Package hyperref Warning: Option `hyperfootnotes' has already been used,
(hyperref) setting the option has no effect on input line 238.

Package hyperref Warning: Option `hyperindex' has already been used,
(hyperref) setting the option has no effect on input line 238.

) (./MathModel.aux

LaTeX Warning: Label `fig1' multiply defined.

LaTeX Warning: Label `fig1' multiply defined.

LaTeX Warning: Label `fig1' multiply defined.

LaTeX Warning: Label `fig1' multiply defined.

LaTeX Warning: Label `bib:two' multiply defined.

) ABD: EverySelectfont initializing macros
geometry driver: auto-detecting
geometry detected driver: xetex

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/hyperref/nameref.sty

(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/latex/refcount/refcount.st
y)
(d:/Applications/Texlive/texlive/2021/texmf-dist/tex/generic/gettitlestring/get
titlestring.sty)) (./MathModel.out) (./MathModel.out)name = STXinwei/OT, rootname = STXinwei/OT, pointsize =
mktexmf: empty or non-existent rootfile!

kpathsea: Running mktexmf STXinwei/OT.mf

The command name is D:\Applications\Texlive\texlive\2021\bin\win32\mktexmf
Cannot find STXinwei/OT.mf.

! Package fontspec Error: The font "STXinwei" cannot be found.

For immediate help type H .
...

l.15 \maketitle

@1185016725
Copy link
Author

上面是Texwork显示的结果,我把它全部粘贴复制上面了。请大佬帮忙排查一下问题

@zhanwen
Copy link
Owner

zhanwen commented Sep 11, 2021

最好是下载字体直接安装,或者把对应的字体包直接放到对应的目录中去。其次,STXinwei不是必须的,可以换其它字体。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants