不建議用Ctex套裝,不好用。
用MixTex+TexStudio!
XeTeX處理中文非常方便,不需要任何設置,就能夠使用系統中安裝的TrueType和OpenType字體。
MikTeX2.7中已經集成了XeTeX 0.999.7,所以安裝了MikTeX2.7之后,就已經有了XeTeX了。只需要在編譯的時候,使用xetex代替tex;xelatex代替latex命令即可。
xeCJK可以和XeTeX一起使用,這個包處理了諸如中文標點之類的問題,還支持分別設置中英文的默認字體,使用起來比較方便。
下面是設置對xelatex的中英文不同的字體的方法:
\documentclass[a4paper,12pt]{article} \usepackage{xeCJK} \usepackage{fontspec} \setCJKmainfont{SimSun} %或\setCJKmainfont{KaiTi} \setCJKmonofont{SimSun} \setmainfont{Times New Roman} %%%%%%%%%……剩下的包,隨你加 \begin{document} %your content \end{document}
下面是常用字體名稱:
STCaiyun,華文彩雲:style=Regular
YouYuan,幼圓:style=Regular
STHupo,華文琥珀:style=Regular
FZYaoTi,方正姚體:style=Regular
NSimSun,新宋體:style=Regular
FangSong,仿宋:style=Regular,Normal,…
KaiTi,楷體:style=Regular,Normal,obyčejné,Standard,...
Microsoft YaHei,微軟雅黑:style=Regular,Normal,obyčejné,…
SimSun,宋體:style=Regular
STFangsong,華文仿宋:style=Regular
STXinwei,華文新魏:style=Regular
Arial Unicode MS:style=Regular,Normal,obyčejné,Standard,…
STXingkai,華文行楷:style=Regular
STLiti,華文隸書:style=Regular
SimHei,黑體:style=Regular,Normal,…
Adobe Heiti Std R,Adobe Heiti Std,Adobe 黑體 Std,Adobe 黑體 Std R:style=Regular,R
STZhongsong,華文中宋:style=Regular
Microsoft YaHei,微軟雅黑:style=Bold,Negreta,tučné,fed,Fett,…
FZShuTi,方正舒體:style=Regular
Adobe Song Std L,Adobe Song Std,Adobe 宋體 Std,Adobe 宋體 Std L:style=Regular,L
STXihei,華文細黑:style=Regular
LiSu,隸書:style=Regular
STKaiti,華文楷體:style=Regular