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 ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.