先把基本的texlive装好
之前提前就把微软字体复制到/usr/share/fonts下了。
sudo apt-get install perl-tk(为了用tlmgr)
记得如果用texlive 2015的tlmgr装包的话,一定要改repo:
tlmgr option repository ftp://tug.org/historic/systems/texlive/2015/tlnet-final
然后装好ctex
sudo apt-get install texlive-xetex
(把pdflatex改为xeLatex,以应对 Critical ctex error: "fontset-unavailable"! CTeX fontset `fandol' is unavailable in current mode. })
texstudio改成用xeLatex编译
可能顺序上和包含关系不一定对。反正差不多就这些。