This article from the site Bo friends: http://www.cnblogs.com/wangl393/archive/2013/04/10/3013247.html
\documentclass[11pt,a4paper]{article}\usepackage{fontspec,xltxtra,xunicode}\usepackage[slantfont,boldfont] {Xecjk}\setcjkmainfont[boldfont=adobe heiti std,italicfont=Adobe kaiti std]{adobe Song std}\setcjksansfont{ Adobe Heiti std}\setcjkmonofont{adobe fangsong std}\setcjkfamilyfont{song}{adobe song std}\setcjkfamilyfont{hei}{ Adobe Heiti std}\setcjkfamilyfont{fangsong}{adobe fangsong std}\setcjkfamilyfont{kai}{adobe Kaiti Std}\title{\ Latex Chinese Blog template}\author{wangl393}\date{\today}\begin{document}\maketitle{default effect arial}\ {\bfseries bold effect Set to Bold}\ {\itshape italic effect set to italics}\ \cjkfamily{kai} cjkfamily for italic effect \\cjkfamily{fangsong} cjkfamily for imitation effect \ \ Cjkfamily{hei} cjkfamily is a blackbody effect \\end{document}
The effect is as follows:
can refer to the above Chinese auto-set method.
But the exact usage is not clear:
\setcjkmainfont[boldfont=adobe Heiti std,italicfont=Adobe kaiti std]{adobe Song std}\setcjksansfont{adobe Heiti Std}\setcjkmonofont{adobe Fangsong std}\setcjkfamilyfont{song}{adobe song Std}\setcjkfamilyfont{hei}{adobe Heiti Std }\setcjkfamilyfont{fangsong}{adobe fangsong std}\setcjkfamilyfont{kai}{adobe Kaiti STD}
For example, here Setcjkmainfont,Setcjkfamilyfont According to the online statement is the same function.
The specific meanings of Setcjksansfontand Setcjkmonofont are unclear.
\setcjkfamilyfont{song}{adobe Song STD} Do you want to redefine the font name for easy invocation?
The above doubts.
A copy of the Chinese template from Bo Friends