LaTeX 中使用中文自定义命令的正确方法 - 避开编译错误
\documentclass{article}\usepackage{fontspec}\usepackage{xeCJK}\setmainfont{你的英文字体}\setCJKmainfont{你的中文字体}\newcommand{\我的命令}{\textbf{成功}}\begin{document}这是一个\我的命令。\end{document}
原文地址: https://www.cveoy.top/t/topic/pW2i 著作权归作者所有。请勿转载和采集!