\documentclass{article}
\usepackage[polutonikogreek,english]{babel}
% Compile this file into a .dvi file by running
% latex texsimple.tex
% Then run that again to fix the references.
% Then view it by
% xdvi texsimple.dvi
% And turn to postscript by
% dvips texsimple.dvi -o texsimple.ps
% AMS math provides a bunch of useful packages.
% fullpage reduces margins to 1" instead of 1.5".
\usepackage{amsmath,fullpage}
\title{Simple {\LaTeX} document}
\author{Cameron Morland}
\date{\today}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
% UW Engineering work reports must have a summary, not an abstract.
\renewcommand{\abstractname}{Summary}
\begin{abstract}
A short document, showing some basic features of \LaTeX .
\end{abstract}
\tableofcontents
\newpage
\section{Main Section}
I can make sections
With Babel I can typeset funky languages:
\begin{otherlanguage}{polutonikogreek}
>Eg'wge gar gr`afw.
Ca Va 'a `a ~a >a ~a| "i "'i
\end{otherlanguage}
\subsection{Main Subsection}
I can make subsections.
\subsubsection{Main Subsubsection}
I can make subsubsections easily.
\subsubsection{Limitations}
For some reason I cannot make subsubsubsections.
\subsection{Mathematics}
One of the major benefits of {\LaTeX} is its support for math equations. These can be like $E=mc^2$ (ie, embedded in text), or on their own
\begin{equation}
x = \frac{-b \pm \sqrt{b^2-4ac}}{2}
\label{quadraticeqn}
\end{equation}
We can refer to Equation~\ref{quadraticeqn} and have it do cross-references for us.
Often we want an equation but don't want that number. Then
you can use (note the Greek symbols),
\[
\pi = \frac{c}{d}
\]
Sometimes it's useful to line things up. We can do this:
\begin{align*}
e &= \lim_{n\rightarrow\infty} \left( 1+\frac{1}{n} \right) ^n \\
&\approx 2.717
\end{align*}
Take away the ``*'' to make it add numbers as before. Note that you need the \texttt{amsmath} package for \texttt{align}. Paragraphs are simply separated by a blank line. You might like to format something in math mode but in regular text, for example, $V_{\text{a very long subscript}}$ is clearer than $V_{a very long subscript}$, where the computer considers each letter as a variable. This requires \texttt{amsmath} also.
Generally you can find whatever you're looking for online or in one of
the {\LaTeX} books. It automatically does bibliographies, list of
figures, and list of tables. If you can think of a feature, chances
are it does it.
% where to **try** to put the table: Here, Bottom, Top.
\begin{table}[hbt]
\center{
\begin{tabular}{||c|cc|}
\hline % horizontal line
heading 1 & heading 2 & heading 3 \\
\hline
\hline
cell 1 & cell 2 & cell 3 \\
cell 4 & cell 5 & cell 6 \\
cell 7 & cell 8 & cell 9 \\
\hline
\end{tabular}
}
\caption{A boring table}
\label{boringtable}
\end{table}
Table~\ref{boringtable} demonstrates using a table. Note that ``tilde''
(\verb!~!) means ``non-breaking space.'' You can use ``verb'' \verb*,to format stuff exactly, using any delimeter. Remove the ``*'' to \verb2use normal spaces2.
{\LaTeX} has powerful programming capabilities; you can define your own functions, use conditionals, etc. Read a book for details.
\end{document}