Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@xiaom
Created May 21, 2012 23:34
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 xiaom/2765398 to your computer and use it in GitHub Desktop.
Save xiaom/2765398 to your computer and use it in GitHub Desktop.
set font in latex
\usetheme{default}
\usepackage{mathpazo}
\usepackage{fontspec}
\setbeamertemplate{background canvas}{\includegraphics [width=\paperwidth]{blackboard_bk.pdf}}
\newfontfamily\chalkd{Chalkduster.ttf}
\newfontfamily\chalkb{Chalkboard.ttc}
\setbeamerfont*{normal text}{family = \chalkd}
\setbeamerfont{alerted text}{family = \chalkd}
\setbeamerfont{structure}{family = \chalkd}
\setbeamerfont{title}{family = \chalkd, size = \Huge}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{alerted text}{fg=yellow!80}
\setbeamercolor{structure}{fg=yellow!80}
\setbeamercolor{frametitle}{fg=white}
\setbeamercolor{title}{fg=white}
\setbeamertemplate{blocks}[shadow=false]
\setbeamercolor{block body}{fg=normal text.bg!90!black}
\setbeamercolor{block body example}{bg=normal text.bg!90!black}
\setsansfont{Chalkduster.ttf}
%\setmonofont{Chalkduster.ttf}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment