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 – switching to sans-serif and to typewriter fonts

Imagine that we start to write an article about LaTeX's Internet resources. To get a clearly readable heading, we shall use a font without frills. The body text will contain a web address; we choose a typewriter font to stress it:

  1. Create a LaTeX document with the following code:
    \documentclass{article}
    \begin{document}
    \section{\textsf{\LaTeX\ resources on the internet}}
    The best place for downloading LaTeX related software is CTAN.
    Its address is \texttt{http://www.ctan.org}.
    \end{document}
  2. Typeset and look at the result:
    Time for action – switching to sans-serif and to typewriter fonts

What just happened?

We encountered more font commands. By using ...

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