3

How can I set the Beamer math font in a non-Beamer class (e.g., article)?

The motivation is that I prepare a poster and a presentation for a workshop which I would like to look as similar as possible, i.e. both should have a "Beamer style".

  • Related: How to get beamer math to look like article math – Werner Jan 12 '15 at 22:04
  • Beamer uses the \sfdefault, the sans-serif default family, which is Computer Modern Sans. So just \renewcommand*{\familydefault}{\sfdefault}. – musarithmia Jan 12 '15 at 22:05
  • @Werner Related in the sense of opposite problem. Unfortunately, I do not see how the suggestions there should help here. – gTcV Jan 12 '15 at 22:14
  • @AndrewCashner This only works for the text font, not the math font. – gTcV Jan 12 '15 at 22:15
  • @gTcV: That's why it's related, nothing else... – Werner Jan 12 '15 at 22:15
5

Given Andrew Cashner's comment, I think you probably just need the sfmath package. For example:

\documentclass{article}
\usepackage{sfmath}
\begin{document}
  \[
  3x^7i + \sqrt{9}{y} = \cos z^4
  \]
\end{document}

beamer-style maths?

3

Three choices with “real” sans serif math fonts.

Option 1, Arev fonts

\documentclass{article}
\usepackage{arevmath,arevtext}
\begin{document}
Some text before the display
\[
3x^7i + \sqrt{9}{y} = \cos z^4
\]
and after.
\end{document}

enter image description here

Option 2, Helvetica

\documentclass{article}
\usepackage[scale=.85]{tgheros}
\usepackage{newtxsf}
\renewcommand{\familydefault}{\sfdefault}
\DeclareSymbolFont{operators}{OT1}{\sfdefault}{m}{n}
\SetSymbolFont{operators}{bold}{OT1}{\sfdefault}{b}{n}
\begin{document}
Some text before the display $y$
\[
3x^7i + \sqrt{9}{y} = \cos z^4
\]
and after.
\end{document}

enter image description here

Option 3, Iwona

\documentclass{article}
\usepackage[math]{iwona}
\begin{document}
Some text before the display $y$
\[
3x^7i + \sqrt{9}{y} = \cos z^4
\]
and after.
\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.