sjtug / SJTUThesis

上海交通大学 LaTeX 论文模板 | Shanghai Jiao Tong University LaTeX Thesis Template
Apache License 2.0
3.29k stars 787 forks source link

macOS编译失败,显示缺少字体(Kaiti) #719

Closed aozaki-kuro closed 2 years ago

aozaki-kuro commented 2 years ago

问题描述:

目前macOS升级至Monterey(12.0.1),输入make all后显示编译失败。 先前在Big Sur下是可以编译的。

系统信息:

日志信息:

运行make all后terminal显示

Latexmk: Run number 1 of rule 'xelatex'
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode

kpathsea: Running mktextfm SimSun
/usr/local/texlive/2021/texmf-dist/web2c/mktexnam: Could not map source abbreviation S for SimSun.
/usr/local/texlive/2021/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2021/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input SimSun
This is METAFONT, Version 2.71828182 (TeX Live 2021) (preloaded base=mf)

kpathsea: Running mktexmf SimSun
! I can't find file `SimSun'.
<*> ...ljfour; mag:=1; ; nonstopmode; input SimSun

Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; ; nonstopmode; input SimSun

Transcript written on mfput.log.
grep: SimSun.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input SimSun' failed to make SimSun.tfm.
kpathsea: Appending font creation commands to missfont.log.
Latexmk: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to 'main.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
make: *** [main.pdf] Error 12

手动安装simsun.ttf后显示

Latexmk: Run number 1 of rule 'xelatex'
This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
Latexmk: Log file says no output from latex
Latexmk: For rule 'xelatex', no output was made
Collected error summary (may duplicate other messages):
  xelatex: Command for 'xelatex' gave return code 1
      Refer to 'main.log' for details
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
make: *** [main.pdf] Error 12

mainlog在这里

