mac texstudio 中文编译

MacTex(TexLive) + texstudio

texstudio打开,选择Preferences

mac texstudio 中文编译_第1张图片

  1. 在弹出的界面中点击左侧的”buid",将默认的pdflatex编译改为xelatex编译

    mac texstudio 中文编译_第2张图片

 

2.   Editor中Default Font Encoding改为UTF-8

 

    mac texstudio 中文编译_第3张图片

  3. 若tex文件打开是乱码,需要去搜索字体修改的教程。https://bbs.pku.edu.cn/v2/post-read.php?bid=134&threadid=14993727

  4. 中文编译texstudio内置pdf不显示的问题

在网上试了很多方法,在文中加包\usepackage{},加两句话等等,出现\ctex 冲突问题。

最后把所有打开的tex文件(尤其是打开的英文的)和编译出的pdf关掉,重新设置下xelatex编译和UTF-8编码,然后编译成功。

 

 

你可能感兴趣的:(LaTeX)