- 已编辑
今天想编译文档时发现报错(明明早上还好好的,上午后来就不行了)
编译tex函数
xelatex("test.tex")
可重现文档内容:
\documentclass{ctexart}
\begin{document}
$$
\frac{1}{2}
$$
\end{document}
报错:
tlmgr update --all --self
tlmgr.pl: package repository http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet (not verified: pubkey missing)
tlmgr.pl install: package already present: l3kernel
! LaTeX Error: Mismatched LaTeX support files detected.
(LaTeX) Loading 'expl3.sty' aborted!
(LaTeX)
(LaTeX) The L3 programming layer in the LaTeX format
(LaTeX) is dated 2023-05-05, but in your TeX tree the files require
(LaTeX) at least 2023-06-30.Error: LaTeX failed to compile C:/Users/e2023/Documents/test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See test.log for more info.
尝试:
- 重新安装最新版tinytex包
- 重新安装最新编译版TinyTex。
尝试后仍同样错误。
R环境:
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)China.utf8 LC_CTYPE=Chinese (Simplified)China.utf8
[3] LC_MONETARY=Chinese (Simplified)China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)China.utf8attached base packages:
[1] stats graphics grDevices utils datasets methods baseother attached packages:
[1] tinytex_0.45.2loaded via a namespace (and not attached):
[1] compiler_4.2.3 tools_4.2.3 xfun_0.39
搞不懂为啥,我啥也没动啊?请问各位大佬怎么解决啊。