Go to the previous, next section.
This section gives a couple of examples on how to prepare files to run through LaTeX, how to run them through LaTeX, and how LaTeX responds.
The following are the contents of a file called `example.tex', which contains the commands that are necessary to run it through LaTeX. Don't let some of the formatting scare you off. Once you get the hang of LaTeX you will be able to produce great looking documents.
\documentstyle{report} \parskip= 10pt plus2pt minus2pt \setlength{\parindent}{0in} \begin{document} \chapter{Example chapter} \LaTeX\ is a very powerful system for typesetting all of your documents. It does such things as tables, pictures, indices, tables of contents, bibliographies, footnotes\footnote{See how easy footnotes are.}, and much much more. Here is what a table can look like: \begin{center} \begin{tabular}{|c|c|} \hline {\it heading} & {\it heading} \\ \hline \hline item & item \\ \hline item & item \\ \hline \end{tabular} \end{center} The math abilities of \LaTeX\ are also {\em very} powerful. For example: \begin{displaymath} \sum_{i=1}^{n} x_{i} = \int_{0}^{1} f \end{displaymath}
The following shows the command that runs example.tex through LaTeX:
latex example.tex
The following shows how LaTeX responds to this command:
This is TeX, C Version 3.14t3 (example.tex LaTeX Version 2.09 <14 January 1991> (/usr/local/lib/tex/inputs/report.sty Document Style `report' <13 Nov 89>. (/usr/local/lib/tex/inputs/rep10.sty) (/usr/local/lib/tex/inputs/titlepage.sty)) (example.aux) Chapter 1. [1] (example.aux) Output written on example.dvi (1 page, 1696 bytes). Transcript written on example.log.
The next page shows what the file example.dvi looks like when it's printed on a laser printer (note the new page caused by the \chapter command).
Go to the previous, next section.