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 – trying out the effect of spaces, line breaks, and empty lines

We will take the first example and insert spaces and line breaks.

  1. Modify the previous example as follows:
    \documentclass[a4paper,11pt]{article}
    \begin{document}
    \title{Example 3}
    \author{My name}
    \date{January 5, 2011}
    \maketitle
    \section{What's this?}
    This        is   our
    second document.
    
    It contains two paragraphs. The first line of a paragraph will be
    indented, but not when it follows a heading.
    % Here's a comment.
    \end{document}
  2. Typeset.
  3. View the output:
    Time for action – trying out the effect of spaces, line breaks, and empty lines

What just happened?

Though we've inserted some spaces, the distances between the words in the output remained the same. The ...

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