2

When I use beamer, things like \sin, \cos, etc. appear in the sans-serif font. But if I say

\DeclareMathOperator{\lcm}{lcm}

and then use \lcm inside a math formula, it appears in the cmr font. How can I get it to appear in the sans-serif font like other math functions?

  • 2
    It doesn't happen to me; you should add the font loading part of your preamble. – egreg Jun 30 '11 at 14:37
2
\documentclass{beamer}
\usepackage{amsmath}
\DeclareMathOperator{\lcm}{lcm}

\begin{document}
\begin{frame}{foo}{bar}

\[ \lcm = l\times c\times m \]

\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.