This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex 2021.10.30)  31 OCT 2021 13:02
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**main.tex
(./main.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18> (./texmf/tex/latex/sjtuthesis/sjtuthesis.cls
Document Class: sjtuthesis 2021/06/03 1.1.0rc1 Shanghai Jiao Tong University Th
esis Template
(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
) (/usr/local/texlive/2021/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
) (/usr/local/texlive/2021/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks15
) (/usr/local/texlive/2021/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/ctexbook.cls (/usr/local/
texlive/2021/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg
File: ctexbackend.cfg 2021/03/14 v2.5.6 Backend configuration file (CTEX)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2021-02-18 L3 programming layer (loader) 
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
File: l3backend-xetex.def 2021-03-18 L3 backend support: XeTeX
(|extractbb --version)
\c__kernel_sys_dvipdfmx_version_int=\count175
\l__color_backend_stack_int=\count176
\g__color_backend_stack_int=\count177
\g__graphics_track_int=\count178
\l__pdf_internal_box=\box47
\g__pdf_backend_object_int=\count179
\g__pdf_backend_annotation_int=\count180
\g__pdf_backend_link_int=\count181
))
Document Class: ctexbook 2021/03/14 v2.5.6 Chinese adapter for class book (CTEX
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse-2020-10-
01.sty
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.
tex))) (/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys
2e.sty
Package: l3keys2e 2021-03-12 LaTeX2e option processing using LaTeX3 keys
) (/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/ctexhook.sty
Package: ctexhook 2021/03/14 v2.5.6 Document and package hooks (CTEX)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/ctexpatch.sty
Package: ctexpatch 2021/03/14 v2.5.6 Patching commands (CTEX)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/base/fix-cm.sty
Package: fix-cm 2015/01/14 v1.1t fixes to LaTeX
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding TS1 on input line 47.
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/everysel/everysel.sty
Package: everysel 2021/01/20 v2.1 EverySelectfont Package (MS)
(/usr/local/texlive/2021/texmf-dist/tex/latex/everysel/everysel-2011-10-28.sty)
)
\l__ctex_tmp_int=\count182
\l__ctex_tmp_box=\box48
\l__ctex_tmp_dim=\dimen138
\g__ctex_section_depth_int=\count183
\g__ctex_font_size_int=\count184
(/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/config/ctexopts.cfg
File: ctexopts.cfg 2021/03/14 v2.5.6 Option configuration file (CTEX)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/base/book.cls
Document Class: book 2020/04/10 v1.4m Standard LaTeX document class
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/bk10.clo
File: bk10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count185
\c@chapter=\count186
\c@section=\count187
\c@subsection=\count188
\c@subsubsection=\count189
\c@paragraph=\count190
\c@subparagraph=\count191
\c@figure=\count192
\c@table=\count193
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen139
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
File: ctex-engine-xetex.def 2021/03/14 v2.5.6 XeLaTeX adapter (CTEX)
(/usr/local/texlive/2021/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
Package: xeCJK 2020/10/19 v3.8.6 Typesetting CJK scripts with XeLaTeX

(/usr/local/texlive/2021/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.st
y
Package: xtemplate 2021-03-12 L3 Experimental prototype document functions
\l__xtemplate_tmp_dim=\dimen140
\l__xtemplate_tmp_int=\count194
\l__xtemplate_tmp_muskip=\muskip16
\l__xtemplate_tmp_skip=\skip49
)
\l__xeCJK_tmp_int=\count195
\l__xeCJK_tmp_box=\box49
\l__xeCJK_tmp_dim=\dimen141
\l__xeCJK_tmp_skip=\skip50
\g__xeCJK_space_factor_int=\count196
\l__xeCJK_begin_int=\count197
\l__xeCJK_end_int=\count198
\c__xeCJK_CJK_class_int=\XeTeXcharclass1
\c__xeCJK_FullLeft_class_int=\XeTeXcharclass2
\c__xeCJK_FullRight_class_int=\XeTeXcharclass3
\c__xeCJK_HalfLeft_class_int=\XeTeXcharclass4
\c__xeCJK_HalfRight_class_int=\XeTeXcharclass5
\c__xeCJK_NormalSpace_class_int=\XeTeXcharclass6
\c__xeCJK_CM_class_int=\XeTeXcharclass7
\c__xeCJK_HangulJamo_class_int=\XeTeXcharclass8
\l__xeCJK_last_skip=\skip51
\g__xeCJK_node_int=\count199
\c__xeCJK_CJK_node_dim=\dimen142
\c__xeCJK_CJK-space_node_dim=\dimen143
\c__xeCJK_default_node_dim=\dimen144
\c__xeCJK_default-space_node_dim=\dimen145
\c__xeCJK_CJK-widow_node_dim=\dimen146
\c__xeCJK_normalspace_node_dim=\dimen147
\l__xeCJK_ccglue_skip=\skip52
\l__xeCJK_ecglue_skip=\skip53
\l__xeCJK_punct_kern_skip=\skip54
\l__xeCJK_last_penalty_int=\count266
\l__xeCJK_last_bound_dim=\dimen148
\l__xeCJK_last_kern_dim=\dimen149
\l__xeCJK_widow_penalty_int=\count267

Package xtemplate Info: Declaring object type 'xeCJK/punctuation' taking 0
(xtemplate)             argument(s) on line 2341.

\l__xeCJK_fixed_punct_width_dim=\dimen150
\l__xeCJK_mixed_punct_width_dim=\dimen151
\l__xeCJK_middle_punct_width_dim=\dimen152
\l__xeCJK_fixed_margin_width_dim=\dimen153
\l__xeCJK_mixed_margin_width_dim=\dimen154
\l__xeCJK_middle_margin_width_dim=\dimen155
\l__xeCJK_bound_punct_width_dim=\dimen156
\l__xeCJK_bound_margin_width_dim=\dimen157
\l__xeCJK_margin_minimum_dim=\dimen158
\l__xeCJK_kerning_total_width_dim=\dimen159
\l__xeCJK_same_align_margin_dim=\dimen160
\l__xeCJK_different_align_margin_dim=\dimen161
\l__xeCJK_kerning_margin_width_dim=\dimen162
\l__xeCJK_kerning_margin_minimum_dim=\dimen163
\l__xeCJK_bound_dim=\dimen164
\l__xeCJK_reverse_bound_dim=\dimen165
\l__xeCJK_margin_dim=\dimen166
\l__xeCJK_minimum_bound_dim=\dimen167
\l__xeCJK_kerning_margin_dim=\dimen168
\g__xeCJK_family_int=\count268
\l__xeCJK_fam_int=\count269
\g__xeCJK_fam_allocation_int=\count270
\l__xeCJK_verb_case_int=\count271
\l__xeCJK_verb_exspace_skip=\skip55
(/usr/local/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec.sty
Package: fontspec 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
(/usr/local/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
Package: fontspec-xetex 2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTe
X
\l__fontspec_script_int=\count272
\l__fontspec_language_int=\count273
\l__fontspec_strnum_int=\count274
\l__fontspec_tmp_int=\count275
\l__fontspec_tmpa_int=\count276
\l__fontspec_tmpb_int=\count277
\l__fontspec_tmpc_int=\count278
\l__fontspec_em_int=\count279
\l__fontspec_emdef_int=\count280
\l__fontspec_strong_int=\count281
\l__fontspec_strongdef_int=\count282
\l__fontspec_tmpa_dim=\dimen169
\l__fontspec_tmpb_dim=\dimen170
\l__fontspec_tmpc_dim=\dimen171
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
) (/usr/local/texlive/2021/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/
local/texlive/2021/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg
File: xeCJK.cfg 2020/10/19 v3.8.6 Configuration file for xeCJK package
))
\ccwd=\dimen172
\l__ctex_ccglue_skip=\skip56
)
\l__ctex_ziju_dim=\dimen173
(/usr/local/texlive/2021/texmf-dist/tex/latex/zhnumber/zhnumber.sty
Package: zhnumber 2020/05/01 v2.8 Typesetting numbers with Chinese glyphs
\l__zhnum_scale_int=\count283
(/usr/local/texlive/2021/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg
File: zhnumber-utf8.cfg 2020/05/01 v2.8 Chinese numerals with UTF8 encoding
))
\l__ctex_heading_skip=\skip57

(/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-boo
k.def
File: ctex-scheme-plain-book.def 2021/03/14 v2.5.6 Plain scheme for book (CTEX)

) (/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/ctex-c5size.clo
File: ctex-c5size.clo 2021/03/14 v2.5.6 c5size option (CTEX)
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/ctex/config/ctex.cfg
File: ctex.cfg 2021/03/14 v2.5.6 Configuration file (CTEX)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count284
) (/usr/local/texlive/2021/texmf-dist/tex/latex/filehook/filehook.sty
Package: filehook 2020/09/29 v0.8a Hooks for input files
(/usr/local/texlive/2021/texmf-dist/tex/latex/filehook/filehook-2020.sty
Package: filehook-2020 2020/09/29 v0.8a Hooks for input files
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/environ/environ.sty
Package: environ 2014/05/04 v0.3 A new way to define environments
(/usr/local/texlive/2021/texmf-dist/tex/latex/trimspaces/trimspaces.sty
Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
)
\@envbody=\toks16
) (/usr/local/texlive/2021/texmf-dist/tex/latex/tools/calc.sty
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count285
\calc@Bcount=\count286
\calc@Adimen=\dimen174
\calc@Bdimen=\dimen175
\calc@Askip=\skip58
\calc@Bskip=\skip59
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count287
\calc@Cskip=\skip60
) (/usr/local/texlive/2021/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/ifvtex.sty
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
)
\Gm@cnth=\count288
\Gm@cntv=\count289
\c@Gm@tempcnt=\count290
\Gm@bindingoffset=\dimen176
\Gm@wd@mp=\dimen177
\Gm@odd@mp=\dimen178
\Gm@even@mp=\dimen179
\Gm@layoutwidth=\dimen180
\Gm@layoutheight=\dimen181
\Gm@layouthoffset=\dimen182
\Gm@layoutvoffset=\dimen183
\Gm@dimlist=\toks17
) (/usr/local/texlive/2021/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty
Package: fancyhdr 2021/01/28 v4.0.1 Extensive control of page headers and foote
rs
\f@nch@headwidth=\skip61
\f@nch@O@elh=\skip62
\f@nch@O@erh=\skip63
\f@nch@O@olh=\skip64
\f@nch@O@orh=\skip65
\f@nch@O@elf=\skip66
\f@nch@O@erf=\skip67
\f@nch@O@olf=\skip68
\f@nch@O@orf=\skip69
) (/usr/local/texlive/2021/texmf-dist/tex/latex/pageslts/pageslts.sty
Package: pageslts 2015/12/21 v1.2f Refers to special pages' numbers/names (HMM)

(/usr/local/texlive/2021/texmf-dist/tex/latex/base/atveryend-ltx.sty
Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atvery packag
e
with kernel methods
) (/usr/local/texlive/2021/texmf-dist/tex/latex/base/everyshi-ltx.sty
Package: everyshi-ltx 2020/08/17 v1.0a Emulation of the original everyshi packa
ge
with kernel methods
) (/usr/local/texlive/2021/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty
Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/undolabl/undolabl.sty
Package: undolabl 2015/03/29 v1.0l Overriding labels (HMM)
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
Package: rerunfilecheck 2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
(/usr/local/texlive/2021/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
) (/usr/local/texlive/2021/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode not found.
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty
Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO)
(/usr/local/texlive/2021/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty
Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO
)
))
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
86.
)
Package pageslts Info: Option pagecontinue enabled
(pageslts)             (maybe by default):
(pageslts)             The pageslts package will continue the page numbering,
(pageslts)             when the same page numbering scheme is used twice.
(pageslts)             If you do not want this, call pageslts with option
(pageslts)             pagecontinue=false (or use \setcounter{page}=1).
(pageslts)              on input line 179.
(/usr/local/texlive/2021/texmf-dist/tex/generic/alphalph/alphalph.sty
Package: alphalph 2019/12/09 v2.6 Convert numbers to letters (HO)
(/usr/local/texlive/2021/texmf-dist/tex/generic/intcalc/intcalc.sty
Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO)
))
Package pageslts Info: Option romanMult enabled
(pageslts)             (maybe by default):
(pageslts)             The pageslts package will extend the page numbering
(pageslts)             of the roman scheme below i with
(pageslts)             0, -i, -ii, -iii, -iv,...
(pageslts)             If you do not want this, call pageslts with option
(pageslts)             romanMult=false.
(pageslts)              on input line 278.
Package pageslts Info: Option RomanMulti enabled
(pageslts)             (maybe by default):
(pageslts)             The pageslts package will extend the page numbering
(pageslts)             of the Roman scheme below I with
(pageslts)             0, -I, -II, -III, -IV,...
(pageslts)             If you do not want this, call pageslts with option
(pageslts)             RomanMulti=false.
(pageslts)              on input line 300.
Package pageslts Info: Option fnsymbolmult enabled
(pageslts)             (maybe by default):
(pageslts)             The pageslts package will extend the page numbering
(pageslts)             of the footnotesymbol scheme using the alphalph
(pageslts)             package.
(pageslts)             If you do not want this, call pageslts with option
(pageslts)             fnsymbolmult=false.
(pageslts)              on input line 322.
\c@CurrentPage=\count291
\c@pagesLTS.pagenr=\count292
\c@pagesLTS.current.local.0=\count293
\c@pagesLTS.pnc.0=\count294
) (/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2020/09/23 v2.17i AMS math features
\@mathmargin=\skip70
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks18
\ex@=\dimen184
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen185
) (/usr/local/texlive/2021/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count295
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count296
\leftroot@=\count297
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count298
\DOTSCASE@=\count299
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50
\strutbox@=\box51
\big@size=\dimen186
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count300
\c@MaxMatrixCols=\count301
\dotsspace@=\muskip17
\c@parentequation=\count302
\dspbrk@lvl=\count303
\tag@help=\toks19
\row@=\count304
\column@=\count305
\maxfields@=\count306
\andhelp@=\toks20
\eqnshift@=\dimen187
\alignsep@=\dimen188
\tagshift@=\dimen189
\tagwidth@=\dimen190
\totwidth@=\dimen191
\lineht@=\dimen192
\@envbody=\toks21
\multlinegap=\skip71
\multlinetaggap=\skip72
\mathdisplay@stack=\toks22
LaTeX Info: Redefining \[ on input line 2923.
LaTeX Info: Redefining \] on input line 2924.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: xetex.def on input line 225.
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-def/xetex.def
File: xetex.def 2021/03/18 v5.0k Graphics/color driver for xetex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2020/09/09 v1.2b Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: xetex.def on input line 105.
)
\Gin@req@height=\dimen193
\Gin@req@width=\dimen194
) (/usr/local/texlive/2021/texmf-dist/tex/latex/tools/array.sty
Package: array 2020/10/01 v2.5c Tabular extension package (FMi)
\col@sep=\dimen195
\ar@mcellbox=\box52
\extrarowheight=\dimen196
\NC@list=\toks23
\extratabsurround=\skip73
\backup@length=\skip74
\ar@cellbox=\box53
) (/usr/local/texlive/2021/texmf-dist/tex/latex/booktabs/booktabs.sty
Package: booktabs 2020/01/12 v1.61803398 Publication quality tables
\heavyrulewidth=\dimen197
\lightrulewidth=\dimen198
\cmidrulewidth=\dimen199
\belowrulesep=\dimen256
\belowbottomsep=\dimen257
\aboverulesep=\dimen258
\abovetopsep=\dimen259
\cmidrulesep=\dimen260
\cmidrulekern=\dimen261
\defaultaddspace=\dimen262
\@cmidla=\count307
\@cmidlb=\count308
\@aboverulesep=\dimen263
\@belowrulesep=\dimen264
\@thisruleclass=\count309
\@lastruleclass=\count310
\@thisrulewidth=\dimen265
) (/usr/local/texlive/2021/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2020/10/26 v3.5g Customizing captions (AR)
(/usr/local/texlive/2021/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2020/10/21 v2.2e caption3 kernel (AR)
\captionmargin=\dimen266
\captionmargin@=\dimen267
\captionwidth=\dimen268
\caption@tempdima=\dimen269
\caption@indent=\dimen270
\caption@parindent=\dimen271
\caption@hangindent=\dimen272
Package caption Info: Standard document class detected.
)
\c@caption@flags=\count311
\c@continuedfloat=\count312
) (/usr/local/texlive/2021/texmf-dist/tex/latex/caption/bicaption.sty
Package: bicaption 2020/10/25 v1.3 Bilingual Captions (AR)
\bicaption@lang=\count313
Package bicaption Info: main language is not set.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/caption/subcaption.sty
Package: subcaption 2020/10/07 v1.3j Sub-captions (AR)
\c@subfigure=\count314
\c@subtable=\count315
) (/usr/local/texlive/2021/texmf-dist/tex/latex/tocloft/tocloft.sty
Package: tocloft 2017/08/31 v2.3i parameterised ToC, etc., typesetting
Package tocloft Info: The document has chapter divisions on input line 51.
\cftparskip=\skip75
\cftbeforetoctitleskip=\skip76
\cftaftertoctitleskip=\skip77
\cftbeforepartskip=\skip78
\cftpartnumwidth=\skip79
\cftpartindent=\skip80
\cftbeforechapskip=\skip81
\cftchapindent=\skip82
\cftchapnumwidth=\skip83
\cftbeforesecskip=\skip84
\cftsecindent=\skip85
\cftsecnumwidth=\skip86
\cftbeforesubsecskip=\skip87
\cftsubsecindent=\skip88
\cftsubsecnumwidth=\skip89
\cftbeforesubsubsecskip=\skip90
\cftsubsubsecindent=\skip91
\cftsubsubsecnumwidth=\skip92
\cftbeforeparaskip=\skip93
\cftparaindent=\skip94
\cftparanumwidth=\skip95
\cftbeforesubparaskip=\skip96
\cftsubparaindent=\skip97
\cftsubparanumwidth=\skip98
\cftbeforeloftitleskip=\skip99
\cftafterloftitleskip=\skip100
\cftbeforefigskip=\skip101
\cftfigindent=\skip102
\cftfignumwidth=\skip103
\c@lofdepth=\count316
\c@lotdepth=\count317
\cftbeforelottitleskip=\skip104
\cftafterlottitleskip=\skip105
\cftbeforetabskip=\skip106
\cfttabindent=\skip107
\cfttabnumwidth=\skip108
) (/usr/local/texlive/2021/texmf-dist/tex/latex/enumitem/enumitem.sty
Package: enumitem 2019/06/20 v3.9 Customized lists
\labelindent=\skip109
\enit@outerparindent=\dimen273
\enit@toks=\toks24
\enit@inbox=\box54
\enit@count@id=\count318
\enitdp@description=\count319
) (/usr/local/texlive/2021/texmf-dist/tex/latex/footmisc/footmisc.sty
Package: footmisc 2011/06/06 v5.5b a miscellany of footnote facilities
\FN@temptoken=\toks25
\footnotemargin=\dimen274
\c@pp@next@reset=\count320
\c@@fnserial=\count321
Package footmisc Info: Declaring symbol style bringhurst on input line 855.
Package footmisc Info: Declaring symbol style chicago on input line 863.
Package footmisc Info: Declaring symbol style wiley on input line 872.
Package footmisc Info: Declaring symbol style lamport-robust on input line 883.

Package footmisc Info: Declaring symbol style lamport* on input line 903.
Package footmisc Info: Declaring symbol style lamport*-robust on input line 924
.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/pdfpages/pdfpages.sty
Package: pdfpages 2021/03/06 v0.5t Insert pages of external PDF documents (AM)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
) (/usr/local/texlive/2021/texmf-dist/tex/latex/eso-pic/eso-pic.sty
Package: eso-pic 2020/10/14 v3.0a eso-pic (RN)
\ESO@tempdima=\dimen275
\ESO@tempdimb=\dimen276
)
\AM@pagewidth=\dimen277
\AM@pageheight=\dimen278
\AM@fboxrule=\dimen279
(/usr/local/texlive/2021/texmf-dist/tex/latex/pdfpages/ppxetex.def
File: ppxetex.def 2021/03/06 v0.5t Pdfpages driver for XeTeX (AM)
)
\pdfpages@includegraphics@status=\count322
\AM@pagebox=\box55
\AM@global@opts=\toks26
\AM@pagecnt=\count323
\AM@toc@title=\toks27
\c@AM@survey=\count324
\AM@templatesizebox=\box56
) (/usr/local/texlive/2021/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip18
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/silence/silence.sty
Package: silence 2012/07/02 v1.5b Selective filtering of warnings and error mes
sages
\sl@Save=\count325
\sl@StateNumber=\count326
\sl@MessageCount=\count327
\sl@Casualties=\count328
\sl@Filter=\toks28
\sl@Message=\toks29
\sl@UnexpandedMessage=\toks30
\sl@Mess@ge=\toks31
\sl@WarningCount=\count329
\sl@WarningNumber=\count330
\sl@WarningCasualties=\count331
\sl@TempBOW=\toks32
\sl@BankOfWarnings=\toks33
LaTeX Info: Redefining \GenericWarning on input line 433.
\sl@ErrorCount=\count332
\sl@ErrorNumber=\count333
\sl@ErrorCasualties=\count334
\sl@TempBOE=\toks34
\sl@BankOfErrors=\toks35
LaTeX Info: Redefining \GenericError on input line 601.
) (./texmf/tex/latex/sjtuthesis/fd/sjtu-math-font-termes.def
File: sjtu-math-font-termes.def 2021/06/03 1.1.0rc1 Termes math fonts definitio
n (SJTUThesis)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
LaTeX Font Info:    Trying to load font information for T1+lmr on input line 11
2.
(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/t1lmr.fd
File: t1lmr.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/newtx/newtxmath.sty
Package: newtxmath 2020/12/20 v1.640

`newtxmath' v1.640, 2020/12/20 Math macros based originally on txfonts (msharpe
) (/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/ifxetex.sty
Package: ifxetex 2019/10/25 v0.7 ifxetex legacy package. Use iftex instead.
) (/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/ifluatex.sty
Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2020/11/20 v2.8 package option processing (HA)
(/usr/local/texlive/2021/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local
/texlive/2021/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks36
\XKV@tempa@toks=\toks37
)
\XKV@depth=\count335
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)) (/usr/local/texlive/2021/texmf-dist/tex/latex/oberdiek/centernot.sty
Package: centernot 2016/05/16 v1.4 Centers the not symbol horizontally (HO)
)
\tx@cntz=\count336
(/usr/local/texlive/2021/texmf-dist/tex/generic/kastrup/binhex.tex)
\tx@Isdigit=\count337
\tx@IsAlNum=\count338
\tx@tA=\toks38
\tx@tB=\toks39
\tx@su=\read2
LaTeX Font Info:    Redeclaring symbol font `operators' on input line 360.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/ntxtlf/m/n on input line 360.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/ntxtlf/m/n on input line 360.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/ntxtlf/m/n --> OT1/ntxtlf/b/n on input line 361.
LaTeX Font Info:    Redeclaring math alphabet \mathsf on input line 369.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> T1/qhv/m/n on input line 369.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> T1/qhv/m/n on input line 369.
LaTeX Font Info:    Redeclaring math alphabet \mathit on input line 370.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> OT1/ntxtlf/m/it on input line 370.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> OT1/ntxtlf/m/it on input line 370.
LaTeX Font Info:    Redeclaring math alphabet \mathtt on input line 371.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> T1/ntxtt/m/n on input line 371.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> T1/ntxtt/m/n on input line 371.
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 373.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> OT1/ntxtlf/b/n on input line 373.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/ntxtlf/b/n on input line 373.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/ntxtlf/m/it --> OT1/ntxtlf/b/it on input line 374.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  T1/qhv/m/n --> T1/qhv/b/n on input line 375.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  T1/ntxtt/m/n --> T1/ntxtt/b/n on input line 376.
LaTeX Font Info:    Redeclaring symbol font `letters' on input line 477.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/cmm/m/it --> OML/ntxmi/m/it on input line 477.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/cmm/b/it --> OML/ntxmi/m/it on input line 477.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/ntxmi/m/it --> OML/ntxmi/b/it on input line 478.
\symlettersA=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `lettersA' in version `bold'
(Font)                  U/ntxmia/m/it --> U/ntxmia/b/it on input line 542.
LaTeX Font Info:    Redeclaring symbol font `symbols' on input line 563.
LaTeX Font Info:    Encoding `OMS' has changed to `LMS' for symbol font
(Font)              `symbols' in the math version `normal' on input line 563.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/cmsy/m/n --> LMS/ntxsy/m/n on input line 563.
LaTeX Font Info:    Encoding `OMS' has changed to `LMS' for symbol font
(Font)              `symbols' in the math version `bold' on input line 563.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/cmsy/b/n --> LMS/ntxsy/m/n on input line 563.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  LMS/ntxsy/m/n --> LMS/ntxsy/b/n on input line 564.
\symAMSm=\mathgroup5
LaTeX Font Info:    Overwriting symbol font `AMSm' in version `bold'
(Font)                  U/ntxsym/m/n --> U/ntxsym/b/n on input line 587.
\symsymbolsC=\mathgroup6
LaTeX Font Info:    Overwriting symbol font `symbolsC' in version `bold'
(Font)                  U/ntxsyc/m/n --> U/ntxsyc/b/n on input line 608.
LaTeX Font Info:    Redeclaring symbol font `largesymbols' on input line 621.
LaTeX Font Info:    Encoding `OMX' has changed to `LMX' for symbol font
(Font)              `largesymbols' in the math version `normal' on input line 6
21.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/cmex/m/n --> LMX/ntxexx/m/n on input line 621.
LaTeX Font Info:    Encoding `OMX' has changed to `LMX' for symbol font
(Font)              `largesymbols' in the math version `bold' on input line 621
.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/cmex/m/n --> LMX/ntxexx/m/n on input line 621.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  LMX/ntxexx/m/n --> LMX/ntxexx/b/n on input line 622.
\symlargesymbolsTXA=\mathgroup7
LaTeX Font Info:    Overwriting symbol font `largesymbolsTXA' in version `bold'

(Font)                  U/ntxexa/m/n --> U/ntxexa/b/n on input line 636.
\tx@sbptoks=\toks40
LaTeX Font Info:    Redeclaring math delimiter \lfloor on input line 858.
LaTeX Font Info:    Redeclaring math delimiter \rfloor on input line 859.
LaTeX Font Info:    Redeclaring math delimiter \lceil on input line 860.
LaTeX Font Info:    Redeclaring math delimiter \rceil on input line 861.
LaTeX Font Info:    Redeclaring math delimiter \lbrace on input line 862.
LaTeX Font Info:    Redeclaring math delimiter \rbrace on input line 863.
LaTeX Font Info:    Redeclaring math delimiter \langle on input line 864.
LaTeX Font Info:    Redeclaring math delimiter \rangle on input line 866.
LaTeX Font Info:    Redeclaring math delimiter \arrowvert on input line 870.
LaTeX Font Info:    Redeclaring math delimiter \vert on input line 871.
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 917.
LaTeX Font Info:    Redeclaring math accent \dot on input line 942.
LaTeX Font Info:    Redeclaring math accent \ddot on input line 943.
LaTeX Font Info:    Redeclaring math accent \vec on input line 2006.
LaTeX Font Info:    Redeclaring math symbol \imathscr on input line 2646.
LaTeX Font Info:    Redeclaring math symbol \jmathscr on input line 2647.
LaTeX Info: Redefining \Bbbk on input line 2780.
LaTeX Info: Redefining \not on input line 2929.
) (/usr/local/texlive/2021/texmf-dist/tex/latex/tools/bm.sty
Package: bm 2019/07/24 v1.2d Bold Symbol Support (DPC/FMi)
\symboldoperators=\mathgroup8
\symboldletters=\mathgroup9
\symboldsymbols=\mathgroup10
\symboldlargesymbols=\mathgroup11
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 141.
LaTeX Info: Redefining \bm on input line 209.
)) (./texmf/tex/latex/sjtuthesis/fd/sjtu-text-font-termes.def
File: sjtu-text-font-termes.def 2021/06/03 1.1.0rc1 Termes text fonts definitio
n (SJTUThesis)
) (./texmf/tex/latex/sjtuthesis/fd/sjtu-cjk-font-windows.def
File: sjtu-cjk-font-windows.def 2021/06/03 1.1.0rc1 Windows CJK fonts definitio
n (SJTUThesis)

./texmf/tex/latex/sjtuthesis/fd/sjtu-cjk-font-windows.def:29: Package fontspec 
Error: The font "KaiTi" cannot be found.

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

l.29 ]

