1. 首先,导入ctex包 在源码中加入如下两句代码: \usepackage[UTF8,noindent]{ctex} 2. 更改编译器为X 选项→设置Texstudio( C)→构建→更改默认编译器为XeLatex