Created
December 15, 2015 07:12
-
-
Save iamalbert/1b87a5349f7e860bfe33 to your computer and use it in GitHub Desktop.
XeLaTex 中文
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{fontspec} %加這個就可以設定字體 | |
\usepackage{xeCJK} %讓中英文字體分開設置 | |
\setCJKmainfont{微軟正黑體} %設定中文為系統上的字型,而英文不去更動,使用原TeX字型 | |
\XeTeXlinebreaklocale "zh" %這兩行一定要加,中文才能自動換行 | |
\XeTeXlinebreakskip = 0pt plus 1pt %這兩行一定要加,中文才能自動換行 | |
\defaultCJKfontfeatures{AutoFakeBold=6,AutoFakeSlant=.4} %以後不用再設定粗斜 | |
\newCJKfontfamily\Kai{標楷體} %定義指令\Kai則切換成標楷體 | |
\newCJKfontfamily\Hei{微軟正黑體} %定義指令\Hei則切換成正黑體 | |
\newCJKfontfamily\NewMing{新細明體} %定義指令\NewMing則切換成新細明體 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment