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 – lining up font commands

In Chapter 2, Formatting Words, Lines, and Paragraphs, we've got to know a lot of font commands and declarations. We saw a table containing those commands and example output. Now we shall create such a table ourselves:

  1. Begin a new document, like the one in step 1 of our previous example, but define a command for setting the font of our header:
    \documentclass{article}
    \newcommand{\head}[1]{\textbf{#1}}
    \begin{document}
    \begin{tabbing}
  2. Write the first row set tab stops by \= and use \> to move to the tab stops. Use the command \verb|…| to typeset the LaTeX commands:
    \begin{tabbing}
    Family \= \verb|\textrm{...}| \= \head{Declaration} \= \kill
      \> \head{Command} \> \head{Declaration} \> \head{Example}\\ Family ...

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