-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

LaTeX Beginner's Guide

We will modify the previous example using font family switching commands:
Modify the example to get the following code:
\documentclass{article} \begin{document} \section{\sffamily\LaTeX\ resources in the internet} The best place for downloading LaTeX related software is CTAN. Its address is \ttfamily http://www.ctan.org\rmfamily. \end{document}
Typeset and compare the output to the previous one; it's the same.
By using the command \sffamily
, we switched over to sans serif font. This change has been made inside an argument, so it's valid only there.
We used the command \ttfamily
to switch to a typewriter font. The typewriter font will be used from this point onwards. By using \rmfamily
, we returned to Roman font.
These commands don't produce any output, but they will affect the following text. We will call such a command a declaration .
Now have a closer look at the section number: it's a digit with serifs, which doesn't match the remaining...