3

I wish to display italics like this number 2 in italics that are used in article documents, but within a beamer document with the default use and font themes.

  • Just for a particular individual character or are you trying to change all fonts to italics? – Gonzalo Medina Mar 19 '14 at 13:40
  • Actually it was meant for a particular part of the frame, but a global option seems interesting as well. – Toño Mar 19 '14 at 13:56
3

I'm not sure about your real needs, but this seems to do:

\documentclass{beamer}
\newcommand{\italnum}[1]{\begingroup\fontfamily{cmr}\itshape#1\endgroup}

\begin{document}
\begin{frame}
\frametitle{This is \italnum{1}}

A number $2$ and also italic \italnum{2}

\end{frame}
\end{document}

enter image description here

If you need it working also in math mode, let me know.

  • Yes, this is precisely what I was looking for, since it also works for the \titlepage components. Thanks a lot! – Toño Mar 21 '14 at 10:37

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.