2

This question already has an answer here:

Is there any way to remove the italic from the words bits in the code below? That is, change the \text output to represent the normal font when an align is used inside a theorem-like environment.

\begin{proposition} 
The memory requirements for the keys are
\begin{align}
  m_{\text{pk}}&= 2r \,\,\,\text{bits}\\
  m_{\text{sk}}&= r
\end{align}
\end{proposition}

marked as duplicate by Mico, LaRiFaRi, Martin Schröder, user13907, Werner Jun 8 '15 at 23:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    Use \textnormal instead of \text – egreg Jun 8 '15 at 17:51
  • Please provide minimal workable example which show your problem, From your code the indices pk and sk as well word bits should be in in the same shape and fonts as main text. – Zarko Jun 8 '15 at 17:59
  • 2
    If (as seems likely) they are fixed mathematical notations you should be using \mathrm not \text . – David Carlisle Jun 8 '15 at 18:13
2

The \text command uses the font current outside the math formula, in this case italics because you're inside a theorem statement. Use \textnormal or \mathrm.

\documentclass{article}
\usepackage{amsmath,amsthm}

\newtheorem{proposition}{Proposition}

\newcommand{\tsb}[1]{\textnormal{#1}}

\begin{document}

\begin{proposition}
The memory requirements for the keys are
\begin{align}
m_{\tsb{pk}}&= 2r \,\mathrm{bits}\\
m_{\tsb{sk}}&= r
\end{align}
\end{proposition}

\end{document}

enter image description here

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