TransWikia.com

LaTeX Beamer - Make text in math mode also serif

TeX - LaTeX Asked by brnk on January 16, 2021

I am using a sans-serif font for my beamer slides but the regular serif math font for my equations. However, if I use text{} in math mode, the sans-serif font is used. I would like to enforce that the serif font is used when using text{}.

Here is a MWE

documentclass{beamer}
usefonttheme[onlymath]{serif}
begin{document}
begin{frame}
I would like to make $f_text{LO}$ look like $f_mathrm{LO}$.
end{frame}
end{document}

Replace sans-serif font in math mode with serif font

Update: I found out that I should not redefine text{} but use textrm{} instead to use the serif font in math mode. By doing that, I can still add regular text using text{}.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP