\documentclass{article}
\usepackage{graphicx}
\usepackage{makeidx}
\makeindex

\begin{document}

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Table of Contents}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% This is an example of generating a table of contents, and list of
% figures and tables.
\tableofcontents
\listoffigures
\listoftables

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Index Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent This is an example of generating an index.
\\
\\
As you learned in the first article, in LaTeX \index{LaTeX} you can manage your
bibliographic citations using BibTeX\index{BibTeX}. The index is
printed on the next page.

\printindex

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{BibTeX Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent This is an example of BibTeX.
\\
\\
Here I cite Wilson \cite{wilson-ltxx}, then Horspool
\cite{horspool-analysis}. Notice that source.bib contains three
entries. LaTeX only displays the cited references. To cite the other
reference, you can use the \\nocite command.

\bibliographystyle{plain}
\bibliography{examples}

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Footnote Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This is an example of the LaTeX footnote command.\footnote{Place the text for
the footnote here.}

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Table Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent Three examples of simple tables.

\begin{table}[h]
\centering
\caption{Simple Table - Top 5 Hockey Players of All Time}
\begin{tabular}{|l|c|r|}
\hline
Name & Number & Main Team \\
\hline
Bobby Orr & 4 & Boston \\
Wayne Gretzky & 99 & Edmonton \\
Mario Lemieux & 66 & Pittsburgh  \\
Gordie Howe & 9 & Detroit \\
Maurice Richard & 9 & Montreal  \\
\hline
\end{tabular}
\end{table}

\begin{table}[h]
\caption{Simple Table with Double Lines - Top 5 Hockey Players of All Time}
\centering
\begin{tabular}{|l||c||r|}
\hline
\textbf{Name} & \textbf{Number} & \textbf{Main Team} \\
\hline \hline
Bobby Orr & 4 & Boston \\
Wayne Gretzky & 99 & Edmonton \\
Mario Lemieux & 66 & Pittsburgh  \\
Gordie Howe & 9 & Detroit \\
Maurice Richard & 9 & Montreal  \\
\hline
\end{tabular}
\end{table}

\begin{table}[h]
\caption{Extended Table - Top 5 Hockey Players of All Time}
\centering
\begin{tabular*}{6in}{|l@{\extracolsep{\fill}}cr|}
\hline
Name & Number & Main Team \\
\hline
Bobby Orr & 4 & Boston \\
Wayne Gretzky & 99 & Edmonton \\
Mario Lemieux & 66 & Pittsburgh  \\
Gordie Howe & 9 & Detroit \\
Maurice Richard & 9 & Montreal  \\
\hline
\end{tabular*}
\end{table}

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Figures Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent This is an example of a figure.

\begin{figure}[h]
\centering
\caption{Mississippi John Hurt}
\includegraphics{mjh.jpg}
\end{figure}

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Graphics Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent This is an example of inserting a EPS file into LaTeX
document. The LaTeX file is processed with latex.
\\

% \includegraphics{mjh.eps}

% This is an example of inserting a JPG file into a LaTeX
% document. The LaTeX file is processed with pdflatex.

\includegraphics{mjh.jpg}

 Mississippi John Hurt, the great Delta Blues musician.

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{Math Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent This is an example of embedding math in a document.
\\
\\
The time-points $x_{i}$ to $x_{j}$ are embedded in the main text.
\\
\\
\noindent This is an example of math enclosed in the math command.
\\
\\
\begin{math}
  (l_{1} \leq x_{j} - x_{i} \leq u_{i}) \vee ... \vee (l_{n} \leq x_{j} - x_{i} \leq u_{n})
\end{math}

\pagebreak
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\section{List Example}
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\noindent This is an example of the description list.

\begin{description}
\item[Item 1] This is the first item in the description list
\item[Item 2] This is the second item in the description list
\end{description}

\noindent This is an example of the enumerate list.

\begin{enumerate}
\item This is the first item in the enumerate list
\item This is the second item in the enumerate list
\end{enumerate}

\noindent This is an example of the itemize list.

\begin{itemize}
\item This is the first item in the itemize list
\item This is the second item in the itemize list 
\end{itemize}

\noindent This is an example of a nested list.
\begin{enumerate}
\item This is the first item in the nested list
\begin{itemize}
\item Item 1 of the sub list
\begin{itemize}
\item Item 1 of the sub/sub list
\end{itemize}
\end{itemize}
\item This is the second item in the nested list
\end{enumerate}

 
\end{document}
