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 – writing a step-by-step tutorial

Let's prepare a tiny "how-to" about designing the page layout:

  1. Start with a new document and enter the following code:
    \documentclass{article}
    \begin{document}
    \begin{enumerate}
      \item State the paper size by an option to the document class
      \item Determine the margin dimensions using one of these packages:
      \begin{itemize}
        \item geometry
        \item typearea
      \end{itemize}
      \item Customize header and footer by one of these packages:
      \begin{itemize}
        \item fancyhdr
        \item scrpage2
      \end{itemize}
      \item Adjust the line spacing for the whole document
      \begin{itemize}
        \item by using the setspace package
        \item or by the command \linespread{factor}
      \end{itemize}
    \end{enumerate}
    \end{document}
  2. Typeset to generate the «how-to»: ...

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