\documentclass{article}
\usepackage{fullpage}
\pagestyle{empty}

% backslash
\def\BS{\symbol{92}}

\begin{document}

\begin{center}
\LaTeX\ Quick Reference\\
Provided by the 15-251 TAs
\end{center}

\begin{itemize}

\item {\bf Document Template:} Start every document like this:

\begin{verbatim}
\documentclass{article}
\usepackage{fullpage}

\begin{document}
% Your stuff goes here
\end{document}
\end{verbatim}
\item {\bf Justification:} Text is fully justified by default.
You can use these commands to justify left, center, or right:

        \begin{itemize}
        \item {\tt \BS begin\{flushleft\} } \\
                  {\tt \BS end\{flushleft\} }

        \item {\tt \BS begin\{center\} } \\
                  {\tt \BS end\{center\} }

        \item {\tt \BS begin\{flushright\} } \\
                  {\tt \BS end\{flushright\} }
        \end{itemize}
\item {\bf Text Styles:}
    Use \verb+\emph{}+ for \emph{emphasized} text
    \verb+\textbf{}+ for \textbf{bold},
    \verb+\textit{}+ for \textit{italics},
    \verb+\texttt{}+ for \texttt{teletype},
    \verb+\textrm{}+ for \textrm{roman} (normal),
        

    \texttt{In this sentence, only \BS textbf\{these three words\} will be
    bold.}

\item {\bf Math mode:}
    To put simple equations like $x+2$ into the middle of a sentence,
    just put dollar signs around it: {\tt the answer is \$ x+2 \$ }.

    To insert an entire equation, centered on its own line, use the
    \verb+equation+ environment:
\begin{verbatim}
\begin{equation}
  x+2 = 123456789
\end{equation}
\end{verbatim}

\item {\bf Basic math formatting:}

\begin{tabular}{ll}
$y^{25}$            & {\tt y\verb+^+\{25\} } \\
$z_0$               & {\tt z\verb+_+0 } \\
$\frac{x+2}{y+1}$   & {\tt \BS frac\{x+2\}\{y+1\} } \\
$\sum_{x=1}^{10}$   & {\tt \BS sum\verb+_+\{x=1\}\verb+^+\{10\} } \\
\end{tabular}

\item {\bf Unordered lists, ordered lists:}
        \begin{itemize}
        \item {\tt \BS begin\{itemize\} } \\
              {\tt \BS item } \\
              {\tt \BS item } \\
                  {\tt \BS end\{itemize\} }

        \item {\tt \BS begin\{enumerate\} } \\
                  etc.
        \end{itemize}

\item {\bf Using \LaTeX:}

\begin{tabular}{ll}
{\tt latex myfile.tex}  & Compile the file.  If there is an error,
                          type q and hit return to exit.\\
{\tt latex2e myfile.tex}  & On some systems you need to run latex2e
                            instead of latex.\\
{\tt xdvi myfile.dvi}   & Display the result on-screen. \\
{\tt dvips -o myfile.ps myfile.dvi}   & Convert to postscript \\
{\tt lpr -Pprintername myfile.ps }  & Print postscript \\
{\tt dvips -Pprintername myfile.dvi} & Print directly from dvi \\
\end{tabular}

\end{itemize}

\end{document}
