设置输出 PDF (XeTeX)
Tools -> Preferences -> File Handling -> Converters
添加:
From format: LaTeX pdflatex
To format: PDF XeTeX
Converter: xelatex $$i
Extra flag: latex
然后更改 Document -> Settings
Output
Output Format
Default: PDF (XeTeX)
LaTeX Preamble
\usepackage{xeCJK} %必须加xeCJK包
\setCJKmainfont{FZShuSong-Z01} %换成本地字体
\usepackage{indentfirst}
\setlength{\parindent}{2em}