Skip to content

Instantly share code, notes, and snippets.

@quxiaofeng
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quxiaofeng/10023514 to your computer and use it in GitHub Desktop.
Save quxiaofeng/10023514 to your computer and use it in GitHub Desktop.
config the fonts of English and Chinese respectively for LaTeX
% 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