\documentclass[twocolumn]{article}

\usepackage{graphicx}

\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}

\begin{document}

\author{Mark Senn \tt <mark@purdue.edu>}
\date{September 30, 2004}
\title{A Contrived \LaTeX\ Example}
\maketitle

\begin{abstract}
  This document demonstrates \LaTeX.
\end{abstract}

\section{Mostly Math}

You can refer
to things before they appear using 
\verb+\ref{+{\it label}\verb+}+.
Distance is defined in equation \ref{eq:distance}.

See \cite{Lamport:1995}
and then \cite{Mittelbach:2004}
or \cite{Kopka:2004} for \LaTeX\ information.

Don't do
``$d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}$.''
Instead,
if you have that much
to say,
use display math like
\[
  d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}
\]
Or,
if you want to number it so you can refer
to it somewhere else do
\be % this was defined above
  d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}
  \label{eq:distance}
\ee % this was defined above

The sum of the first ten integers,
i.e.,
1--10,
is 55.
The sum of the integers from~1
to~$n$ can be done ``by hand.''
\begin{eqnarray}
  \sum_1^n & =& 1 + 2 + \cdots + n\nonumber\\
           & =& \frac{n(n+1)}{2}
\end{eqnarray}

\section{Figures}

Figures automatically ``float''
to where \LaTeX\ thinks they'll look good.

\begin{figure}
  \centerline{\includegraphics[width=1in]{PUlogo.eps}}
  \caption{Purdue ``signature'' logo}
\end{figure}

Sometimes input and output aren't in same order.

\section{Tables}

Tables also ``float.''
Use ``{\tt [h]}''
to disable floating
and put ``here.''

\begin{table}[h]
  \centerline{%
    \begin{tabular}{|ll|}%
      \hline
      \multicolumn{2}{|c|}{\bf Phone List}\\
      \sc Name& \sc Phone\\
      Aaron& 1111\\
      Zach& 9999\\
      \hline
    \end{tabular}%
  }
  \caption{Phone List}
\end{table}

\bibliographystyle{plain}
\bibliography{refs}

\end{document}
