\
Basic structure of a LATEX document
\documentclass[options]{class}
Preamble commands, if needed
\begin{document}
Document text & commands here
\begin{environment1}
Environment 1 commands & text here
\end{environment1}
More document text & commands here
\begin{environment2}
Environment 2 commands \& text here
\end{environment2}
\end{document}
Some useful options:
Common constructs in articles or documents:
\title{Title text}
\author{Author names and addresses}
\maketitle will create the page using the
information provided
\part \chapter \section \subsection \subsubsection
\paragraph \tableofcontents \listoffigures \listoftables
$y = 3x^2 + 4x + 2$
($ puts TeX in math mode; second $ exits math mode)
\begin{equation} ... \end{equation}
$a$ (inline) for variable \sin \cos \exp
eqnarray env, or AMSTex extensions
tabular env
\begin{env}{lcr} % env = "eqnarray" or "tabular"
a & b & c \\
d & e & f
\end{env}
% where l ==> left, c ==> center, r ==> right, and the number of
% these in the argument is the number of columns
\caption{text} (in figure or table env)
\label{tag} associates a counter with tag
\ref{tag} references the counter associated with tag
_type:tag_name (e.g.: sec:intro)
(usual types: eq sec tbl fig)
\cite{tag1,tag2,...,tagn}
\bibitem{tag} text of reference
\usepackage[dvips]{graphics,color} in the
preamble to load the graphics package
\resizebox{h_length}{v_length}{\includegraphics{filename.eps}}
eps files
\usepackage{graphics,color} in the
preamble to load the graphics package. Note the [dvips]
option is NOT present.
\small \normalsize \large \Large (and others)
\textfm{text} \textsc{text}
\emph{text}\texttt{text} \textit{text}
\text{\em \LaTeX Exercises II: Typsetting simple math}bf{text} \textsl{text} . Be sure to use italic correction \/
where end of italic or emphasized text meets non-slanted text
\ ie, \$ \& etc.