Whitespace
Like HTML, multiple spaces or single newlines treated the same
Empty lines (adjacent newlines) break paragraphs
Comments
Begin with "%" and extend to end of line
Causes rest of whitespace on line and beginning of next line to be ignored
Can be used to split long lines so no spurious whitespace is inserted
Environments
Start with "\begin{something}"
End with "\end{something}"
Many named commands can be used as environments also
Structuring body text
Often break up into hierarchical components
\section, \subsection, \subsubsection, \paragraph
Some document classes permit "\part", "\chapter", "\appendix"
Formatting the title
Define the components
\title{Title of the Paper}
\author{My Name}
\date{4 July 1776} (optional -- default = \today)
Make the title
\maketitle
Text formatting
Italic: \emph{the text} or \textit{the text}
Bold: \textbf{the text}
Underline: \underline{the text}
Typewriter font: \texttt{the text}
Sans-serif font (like Helvetica/Arial): \sffamily or \textsf{...}
Roman font (like Times Roman): \rmfamily or \textrm{...}
Superscript (math mode): ^ (e.g., "2^5" or "x^{y^3}")
Subscript (math mode): _ (e.g., "x_2" or "entry_{97}")
Paragraph/page formatting
\begin{center} ... \end{center}
\begin{flushleft} ... \end{flushleft} (equivalent: "\raggedright")
\begin{quote} ... \end{quote} ("quotation" is similar -- try them)
\newpage
\newline (like \\, but does not justify current line)
Margins
Set by default LaTeX style -- may seem big
Control with "geometry" package
"\usepackage[hmargin=0.5in,vmargin=1.0in,headheight=18pt]{geometry}"
Lists (bulleted or numbered)
\begin{itemize} or \begin{enumerate}
\item
\end{itemize} or \end{enumerate}
Tables
Can be a little complicated
See "tabular" environment
Special
"\LaTeX" produces the LaTeX logo