Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to change font style in my presentation. I prefere Liberation Serif font. This is TrueType font so use XeLaTeX program. I tried to set this font using \usepackage{fontspec} and \setmainfont{Liberation Serif}, but font in my document does not change. How i can solve this problem?

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

By default, beamer uses sans serif font, so \setmainfont will do nothing. You have to tell it that you want serif fonts:

\documentclass{beamer}
\usefonttheme{professionalfonts} % using non standard fonts for beamer
\usefonttheme{serif} % default family is serif
\usepackage{fontspec}
\setmainfont{Liberation Serif}

\begin{document}
\begin{frame}
Abdce
\end{frame}
\end{document}
share|improve this answer
    
Thanks for answer. –  Pavel Morozkin Oct 28 '12 at 16:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.