% Template

\documentclass{article}

% This is where environment declarations go it's called the Preamble
	\newtheorem{prop}{Proposition}
	\newtheorem{thm}{Theorem}

	% Relabels the Abstract Heading
	\renewcommand{\abstractname}{Sneak Preview}

	% Uncomment the below to set a 1cm space in between paragraphs
	%\setlength{\parskip}{1cm}

	% Sets the Identation length
	\setlength{\parindent}{6mm}

% End Preamble

\begin{document}

% Adding a Title

\title{LaTeX Tutorial}
\author{Ian Tegebo\\University of California Berkeley }
\date{October 2003}
\maketitle

% Adding a ToC
\tableofcontents

% Adding a LoT
\listoftables

% Adding an entry for the abstract which we relabeled to 'Sneak Preview' in the Preamble
\begin{abstract}
This document you're reading shouldn't make a whole lot of sense.  You should be looking at the example.tex file and observing how the commands there get translated into the type you're reading.
\end{abstract}

\section{Text Examples}

\subsection{Fonts}

% Different Kinds of Type
\textbf{quick brown fox}
\newline
\textit{quick brown fox}
\newline
\textsf{quick brown fox}
\newline
\textsl{quick brown fox}
\newline
\texttt{quick brown fox}
\newline
\emph{quick brown fox}
\newline
\sc{quick brown fox} 
\newline

\subsection{Special Typesettings}

% Different ways to use environments
\begin{itshape}
The polynomial $p(t)$ splits...
\end{itshape}
{\itshape The polynomial $p(t)$ splits ...}

% Typesetting propositions, notice we had to declare the {prop} environment
\begin{prop}
This is the text of my proposition.
\end{prop}

% Typesetting theorems
\begin{thm}[Main Theorem]
This is the main theorem.
\end{thm}

% Lists
Check out this cool list:
\newline
\begin{enumerate}
\item  $M$ is complete
\item  $f$ is proper
\end{enumerate}

% Centering and Underlining
\begin{center}
This will be centered!
\end{center}

\begin{underline}
This will be underlined!
\end{underline}

\section{Formatting Space}

% Spacing
...the following diagram.  % some text to illustrate the use of spacing
\vskip20pt
some text to display the amount of space.

\newpage
This should be on a new page.
...This is the end of the line.
\linebreak
This is where I want to start the next line.

...This is the end of another line.
\newline
This should be a new line that's ``prettier'' % note the use of double quotes

\section[Special Constructions]{Tables and Displaying Math}

% Tables: use the tabular environment

\begin{center}
\begin{tabular}{c|ccccccc|}  % c's denote # of columns, |'s are vertical lines

  % Specify each row where &'s are field separators and the row ends with \\
  $\lambda$& (5)& (4,1)& (3,2)& (3,1,1)& (2,2,1)& (2,1,1,1)&
       (1,1,1,1,1)\\
% Used to make a horizontal line
\hline 
  
  % Specifying another row
  $d_{_\lambda}$& 1& 4& 5& 6& 5& 4& 1\\ 
\end{tabular}
\end{center}

% A big equation centered as 'displayed math'
\[\bar n^*_j(s)=\frac{\left\{s\sum^k_{i=1}n_i(0)p^*
_{i,k+1}(s)+M^*(s)\right\}\sum^k_{i=1}p_{0i}p^*{ij}
(s)}{1-s\sum^k_{i=1}p_{0i}p^*_{i,k+1}(s)}+\sum^k
_{i=1}n_i(0)p^*_{ij}(s)[j=1,2,\dots,k].\]

% The above, but using the equation environment to get autonumbering
%\begin{equation}\bar n^*_j(s)=\frac{\left\{s\sum^k_{i=1}n_i(0)p^*
%_{i,k+1}(s)+M^*(s)\right\}\sum^k_{i=1}p_{0i}p^*{ij}
%(s)}{1-s\sum^k_{i=1}p_{0i}p^*_{i,k+1}(s)}+\sum^k
%_{i=1}n_i(0)p^*_{ij}(s)[j=1,2,\dots,k].}
%\end{equation}


\end{document}