Latex fontspec Error

latex编译时,出现报错! Package fontspec Error: The font "Microsoft YaHei" cannot be found.

排查问题记录与问题的思考。

一、环境

  • window11
  • texlive 2022
  • 一份带有中文的tex文件
    1
    2
    # 中文环境配置
    \usepackage[UTF8]{ctex}

二、问题

在执行xelatex *.tex时,出现如下报错:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing.
(biblatex) Loading 'csquotes' recommended.

(e:/texlive/2022/texmf-dist/tex/latex/newpx/TeXGyrePagellaX.fontspec)
(./main.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
No file main.bbl.

Package hyperref Warning: Rerun to get /PageLabels entry.


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

For immediate help type H <return>.
...

l.79 ...sep=1cm]{\Huge\centering\bfseries\sffamily
\parbox[c][][t]{\paperwidt...

?

已知该字体已安装(解决过程中也重装该字体很多次)

三、解决

看到! Package fontspec Error: The font "Microsoft YaHei" cannot be found时,判断为字体没有识别,于是尝试重装该字体,重新加载字体缓存等操作,均无效(搞了一下午的字体问题,还把window10上的字体拷贝过来重新安装了)。

恰好手边有另一份带有中文的tex源文件(并不知道其中是如何配置的中文环境,只是有试一试的想法),于是尝试编译,结果成功了。

那么报字体问题的错误,问题根源是否出在字体问题上呢?再回顾模板的下载和修改过程,发现有一段数学符号包是后来添加的:

1
2
3
4
5
6
\usepackage{esint}
\newcommand{\gt}{\textgreater}
\newcommand{\lt}{\textless}
\usepackage{euler}
\usepackage{newpxtext}
\usepackage{amsmath}

使用排除法(将上面所有的包全注释掉,一个一个添加),发现是newpxtext的问题,去掉该包之后,执行xelatex *.tex时,没有再出现报错。

四、思考

虽然终端显示的是字体问题,但是当字体确实没有问题的时候,就要考虑别的方向,做一些并行测试来对比分析(例如上面在另外一份类似的tex工程中尝试编译)。

另外要仔细分析日志,再看日志最后一部分时,可以看到有以下疑点:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(e:/texlive/2022/texmf-dist/tex/latex/realscripts/realscripts.sty))

Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing.
(biblatex) Loading 'csquotes' recommended.

# 1、这里出现的最后的包是newpx,就是newpxtext
(e:/texlive/2022/texmf-dist/tex/latex/<font color="#D44C47">**newpx**</font>/TeXGyrePagellaX.fontspec)
# 2、这里来看,有几个包含中文的文件都已经通过了,所以有可能不是字体问题
<font color="#D44C47">(./main.aux (./sub_chapter/01-basic_block.aux)
(./sub_chapter/02-advance_block.aux) (./sub_chapter/03-database.aux)
(./sub_chapter/04-multi_media.aux) (./sub_chapter/05-insert_block.aux)
(./sub_chapter/06-rich_text.aux) (./sub_chapter/07-database_op.aux)
(./sub_chapter/08-database_formula.aux))</font>
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
No file main.bbl.

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

For immediate help type H <return>.
...

l.79 ...sep=1cm]{\Huge\centering\bfseries\sffamily
\parbox[c][][t]{\paperwidt...

?

完整的输出日志:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
PS F:\GitHubRepo\LatexBook\Notion_handout_latex> xelatex main
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-02>
(e:/texlive/2022/texmf-dist/tex/latex/base/book.cls
Document Class: book 2022/07/02 v1.4n Standard LaTeX document class
(e:/texlive/2022/texmf-dist/tex/latex/base/fleqn.clo)
(e:/texlive/2022/texmf-dist/tex/latex/base/bk11.clo)) (./structure.tex
(e:/texlive/2022/texmf-dist/tex/latex/graphics/graphicx.sty
(e:/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty)
(e:/texlive/2022/texmf-dist/tex/latex/graphics/graphics.sty
(e:/texlive/2022/texmf-dist/tex/latex/graphics/trig.sty)
(e:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(e:/texlive/2022/texmf-dist/tex/latex/graphics-def/xetex.def)))
(e:/texlive/2022/texmf-dist/tex/latex/lipsum/lipsum.sty
(e:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
(e:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty
(e:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)))
(e:/texlive/2022/texmf-dist/tex/latex/lipsum/lipsum.ltd.tex))
(e:/texlive/2022/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(e:/texlive/2022/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(e:/texlive/2022/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(e:/texlive/2022/texmf-dist/tex/generic/pgf/pgf.revision.tex)))
(e:/texlive/2022/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(e:/texlive/2022/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.co
de.tex)) (e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-xetex.def
(e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx.def
(e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
))
(e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
)) (e:/texlive/2022/texmf-dist/tex/latex/xcolor/xcolor.sty
(e:/texlive/2022/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(e:/texlive/2022/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te
x)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric
.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t
ex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co
de.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex
)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te
x)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex
)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm
etics.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.cod
e.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.te
x)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code
.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.c
ode.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)

(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.co
de.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
) (e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex
)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code
.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
) (e:/texlive/2022/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(e:/texlive/2022/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)
(e:/texlive/2022/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.st
y)
(e:/texlive/2022/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.st
y)) (e:/texlive/2022/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(e:/texlive/2022/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
(e:/texlive/2022/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(e:/texlive/2022/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))
(e:/texlive/2022/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
(e:/texlive/2022/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(e:/texlive/2022/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.co
de.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(e:/texlive/2022/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzli
brarytopaths.code.tex)))
(e:/texlive/2022/texmf-dist/tex/generic/babel/babel.sty
(e:/texlive/2022/texmf-dist/tex/generic/babel/xebabel.def)
(e:/texlive/2022/texmf-dist/tex/generic/babel-english/english.ldf))
(e:/texlive/2022/texmf-dist/tex/generic/babel/locale/en/babel-english.tex)
(e:/texlive/2022/texmf-dist/tex/latex/enumitem/enumitem.sty)
(e:/texlive/2022/texmf-dist/tex/latex/booktabs/booktabs.sty)
(e:/texlive/2022/texmf-dist/tex/latex/geometry/geometry.sty
(e:/texlive/2022/texmf-dist/tex/generic/iftex/ifvtex.sty
(e:/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty)))
(e:/texlive/2022/texmf-dist/tex/latex/psnfss/avant.sty)
(e:/texlive/2022/texmf-dist/tex/latex/psnfss/mathptmx.sty)
(e:/texlive/2022/texmf-dist/tex/latex/microtype/microtype.sty
(e:/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(e:/texlive/2022/texmf-dist/tex/latex/microtype/microtype-xetex.def)
(e:/texlive/2022/texmf-dist/tex/latex/microtype/microtype.cfg))
(e:/texlive/2022/texmf-dist/tex/latex/base/inputenc.sty

Package inputenc Warning: inputenc package ignored with utf8 based engines.

) (e:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty
(e:/texlive/2022/texmf-dist/tex/latex/psnfss/t1ptm.fd))
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.sty
(e:/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(e:/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(e:/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(e:/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(e:/texlive/2022/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(e:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.sty
(e:/texlive/2022/texmf-dist/tex/latex/logreq/logreq.def))
(e:/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty)
(e:/texlive/2022/texmf-dist/tex/latex/url/url.sty)
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-dm.def)
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-unicode.def)
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-compat.def)
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.def)
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx)
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/biblatex.cfg)

Package biblatex Warning: 'babel' option is deprecated.
(biblatex) Please use 'autolang' instead.

(e:/texlive/2022/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty
(e:/texlive/2022/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)))
(e:/texlive/2022/texmf-dist/tex/latex/tools/calc.sty)
(e:/texlive/2022/texmf-dist/tex/latex/base/makeidx.sty)
Writing index file main.idx
(e:/texlive/2022/texmf-dist/tex/latex/titlesec/titletoc.sty)
(e:/texlive/2022/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(e:/texlive/2022/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(e:/texlive/2022/texmf-dist/tex/latex/amsmath/amstext.sty
(e:/texlive/2022/texmf-dist/tex/latex/amsmath/amsgen.sty))
(e:/texlive/2022/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(e:/texlive/2022/texmf-dist/tex/latex/amsmath/amsopn.sty))
(e:/texlive/2022/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(e:/texlive/2022/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(e:/texlive/2022/texmf-dist/tex/latex/amscls/amsthm.sty)
(e:/texlive/2022/texmf-dist/tex/latex/mdframed/mdframed.sty
(e:/texlive/2022/texmf-dist/tex/latex/zref/zref-abspage.sty
(e:/texlive/2022/texmf-dist/tex/latex/zref/zref-base.sty
(e:/texlive/2022/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(e:/texlive/2022/texmf-dist/tex/generic/etexcmds/etexcmds.sty)
(e:/texlive/2022/texmf-dist/tex/latex/auxhook/auxhook.sty))
(e:/texlive/2022/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(e:/texlive/2022/texmf-dist/tex/latex/needspace/needspace.sty)
(e:/texlive/2022/texmf-dist/tex/latex/mdframed/md-frame-0.mdf))
(e:/texlive/2022/texmf-dist/tex/latex/hyperref/hyperref.sty
(e:/texlive/2022/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(e:/texlive/2022/texmf-dist/tex/latex/hycolor/hycolor.sty)
(e:/texlive/2022/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty)
(e:/texlive/2022/texmf-dist/tex/latex/hyperref/nameref.sty
(e:/texlive/2022/texmf-dist/tex/latex/refcount/refcount.sty)
(e:/texlive/2022/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))
(e:/texlive/2022/texmf-dist/tex/latex/hyperref/pd1enc.def)
(e:/texlive/2022/texmf-dist/tex/generic/intcalc/intcalc.sty)
(e:/texlive/2022/texmf-dist/tex/latex/hyperref/puenc.def)
(e:/texlive/2022/texmf-dist/tex/generic/bitset/bitset.sty
(e:/texlive/2022/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty)))
(e:/texlive/2022/texmf-dist/tex/latex/hyperref/hxetex.def
(e:/texlive/2022/texmf-dist/tex/generic/stringenc/stringenc.sty)
(e:/texlive/2022/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(e:/texlive/2022/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(e:/texlive/2022/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty)))

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


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


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


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

(e:/texlive/2022/texmf-dist/tex/latex/bookmark/bookmark.sty
(e:/texlive/2022/texmf-dist/tex/latex/bookmark/bkm-dvipdfm.def)))
(e:/texlive/2022/texmf-dist/tex/latex/ctex/ctex.sty
(e:/texlive/2022/texmf-dist/tex/latex/ctex/ctexhook.sty)
(e:/texlive/2022/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(e:/texlive/2022/texmf-dist/tex/latex/base/fix-cm.sty
(e:/texlive/2022/texmf-dist/tex/latex/base/ts1enc.def))
(e:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(e:/texlive/2022/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
(e:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(e:/texlive/2022/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(e:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.sty
(e:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(e:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty)
(e:/texlive/2022/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(e:/texlive/2022/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))
(e:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber.sty
(e:/texlive/2022/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))
(e:/texlive/2022/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def
(e:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(e:/texlive/2022/texmf-dist/tex/latex/tools/indentfirst.sty)
(e:/texlive/2022/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def))
(e:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex.cfg)
(e:/texlive/2022/texmf-dist/tex/latex/esint/esint.sty)
(e:/texlive/2022/texmf-dist/tex/latex/euler/euler.sty
Package: `euler' v2.5 <1995/03/05> (FJ and FMi)
) (e:/texlive/2022/texmf-dist/tex/latex/newpx/newpxtext.sty
`newpxtext' v1.504, 2022/01/30 Text macros taking advantage of TeXGyre Pagella
and its extensions (msharpe)
(e:/texlive/2022/texmf-dist/tex/latex/base/fontenc.sty
(e:/texlive/2022/texmf-dist/tex/latex/lm/t1lmr.fd))
(e:/texlive/2022/texmf-dist/tex/generic/iftex/ifxetex.sty)
(e:/texlive/2022/texmf-dist/tex/generic/iftex/ifluatex.sty)
(e:/texlive/2022/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(e:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(e:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(e:/texlive/2022/texmf-dist/tex/latex/base/textcomp.sty)
(e:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.sty
(e:/texlive/2022/texmf-dist/tex/generic/xstring/xstring.tex))
(e:/texlive/2022/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(e:/texlive/2022/texmf-dist/tex/latex/realscripts/realscripts.sty))

Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing.
(biblatex) Loading 'csquotes' recommended.

(e:/texlive/2022/texmf-dist/tex/latex/newpx/TeXGyrePagellaX.fontspec)
(./main.aux (./sub_chapter/01-basic_block.aux)
(./sub_chapter/02-advance_block.aux) (./sub_chapter/03-database.aux)
(./sub_chapter/04-multi_media.aux) (./sub_chapter/05-insert_block.aux)
(./sub_chapter/06-rich_text.aux) (./sub_chapter/07-database_op.aux)
(./sub_chapter/08-database_formula.aux))
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
(e:/texlive/2022/texmf-dist/tex/latex/biblatex/lbx/english.lbx)
No file main.bbl.

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

For immediate help type H <return>.
...

l.79 ...sep=1cm]{\Huge\centering\bfseries\sffamily
\parbox[c][][t]{\paperwidt...

?