# Generating Output from a LaTeX File

Before we start actually working with the output from the converted PDF file as described in the previoius topic, lets look at how to generate an output file from a LaTeX file.

To build a LaTeX file

1. Type the following in a LaTeX editor and save the file as HelloWorld.tex in a convenient location on your PC or MAC.

 \documentclass{article}
\begin{document}
\title{Title of Document}
\date{\today}
\maketitle
\tableofcontents
Hello, world!

 pdflatex HelloWorld.tex

3. In the directory containing HelloWorld.tex you will find a whole bunch of new files in there. For now, find the file HelloWorld.pdfand open it in a pdf viewer.