TeX - LaTeX Asked on September 25, 2021
In a LaTeX article
, the math characters are more “curvy” than the text characters:
documentclass[12pt]{article}
begin{document}
$x^2 + y^2 = z^2$
end{document}
In a beamer
presentation, the math characters do not have the same curves:
documentclass{beamer}
begin{document}
begin{frame}
$x^2 + y^2 = z^2$
end{frame}
end{document}
How can I get the beamer
math to look just like the article
math?
I would prefer if the solution was a single line (that I could place at the top of my LaTeX file) as opposed to something that needs to appear next to every piece of math.
Add usefonttheme[onlymath]{serif}
to your preamble. That is,
documentclass{beamer}% http://ctan.org/pkg/beamer
usefonttheme[onlymath]{serif}
begin{document}
begin{frame}
$x^2 + y^2 = z^2$
end{frame}
end{document}
For both text and math in Computer Modern, use the serif
document class option. Other combination of font selection is also possible. See this link for a nicely compiled collection.
Older versions (prior to v3.33) supported the class option documentclass[mathserif]{beamer}
.
Correct answer by Werner on September 25, 2021
Alternatively, you can include
usefonttheme{professionalfonts}
inside the
mode<presentation>{...}
environment.
Answered by Abdul on September 25, 2021
As @egreg commented, @Werner's answer might incur conflicts. Actually, Beamer supports for different fonts through the documentclass
.
In your case:
documentclass[mathserif]{beamer}
...
for all other combinations and styles along with the outputs please refer to this comprehensive document.
Answered by Shayan Amani on September 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP