Last active
August 29, 2015 13:58
-
-
Save quxiaofeng/10023514 to your computer and use it in GitHub Desktop.
config the fonts of English and Chinese respectively for LaTeX
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
% fonts | |
\usepackage{xeCJK} | |
\usepackage{xltxtra} | |
% beamer | |
% \usefonttheme{default} % sans serif | |
\usefonttheme{professionalfonts} | |
\usefonttheme{serif} | |
% \usefonttheme{structurebold} | |
% \usefonttheme{structureitalicserif} | |
% \usefonttheme{strucutresmallcapsserif} | |
% English | |
\setmainfont{Times New Roman} | |
\setsansfont{Arial} | |
\setmonofont{Inconsolata} | |
% Chinese | |
\setCJKmainfont[BoldFont={Hiragino Sans GB W6},ItalicFont={方正启体简体}]{方正新书宋简体} | |
\setCJKsansfont{Hiragino Sans GB W3} | |
\setCJKmonofont{文泉驿等宽正黑} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment