码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-05-30 15:44:24      阅读:1057      评论:0      收藏:0      [点我收藏+]

标签:stand   字体   size   mon   cte   document   soft   studio   new   

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

 

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

标签:stand   字体   size   mon   cte   document   soft   studio   new   

原文地址:http://www.cnblogs.com/tenderwx/p/6920283.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!