sudo pacman -S texlive-core texlive-langchinese texlive-latexextra texstudio
打開 texstudio箩祥,設置使用XeLaTex編譯器
option -> configure TeXstudio
configure
使用ctex包對中文進行支持,CTeX宏包現(xiàn)在已經(jīng)在texlive2011中肆氓,不需要另外安裝[1]袍祖。
輸入以下內(nèi)容測試:
\documentclass{ctexart}
\title{Hello World}
\begin{document}
\maketitle
\section{Hello China}
曾經(jīng)的LaTeX的中文支持是比較麻煩的一件事,但是現(xiàn)在使用MiKTeX+texStudio的中文支持非常容易谢揪。
只需要把開頭的 documentclass \{atricle\} 換成 documentclass \{ctexart\} 就可以了蕉陋。
如果是第一次使用ctexart的話,會自動下載和安裝宏包和模板拨扶,之后就不會再下載了凳鬓。
\end{document}
支持中文
參考:
https://blog.csdn.net/qq_24059779/article/details/94597414