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 our first document with TeXworks

Our first goal is to create a document that's printing out just one sentence. We want to use it to understand the basic structure of a LaTeX document.

  1. Launch the TeXworks editor by clicking on the desktop icon or open it in the Start menu.
  2. Click on the New button.
  3. Enter the following lines:
    \documentclass{article}
    \begin{document}
    This is our first document.
    \end{document}
  4. Click on the Save button and save the document. Choose a location where you want to store your LaTeX documents, ideally in its own folder.
    Time for action – writing our first document with TeXworks
  5. In the drop-down field in the TeXworks toolbar, choose pdfLaTeX:
  6. Click the Typeset button ...

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