7

I want to typeset math in different font called Antykwa Torunska, which supports maths. Unfortunately, when using it in beamer the math font is switched to the standard math font of beamer. How can I change this behaviour?

Here is a minimal example:

\documentclass{beamer}
% Mathekram:
\usepackage{amssymb, amstext, amsmath}
% Font:
\usepackage[math]{anttor}
\usepackage[T1]{fontenc}


\begin{document}

\begin{frame}{Testframe}
   This is fine: 1234567890, \textit{x}, \textit{p}, \textit{t}\\
   This is not fine: $1234567890$, $x$, $p$, $t$
\end{frame}

\end{document}

When I change beamer to article it works fine.

  • I can confirm this on TeXLive 2012 under mac. – Dror Oct 15 '12 at 11:24
8

You should add \usefonttheme{professionalfonts} to your preamble or use the professionalfonts class option, in order to suppress any font replacements performed by beamer.

  • This works fine, except when you use \SI{30}{\cm} in the align environment , than it gives the standard beamer font again. Any suggestions? – Arne Timperman Nov 19 '15 at 10:12
4

I think you just need to add the [professionalfont] option to your \documentclass command. See section 18.1 of the beamer documentation for details.

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.