 \documentclass[12pt]{article}
\usepackage{2130,amsfonts}
\begin{document}
\begin{titlepage}
\vspace*{2in}
\begin{center}
{\LARGE Put a title here!}
\end{center}
\vspace{3in}
\begin{flushright}
\begin{tabular}{l}
Lab 2003W--Sample file\\
Applied Mathematics 2130\\
Submitted by:\\
Submitted to:....\\
\today
\end{tabular}
\end{flushright}

\end{titlepage}
\lhead{Lab1}
\rhead{AM2130}
\lfoot{My name}
\rfoot{\thepage}
\underheadoverfoot

\section{Introduction}

This is a sample \LaTeX document. You should save it and look back at it when
you are writing your projects. This is how most people use \LaTeX. 
It's much easier to learn how to do something from an example rather than 
reading the manual. In particular, you'll probably want to use that
stuff at the front as a template for your projects (setting up the title
page, headers, etc.\ ).


\subsection{A subsection}
This is a subsection.

\subsubsection{A sub subsection}
This is a subsubsection.

\subsubsection*{An un-numbered subsubsection}
Adding an asterisk after a \texttt{section} command will kill the section 
number.

\section{Text Stuff}

For normal text, just type it into your file. If you want to:
\begin{enumerate}
\item \underline{underline}, 
\item \textit{italicize}, 
\item \textbf{bold}, or
\item \textsl{slant} 
\end{enumerate}
text, issue the appropriate commands. In the
same way, you can make something look like it was 
\texttt{written by a typewriter}. This is how computer code would usually 
be included in the text.
 
Other lists can be generated using
other commands, For example:
\begin{itemize}
\item Doorknob, 
\item Evil, and
\item Felucca,
\end{itemize}
or
\begin{description}
\item[First Ape] Orangutan, 
\item[Second Ape] Gorilla, and
\item[Third Ape] Chimpanzee.
\end{description}
If you want to do something more sophisticated than these, you'll need to 
learn about the \texttt{list} environment. Check out one of the references
given in the bibliography (or any other \LaTeX reference).


It is also possible to create tables:
\begin{tabular}{|l|c|r|}
\hline
Aardvark & Bubonic & Catastrophe\\
A & B & C\\
1 & 2 & 3 \\
\hline
\multicolumn{2}{|c|}{Multicolumn} & Corpuscle \\ 
\hline
\end{tabular}
Note that it showed up right in the text. If I wanted it to appear on its own
line I would need to issue a \texttt{newline} command first:
\newline
\begin{tabular}{|l|c|r|}
\hline
Aardvark & Bubonic & Catastrophe\\
A & B & C\\
1 & 2 & 3 \\
\hline
\multicolumn{2}{|c|}{Multicolumn} & Corpuscle \\ 
\hline
\end{tabular}
\newline
Alternatively if I wanted it on its own line and centred:
\begin{center}
\begin{tabular}{|l|c|r|}
\hline
Aardvark & Bubonic & Catastrophe\\
A & B & C\\
1 & 2 & 3 \\
\hline
\multicolumn{2}{|c|}{Multicolumn} & Corpuscle \\ 
\hline
\end{tabular},
\end{center}
where I have to spell \texttt{center} the American way, since \LaTeX is 
American. This is a {\huge big} pain.

Notice that when I want a new paragraph, I leave a space in the \texttt{.tex}
file. If I want to insert extra vertical space I use this command:

\vspace{3cm}

To put horizontal space in a line I use this \hspace{2cm} command.

Footnotes are always useful to make your project appear more sophisticated!
They can be generated like this.\footnote{This is a footnote. Notice that I 
don't need to number it, \LaTeX does that for me}

\section{Mathematics}
\LaTeX is especially good at typesetting mathematics. Math can be 
in the text like this: $x^2 + y^2 - a^2/3 = 0$. Or we can separate it out
\begin{equation}
x^2 + y^2 - \frac{a^2}{3}.
\label{E1}
\end{equation}
If I don't want my equation numbered than I could write
\[
x^2 + y^2 - \frac{a^2}{3},
\]
instead. However, it is often useful to let \LaTeX do that numbering so that 
you can refer to the equation later on. Notice that you just have to remember
the label of the equation, not it's number. For example, the above equation
is Equation (\ref{E1}).

If you are working through some algebra, and want to include highlights, the
\texttt{eqnarray} environment is helpful. For example:
\begin{eqnarray}
Sum & = & 1 + 2 + 3 + 4 + 5 \\
& = & 3 + 3 + 4 + 5 \nonumber \\
& = & 6 + 4 + 5 \nonumber \\
& = & 10 + 5 \nonumber \\
& = & 15. \nonumber
\end{eqnarray}
Notice how I used \texttt{\nonumber} to kill off excess equation numbers.

The equation array environment is useful if you just have three columns to line
up. If there are more, you'll have to go to a fully-fledged array:
\begin{equation}
\mbox{FFA} = \left[ 
\begin{array}{ccc}
\alpha & \beta & \gamma \\
\delta & \epsilon & \zeta \\
\eta & \theta & \iota \\
\kappa & \lambda & \mu \\
\nu & \xi & o \\
\pi & \rho & \sigma \\
\tau & \upsilon & \phi \\
\chi & \psi & \omega
\end{array}
\right].
\end{equation}
Just like the \texttt{tabular} environment, you can also put vertical and
horizontal lines in:
\begin{equation}
FFA2 =  
\begin{array}{|c|c|c|c|c|}
\hline
\Gamma & \vartheta & \Xi & \Omega & \varepsilon \\
\hline
\Rightarrow & \sqrt{2} & \mathcal{X} & \mathcal{S} & \int x dx \\
\hline
\ldots & \vdots & \cdots & \ddots & \leq \\
\hline
\oplus & \ddagger & \pm & \diamond & \propto \\
\hline
\leftarrow & \rightarrow & \Leftarrow & \longrightarrow & \Leftrightarrow \\
\hline
\ell & \spadesuit & \flat & \swarrow & \notin \\
\hline
\mathbb{R} & \dashv & \ll & \gg & \mho \\
\hline
\sum & \int & \oint & \cosh & \leadsto \\
\hline
\end {array}
\end{equation}
There are a {\Large HUGE} number of symbols available. Check out a \LaTeX
manual or the course manual for others. 

Accents: $\hat{a}, \check{a}, \tilde{a}, \dot{a}, \bar{a}, \mbox{and} \vec{a}$
are possible, as are superscripts $a^2$ and subscripts $a_2$. We can 
also underline $\underline{\cos \vartheta}$ and overline 
$\overline{\sin \varphi}$ things.

Again check out the manuals \cite{ll1,hk,manual} for further info. I've only touched on 
some of the stuff that you can do in this intro.

\appendix

\section{The first appendix}
\label{A1}
This is now an appendix.

\section{The second appendix}
\label{A2}
Notice that the numbering of appendices is letters rather than numbers.
Appendices and sections may be labelled just like equations. The two appendices
here are \ref{A1} and \ref{A2}.

\begin{thebibliography}{99}

\bibitem{ll1}  Lamport, L. (1994) \textsl{\LaTeX -- A Document Preparation 
System}, 2nd edition for \LaTeXe. Reading MA: Addison-Wesley.

\bibitem{hk} Kopka, H. and Daly P.W. (1999) \textsl{A Guide to \LaTeX}.
Addison-Wesley.

\bibitem{manual} \textsl{Applied Mathematics 2130, Course Manual}.
MUN Printing Services.

\end{thebibliography}


\end{document}

