66

It is well known that you can make the font italic or bold using \textit{} or \textbf{}. However, if I have an italic or bold font, what command can I use to make it nonitalic or nonbold?

  • 1
    For italic use \emph instead of \textit – karlkoeller Jan 28 '15 at 6:34
  • 2
    Ok thanks, but if I keep getting italic or bold font in the output pdf, what command can I use to get regular font? – kolonel Jan 28 '15 at 6:36
  • By regular I mean nonitalic and nonbold. – kolonel Jan 28 '15 at 6:37
60

You can use \normalfont

\documentclass{book}
\begin{document}
 \textit{Some italic and {\normalfont non italic} text}

 \textbf{Some bold and {\normalfont non bold} text}

 \emph{Some italic and {\normalfont non italic} text}
\end{document}

enter image description here

  • 5
    Why don;t you just use \textnormal{...} instead of using {\normalfont ...}? – daleif Jan 28 '15 at 9:19
  • 9
    You may want to mention that using {\normalfont ...} does not insert an automatic italics correction at the transition from the italic to the upright font shape. In contrast, using an inner \emph{...} instruction, a \textup{...} instruction, or a \textnormal{...} instruction (but not an inner {\em ...} construct) generate an automatic italics correction. – Mico Jan 28 '15 at 9:27
  • @daleif what is the difference? – lucidbrot Oct 2 '18 at 20:05
  • 1
    @lucidbrot easier to read – daleif Oct 3 '18 at 5:41
  • @lucidbrot - In addition, the \textnormal{...} approach takes care to insert italics corrections as needed; the {\normalfont ...} does not. – Mico Feb 10 at 19:43
43

For the purpose of this discussion, I will assume that you use either \textbf{...} or {\bfseries ...} to generate bold text, and either \textit{...}, \emph{...}, or {\itshape ...} to generate italic text. These methods can be combined to get bold italic text, viz., \textbf{\textit{...}} or {\bfseries\itshape ...}.

  • To cancel/override just the italic font shape, while leaving the (bold or non-bold) font weight unchanged, use either \textup{...} or {\upshape ...}:

    \textit{Some italic and some \textup{non italic} text}
    
    {\itshape Some italic and some {\upshape non italic} text}
    

    The \emph{...} method can be nested:

    \emph{Some italic and some \emph{non italic} text}
    

    Note that whereas the \textit{...} and \emph{...} methods take care to insert a so-called italics correction in the transitions from italic to non-italic text, the {\upshape ...} method does not.

  • To override just the bold font weight, while leaving the (italic or upright) font shape unchanged, use either \textmd{...} or {\mdseries ...}:

    \textbf{Some bold and some \textmd{non bold} text}
    
    {\bfseries Some bold and some {\mdseries non bold} text}
    
  • To force both normal font weight and normal font shape simultaneously, the preceding methods can be combined. Or, more simply, use either \textnormal{...} or {\normalfont ...}:

    \textbf{\textit{Some bold-italic, \textmd{non-bold italic}, \textup{non-italic bold}, and \textnormal{upright\slash non-bold} text}.}
    
    {\itshape\bfseries Some bold-italic, {\mdseries non-bold italic}, {\upshape non-italic bold}, and {\normalfont upright\slash non-bold} text.}
    

    Note, once again, that \textnormal{...} will generate an automatic italics correction, whereas {\normalfont ...} will not.

The results generated by these methods are illustrated in the following MWE:

enter image description here

\documentclass{article}
\usepackage{geometry}
\begin{document}

Some normal, i.e., upright and non-bold, text.

\medskip
\textit{Some italic and some \textup{upright} text.}

\emph{Some italic and some \emph{upright} text.}

{\itshape Some italic and some {\upshape upright} text.}


\medskip
\textbf{Some bold and some \textmd{non-bold} text.}

{\bfseries Some bold and some {\mdseries non-bold} text.}

\medskip
\textbf{\textit{Some bold-italic, \textmd{non-bold italic}, \textup{non-italic bold}, and \textnormal{upright\slash non-bold} text}.}

{\itshape\bfseries Some bold-italic, {\mdseries non-bold italic}, {\upshape non-italic bold}, and {\normalfont upright\slash non-bold} text.}
\end{document}

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.