A copy of the Chinese template from Bo Friends

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.