O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – tuning the font shape

We will emphasize an important word in a text and we will see how to make words appear bold, italic, or slanted. We shall figure out how to highlight words in a part of some text that's already emphasized:

  1. Create a new document containing the following code:
    \documentclass{article}
    \begin{document}
    Text can be \emph{emphasized}.
    
    Besides being \textit{italic} words could be \textbf{bold},
    \textsl{slanted} or typeset in \textsc{Small Caps}.
    
    Such commands can be \textit{\textbf{nested}}.
    
    \emph{See how \emph{emphasizing} looks when nested.}
    \end{document}
  2. Typeset and have a look at the output:
    Time for action – tuning the font shape

What just happened? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required