Manjaro/Arch Linux 配置 LaTeX 中文编辑环境

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


  1. https://wiki.archlinux.org/index.php/TeX_Live_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容