【LaTeX】对xelatex的中英文设置不同的字体

不建议用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

 

posted @ 2017-05-30 13:38  隅子酱  阅读(22671)  评论(0编辑  收藏  举报