sudo pacman -S texlive-core texlive-langchinese texlive-latexextra texstudio
打开 texstudio,设置使用XeLaTex编译器
option -> configure TeXstudio
configure
使用ctex包对中文进行支持,CTeX宏包现在已经在texlive2011中,不需要另外安装[1]。
输入以下内容测试:
\documentclass{ctexart}
\title{Hello World}
\begin{document}
\maketitle
\section{Hello China}
曾经的LaTeX的中文支持是比较麻烦的一件事,但是现在使用MiKTeX+texStudio的中文支持非常容易。
只需要把开头的 documentclass \{atricle\} 换成 documentclass \{ctexart\} 就可以了。
如果是第一次使用ctexart的话,会自动下载和安装宏包和模板,之后就不会再下载了。
\end{document}
支持中文
参考:
https://blog.csdn.net/qq_24059779/article/details/94597414