-
找不到pdflatex.fmt 解决方案:
添加环境变量 C:\Windows\System32,重启之后好使了 -
解决上一问题后,texdoc 打不开了,不是内部或外部命令
解决方案:
添加环境变量E:\texlive\2022\bin\win32,直接好使。
2022.3.4
- 中文示例代码,用XeLaTex编译不成功,使用LuaLaTex编译很慢但是成功。
\documentclass{ctexart}
\begin{document}
“你好,世界!”来自 \LaTeX{} 的问候。
\end{document}
XeLaTex编译后报错:
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./未命名-2.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24>
(e:/texlive/2022/texmf-dist/tex/latex/ctex/ctexart.cls
(e:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg)
(e:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.sty
(e:/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-xetex.def
(|extractbb --version)))
Document Class: ctexart 2021/12/12 v2.5.8 Chinese adapter for class article (CT
EX)
(e:/texlive/2022/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(e:/texlive/2022/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.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/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(e:/texlive/2022/texmf-dist/tex/latex/base/size10.clo))
(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-article.d
ef (e:/texlive/2022/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(e:/texlive/2022/texmf-dist/tex/latex/ctex/ctex-c5size.clo)
(e:/texlive/2022/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.defname = SimSun/OT, rootname = SimSun/OT, pointsize =
mktexmf: empty or non-existent rootfile!
kpathsea: Running mktexmf SimSun/OT.mf
The command name is E:\texlive\2022\bin\win32\mktexmf
Cannot find SimSun/OT.mf.
! Package fontspec Error: The font "SimSun" cannot be found.
For immediate help type H <return>.
...
l.101 }
?
LuaLaTeX编译成功: