相关资料
安装包
maxtex
文本编辑器
Texmaker
pdf viewer和文本在同一窗口中 Texmaker: source editor and embedded pdf viewer on same window
中文字体
最好使用latex2013,并将ctex-xecjk-winfonts.def修改为如下
sudo vim /usr/local/texlive/2013/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def
% vim:ft=tex
\setCJKmainfont[BoldFont={STHeiti},ItalicFont={STKaiti}]
{STSong}
\setCJKsansfont{STHeiti}
\setCJKmonofont{STFangsong}
\setCJKfamilyfont{zhsong}{STSong}
\setCJKfamilyfont{zhhei}{STHeiti}
\setCJKfamilyfont{zhkai}{STKaiti}
\setCJKfamilyfont{zhfs}{STFangsong}
% \setCJKfamilyfont{zhli}{LiSu}
% \setCJKfamilyfont{zhyou}{YouYuan}
\newcommand*{\songti}{\CJKfamily{zhsong}}
\newcommand*{\heiti}{\CJKfamily{zhhei}}
\newcommand*{\kaishu}{\CJKfamily{zhkai}}
\newcommand*{\fangsong}{\CJKfamily{zhfs}}
% \newcommand*{\lishu}{\CJKfamily{zhli}}
% \newcommand*{\youyuan}{\CJKfamily{zhyou}}
\endinput
在Mac OS系统下配置使用基于TeXLive/MacTeX的CTeX+XeLaTeX方案处理中文文档
LaTeX 在 Mac 下的中文环境配置 推荐指数****
在Mac OS系统下配置使用基于TeXLive/MacTeX的CTeX+XeLaTeX方案处理中文文档
命令行下使用
# make latex file
latex *.tex
bibtex *.aux
latex *.tex
latex *.tex
# clean latex file
rm *.blg *.bbl *.aux *.log *.brf *.nlo *.out *.dvi *.ps *.lof *.toc *.fls *.fdb_latexmk *.pdfsync *.synctex*.gz *.ind *.ilg *.idx