\documentclass{article}
\usepackage{epsfig}
\renewcommand{\baselinestretch}{1}
\setlength{\textheight}{9in}
\setlength{\textwidth}{6.5in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\topmargin}{0in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\parindent}{.3in}
\begin{document}

\leftline{Pat Q.~Student}
\leftline{AME 40510}
\leftline{26 January 2011}

\medskip
This is a sample file in the text formatter \LaTeX.
I require you to use it for the following reasons:

\begin{itemize}

\item{It produces the best output of text, figures,
      and equations of any
      program I've seen.}

\item{It is machine-independent. It runs on Linux, Macintosh (see TeXShop), and Windows (see MiKTeX) machines.
     You can e-mail ASCII versions of most relevant files.}

\item{It is the tool of choice for many research
     scientists and engineers.
     Many journals accept 
     \LaTeX~ submissions, and many books
     are written in \LaTeX.}

\end{itemize}
\medskip
Some basic instructions are given below.
Put your text in here.  You can be a little sloppy    about
spacing.  It adjusts the text to look good.
{\small You can make the text smaller.}
{\tiny You can make the text tiny.}

Skip a line for a new paragraph.   
You can use italics ({\em e.g.} {\em  Computations are everywhere}) or {\bf bold}.
Greek letters are a snap: $\Psi$, $\psi$,
$\Phi$, $\phi$.  Equations within text are easy---
An approximiation for the partial derivative is $\left.{\partial u \over \partial x}\right|_{y}
\sim {u_{i+1,j} - u_{i,j} \over \Delta x}$.
You can also set aside equations like so:
\begin{eqnarray}
{\partial u \over \partial t} &=& \nabla^2 u, \\
{u_{i,j}^{n+1}-u_{i,j}^n \over \Delta t} &\sim&
{u_{i+1,j}^n-2u_{i,j}^n+u_{i-1,j}^n \over \Delta x^2}
+{u_{i,j+1}^n-2u_{i,j}^n+u_{i,j-1}^n \over \Delta y^2}.
\end{eqnarray}
References
\footnote{Lamport, L., 1986, {\em \LaTeX: User's Guide \& Reference Manual},
    Addison-Wesley: Reading, Massachusetts.}
are available. 
If you have an postscript file, say {\tt sample.figure.eps}, in the same local directory,
you can insert the file as a figure. Figure \ref{sample}, below, gives plots of various Bessel functions. 
\begin{figure}[h]
\centerline{\psfig{figure=sample.figure.eps,height=1.2in}}
\caption{Sample figure plotting Bessel functions}
\label{sample}
\end{figure}

\medskip
\leftline{\em Running \LaTeX}
\medskip

You can create a \LaTeX~ file with any text editor (vi, emacs, gedit, 
etc.). 
To get a document, you need to run the \LaTeX~ application
on the text file.  The text file must have the suffix ``{\tt .tex}''
On a Linux cluster machine, this is done via the command

\medskip
{\tt latex file.tex}

\medskip
\noindent
This generates three files: {\tt file.dvi}, {\tt file.aux},
and {\tt file.log}.  The most important is {\tt file.dvi}. 

\medskip
\noindent
The finished product can be previewed in the following way.
Execute the commands:

\medskip

{\tt dvips -Ppdf -tletter -G0 -o file.ps file.dvi}\hspace{1.9in}{\em Linux System}

{\tt ps2pdf -dSubsetFonts=true -dEmbedAllFonts=true file.ps}\hspace{1.18in}{\em Linux System}

\medskip
\noindent
These commands generate {\tt file.pdf}.  The file can be viewed then via the command

\medskip
{\tt acroread file.pdf}

\medskip
\noindent
The {\tt .tex} file must have a closing statement as
below.


\end{document}
