Hello Damien,
indeed, polyglossia and beamer seem to interact in a nonintuitive way.
But you can workaround it: If you define the fonttheme before loading
polyglossia and defining languages, the font setting works.
\documentclass[10pt]{beamer}
\usefonttheme{serif}
\usepackage{polyglossia}
\setdefaultlanguage{polish}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{hyperref}
%\setmainfont{Linux Libertine O}
\begin{document}
some text
\end{document}
ciao
Toscho
On 25.11.2012 17:50, damien.thiriet77 wrote:
Hello,
I have an issue with beamer and xelatex: it looks as if polyglossia is in
conflict with the serif beamer theme rules.
If I set a document:
\documentclass[10pt]{beamer}
\usepackage{polyglossia}
\usepackage{fontspec}
\usepackage{xltextra}
\usepackage{hyperref}
\usefonttheme{serif}
\begin{document}
some text
\end{document}
Everything works as it should, I have got a serif font. However, as soon as I
enter polyglossia language for exemple \setdefaultlanguage{polish}, the
\usefonttheme{serif} option is ignored. Defining \setmainfont won’t change
anything (I tried with different font families, without any effect on my
slides) but \setsansfont changes sans font families (I checked it switching to
\usefonttheme{default}). Maybe beamer themes are linked to babel?
This is very frustrating: I have been spending my afternoon reading fontspec
manual, and I cannot use this beautiful toy;-)
Damien Thiriet
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex