安装完MacTeX后,使用TeXStudio排版英文通过,输入中文后报错
line 58: Critical Package ctex Error: CTeX fontset mac' is unavailable in current(ctex) mode. } line 10: Font shape
C70/song/m/sl’ undefined(Font) using `C70/song/m/n’ instead
: Some font shapes were not available, defaults substituted.
\documentclass[UTF8]{ctexart}
\begin{document}
\section{文字}
特可爱排版。
\section{数学}
[
a^2 + b^2 = c^2
]
\end{document}
在代码头部加%!TEX program = xelatex即可。
%!TEX program = xelatex
\documentclass[UTF8]{ctexart}
\begin{document}
\section{文字}
特可爱排版。
\section{数学}
[
a^2 + b^2 = c^2
]
\end{document}