Here is how much of TeX's memory you used:
 16292 strings out of 476919
 342064 string characters out of 5821839
 687405 words of memory out of 5000000
 35998 multiletter control sequences out of 15000+600000
 406644 words of font info for 56 fonts, out of 8000000 for 9000
 1349 hyphenation exceptions out of 8191
 114i,0n,142p,1199b,268s stack positions out of 5000i,500n,10000p,200000b,80000s

No pages of output.

不知道是哪里出问题了…

zepinglee commented 2 years ago

跟 macOS 12.0.1 Monterey 没啥关系。

./texmf/tex/latex/sjtuthesis/fd/sjtu-cjk-font-windows.def:29: Package fontspec 
Error: The font "KaiTi" cannot be found.
skyzh commented 2 years ago

可以在 Font Book 应用中手动安装 Kaiti 试试。

aozaki-kuro commented 2 years ago

解决了,似乎还是跟系统相关的,升级monterey后不知道为什么Kaiti不见了。

尽管手动安装SimSun.tff以及Kaiti等缺失字体可以让编译通过,但是会影响Discord等程序的字体调用导致UI巨丑无比。 所以最后删除了SimSun进行尝试,发现编译日志显示缺少Kaiti Regular SC。自行安装来自Windows的Kaiti.ttf仍然显示找不到字体等错误。

搜寻Apple官方支持后发现应该通过如下步骤添加:

打开Font Book,左侧栏选择“全部”,找到“楷体-简”并同意下载。 随后输入到项目底部选择make all,一路同意下载缺失字体即可通过编译。

解决方法原地址:https://discussions.apple.com/thread/251471675

Closed

zepinglee commented 2 years ago

注意 sjtu-cjk-font-windows.def 的 KaiTi 是 Windows 的中易楷体,macOS 的 Kaiti SC 是华文楷体。

macOS 在存储空间不足时(比如升级系统时)会自动删掉系统的非核心的字体,但是这些都可以重新下载。