Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is perhaps a simple question, but I would like to print a capital I in my LaTeX document (beamer specifically) inside a $...$ construct. I would like my I to appear more substantial by having the horizontal lines at top and bottom, however this is not what I am getting.

Any suggestions?

share|improve this question

migrated from stackoverflow.com Mar 28 '13 at 14:51

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 3 down vote accepted

Math fonts in beamer are set in serif by default. To change this, see How to get beamer math to look like article math (use the mathserif class option). On a case-by-case basis, you could use $...\mathrm{I}...$ to obtain a serif-style I:

enter image description here

\documentclass{beamer}% http://ctan.org/pkg/beamer
\begin{document}
\begin{frame}
  I \quad $I$ \quad $\mathrm{I}$ \quad $\textrm{I}$
\end{frame}
\end{document}

Of course, if you're using this "I" on a more frequent and contextual-specific basis, consider using a macro like

\newcommand{\upshapeI}[1]{\textrm{\upshape I}}

The above suggestions follows the principles in Consistent typography.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.