
\begin{slide}{}

\centerline{\Large A Lay(\TeX ers) guide to \LaTeX }

\bigskip

Why use \LaTeX?

\begin{itemize}

\item It's free.

\item It's compiled (platform independent).

\item It's powerful.

\item It looks {\em really good}.

\end{itemize}


\end{slide}

\begin{slide}{}

\begin{enumerate}

\item How to write a \LaTeX\ document?

\item Mathematical Formulas in \LaTeX.

\item How to create macros.

\item Using xemacs, xdvi, ghostview, maple, etc.

\item Tables, Figures, and other neat Stuff.

\item The thesis.

\end{enumerate}

\end{slide}

\begin{slide}{}

{\large 1. Smallest \LaTeX  document}

\begin{verbatim}

\documentstyle{article}
\begin{document}
This is a small paper.
\end{document}

\end{verbatim}

Notes: \verb+\+ denotes command.

\smallskip

\verb+\documentstyle + -- What type of document 
(article, report, letter, book, slides
thesis, own, etc.) 

\smallskip

\verb+\begin+ and \verb+\end+ 
surround different environments (document, quote,
math, equation, array, verbatim, center, slide etc.)

\end{slide}

\begin{slide}{}

{\large 2. Math Formulas:}

\[ e^{\int_a^x f(t) dt} =
\frac{\sum_{m=1}^{\infty} \frac{x^n}{n!}}
{1+\frac{x}
{1+\frac{x^2}
{1+\frac{x^3}
{1+\cdots}}}} \]

{\tiny
\begin{verbatim}

\[ e^{\int_a^x f(t) dt} =\frac{\sum_{m=1}^{\infty} \frac{x^n}{n!}}
{1+\frac{x}{1+\frac{x^2}{1+\frac{x^3}{1+\cdots}}}} \]

\end{verbatim}
}

Math modes:

{\small
math environment 
\verb+ \( \)  $  $  \begin{math} \end{math}+
Displaystyle  \verb+ \[  \]  \begin{displaymath} \end{dis...}+
}

How to write math objects:

{\tiny 
Greek letters (\verb+ \tau, \Theta +) -- $\tau,\Theta$

Accents (\verb+ \bar v, \tilde v, \dot v +)
-- $\bar v, \tilde v, \dot v $

arrays ( \verb+ \left( \begin{array}{cc} \cos \theta & \sin \theta \\
- \sin \theta & \cos \theta \end{array} \right)+ )

\[ \left( \begin{array}{cc} \cos \theta & \sin \theta \\
- \sin \theta & \cos \theta \end{array} \right) \]

}
\end{slide}


\begin{slide}{}

{\large 3.  Macros:}

{\tiny
\begin{verbatim}
\newcommand{\diff}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\limit}[2]{\lim_{#1 \rightarrow #2}}
\newcommand{\limtoinf}[1]{\lim_{#1 \rightarrow \infty}}
\newcommand{\summii}{\sum_{m=1}^{\infty}}
\end{verbatim}

}

examples:

\[ \diff u t + u \diff u x + v \diff v y = - \diff p x \]
\[ \limit x 0 \frac{\sin x} x = 1 \]
\[ \limtoinf t \frac{t^3-6t^2 + 6}{14 t^3} = \frac 1 {14} \]
\[ f(x) = \summii a_m \sin m x \]

{\tiny
\begin{verbatim}
\[ \diff u t + u \diff u x + v \diff v y = - \diff p x \]
\[ \limit x 0 \frac{\sin x} x = 1 \]
\[ \limtoinf t \frac{t^3-6t^2 + 6}{14 t^3} = \frac 1 {14} \]
\[ f(x) = \summii a_m \sin m x \]
\end{verbatim}
}

\end{slide}

\begin{slide}{}

{\large 4. Support Programs}
\medskip
\begin{center}
\hbox{ %
\epsfxsize=6.0in
\epsffile{latex.eps}}

\end{center}
\end{slide}

\begin{slide}{}

{\large 5. Figures/Tables/postscript figures}

Example of a figure:
{\tiny
\begin{verbatim}
\begin{figure}
\begin{center}
{\hbox %
\epsfxsize=6.0in
\epsffile{latex.eps}}
\end{center}
\caption{Hi. I'm the caption}
\end{table}
\end{verbatim} 

example of a table:

\begin{verbatim}
\begin{tabular}{|l|r|r|r|} \hline
\multicolumn{2}{|l}{
{\large Model BC }\rule{0pt}{14pt}} &
\multicolumn{2}{|r|}{ $N=308$} \\ \hline
\multicolumn{2}{|l|}{} & 
\multicolumn{2}{|r|}{ $R^2=0.3393$} \\ \hline
\multicolumn{2}{|l|}{ Dep. Variable = TOTAL}
& \multicolumn{2}{|r|}{ Adj. $R^2=0.3327$} \\ 
\hline \hline
Variable & Param. Est. & Std. Error & $p$-value \\ \hline
   INTERCEPT  & -196.163  &  67.296  &  0.0038 \\ \hline
   CALC       &   67.332  &   9.764  &  0.0001 \\ \hline
   SATM   &    0.354  &   0.068  &  0.0001 \\ \hline
   HSGPA      &  108.474  &  14.252  &  0.0001 \\ \hline
\end{tabular}
\end{verbatim}


\begin{tabular}{|l|r|r|r|} \hline
\multicolumn{2}{|l}{
{\large Model BC }\rule{0pt}{14pt}} &
\multicolumn{2}{|r|}{ $N=308$} \\ \hline
\multicolumn{2}{|l|}{} & 
\multicolumn{2}{|r|}{ $R^2=0.3393$} \\ \hline
\multicolumn{2}{|l|}{ Dep. Variable = TOTAL}
& \multicolumn{2}{|r|}{ Adj. $R^2=0.3327$} \\ 
\hline \hline
Variable & Param. Est. & Std. Error & $p$-value \\ \hline
   INTERCEPT  & -196.163  &  67.296  &  0.0038 \\ \hline
   CALC       &   67.332  &   9.764  &  0.0001 \\ \hline
   SATM   &    0.354  &   0.068  &  0.0001 \\ \hline
   HSGPA      &  108.474  &  14.252  &  0.0001 \\ \hline
\end{tabular}}

\end{slide}

\begin{slide}{}

{\large 5. Example of a larger document (The thesis):}

{\tiny
\begin{verbatim}
\documentstyle[consectcutivefigures]{thesis}
\author{Peter Lindsay}{Staab}
\title{My very own thesis (written in \LaTeX)}
\otherdegrees{H.B.S. University of Utah}
\degree{Doctor of Philosophy}{Ph.D. Applied Mathematics}
\advisor{Associate Professor}{David Kassoy}
\reader{M. R. Reader}
\dept{Program in}{Applied Mathematics}
\degreeyear{1998}
\begin{document}
\titlepage
\approvalpage
\shortabstractpage
Hey man, this is the abstract.
\chapter*{dedication}
To my dog, who didn't eat my thesis.
\shortchapter*{acknowledgements}
I want to thank all the little people.
\tableofcontents
\shortlistoffigures
\shortlistoftables
\endpreface
\chapter{Introduction}
This is what I'm going to talk about.
\end{document}
\end{verbatim}
}

\end{slide}
