\documentclass[11pt]{article}
\usepackage{geometry}
\geometry{letterpaper}
%\geometry{landscape}
\usepackage[parfill]{parskip}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{cite}

% math packages
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amstext}
\usepackage{dsfont}

% some math commands
\newcommand{\T}{^T}
\newcommand{\reals}{\mathds{R}}
\newcommand{\imags}{\mathds{C}}

\title{CME 212: \LaTeX Tutorial}
\date{January 13, 2012}

\usepackage[pdftex,colorlinks]{hyperref}

\begin{document}
\maketitle

This assignment is an exercise in setting up a \LaTeX\ document and generating a
nice pdf.  You will also be using the CME212 homework submission script on
\texttt{corn.stanford.edu}.

\section{The \LaTeX\ document}

Write a \LaTeX\ document containing the following items:

\begin{itemize}
\item A title.
\item Your name.
\item The date.
\item A section with a paragraph describing the computer setup you'll be using
  in the course.
\item A section with a paragraph describing your interest in cme212.  Why are
  you taking the course?  What do you hope to learn?
\item A section with your favorite joke.
\item A section with your favorite equation.  Mine is \[ Ax = b. \]
\end{itemize}

\section{Submitting the assignment}

You need to do a few things in order to use the submission script:

\begin{enumerate}
\item Log into \texttt{corn.stanford.edu} with your favorite ssh tool.
\item Create a CME212 directory in your HOME directory:
\begin{verbatim}
$ cd ~
$ mkdir CME212
\end{verbatim}
\item Create a hw1 directory in the CME212 directory:
\begin{verbatim}
$ cd ~/CME212
$ mkdir hw1
\end{verbatim}
\end{enumerate}

Now you are ready to submit the assignment.

\begin{enumerate}
\item Create (or upload) your files in the \texttt{CME212/hw1} directory.
\item Make sure your document compiles with the \texttt{pdflatex} command on
  \texttt{corn}:
\begin{verbatim}
$ pdflatex mydoc.tex
\end{verbatim}
\item Please delete all auxiliary files that \texttt{pdflatex} generates.
  We'd like the homework directory to only contain the \texttt{.tex} and
  \texttt{.pdf} files.
\item Submit the homework:
\begin{verbatim}
$ /afs/ir/class/cme212/bin/submit hw1
\end{verbatim}
\end{enumerate}

\section{A hint}

You can use \texttt{make} to compile \texttt{tex} files in the same was you do
for code files.  In this case, your \texttt{makefile} might look like:

\begin{verbatim}
mydoc.pdf: mydoc.tex
    pdflatex mydoc.tex
\end{verbatim}

Note that you must use tab characters for indentation in makefiles.

% fix reference to bibtex file
%\bibliography{/home/nwh/Dropbox/ref/ref}{}
%\bibliographystyle{plain}

\end{document}
