1

I'm using this code.

\documentclass[10pt]{beamer}
%\usepackage{polyglossia}
%\setdefaultlanguage{french}
\usetheme{Boadilla}
\usefonttheme{serif}
\usefonttheme{professionalfonts}
\begin{document}
\begin{frame}
\begin{block}{Blabla}
Blabla $x$ blabla 2,5 blabla $2,5$.
\end{block}
\end{frame}
\end{document}

Without polyglossia, I get this result.

without polyglossia

With polyglossia, I get this result.

enter image description here

The serif font isn't used inside block (only the title). I was expecting the same result with polyglossia or without.

There is also bad spacing with comma in 2,5 in math mode ... but it is another problem.

0

You have to switch to serif font before loading polyglossia

% !TeX TS-program = lualatex
\documentclass[10pt]{beamer}

\usetheme{Boadilla}
\usefonttheme{serif}
\usefonttheme{professionalfonts}

\usepackage{polyglossia}
\setdefaultlanguage{french}

\begin{document}
\begin{frame}
\begin{block}{Blabla}
Blabla $x$ blabla 2,5 blabla $2,5$.
\end{block}
\end{frame}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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