Professional Documents
Culture Documents
\section{title} \subparagraph{title}
\scriptsize scriptsize
\footnotesize footnotesize
LARGE
\LARGE
~
\@.
Space, disallow linebreak (W.J.~Clinton).
Indicate that the . ends a sentence when following
\subsection{title}
Use \setcounter{secnumdepth}{x} suppresses heading
\small small
\normalsize normalsize
huge
\huge an uppercase letter.
\hspace{l} Horizontal space of length l (Ex: l = 20pt).
numbers of depth > x, where chapter has depth 0. Use a *, as
in \section*{title}, to not number a particular itemthese
items will also not appear in the table of contents.
\large large Huge
\Huge
These are declarations and should be used in the form {\small
\vspace{l} Vertical space of length l.
\rule{w}{h} Line of width w and height h.
. . . }, or without braces to affect the entire document.
Text environments Tabular environments
\begin{comment} Comment (not printed). Requires verbatim Verbatim text tabbing environment
package. \begin{verbatim} Verbatim environment.
\begin{quote} Indented quotation block. \begin{verbatim*} Spaces are shown as . \= Set tab stop. \> Go to tab stop.
\begin{quotation}Like quote with indented paragraphs. \verb!text! Text between the delimiting characters (in Tab stops can be set on invisible lines with \kill at the end
\begin{verse} Quotation block for verse. this case !) is verbatim. of the line. Normally \\ is used to separate lines.
tabular environment Citation types The LATEX document should have the following two lines just
\cite{key} Full author list and year. (Watson and Crick before \end{document}, where bibfile.bib is the name of the
\begin{array}[pos]{cols} BibTEX file.
1953)
\begin{tabular}[pos]{cols}
\citeA{key} Full author list. (Watson and Crick)
\begin{tabular*}{width}[pos]{cols} \bibliographystyle{plain}
\citeN{key} Full author list and year. Watson and Crick
(1953) \bibliography{bibfile}
tabular column specification \shortcite{key} Abbreviated author list and year. ?
l Left-justified column. \shortciteA{key} Abbreviated author list. ? BibTEX example
c Centered column. \shortciteN{key} Abbreviated author list and year. ? The BibTEX database goes in a file called file.bib, which is
r Right-justified column. \citeyear{key} Cite year only. (1953) processed with bibtex file.
p{width} Same as \parbox[t]{width}. All the above have an NP variant without parentheses; Ex.
@{decl} Insert decl instead of inter-column space. \citeNP. @String{N = {Na\-ture}}
Inserts a vertical line between columns. @Article{WC:1953,
| BibTEX entry types author = {James Watson and Francis Crick},
@article Journal or magazine article. title = {A structure for Deoxyribose Nucleic Acid},
tabular elements @book Book with publisher. journal = N,
\hline Horizontal line between rows. @booklet Book without publisher. volume = {171},
\cline{x-y} Horizontal line across columns x through y. @conference Article in conference proceedings. pages = {737},
\multicolumn{n}{cols}{text} @inbook A part of a book and/or range of pages. year = 1953
A cell that spans n columns, with cols column @incollection A part of book with its own title. }
specification. @misc If nothing else fits.
@phdthesis PhD. thesis.
@proceedings Proceedings of a conference.
Sample LATEX document
Math mode @techreport Tech report, usually numbered in series. \documentclass[11pt]{article}
For inline math, use \(...\) or $...$. For displayed math, @unpublished Unpublished. \usepackage{fullpage}
use \[...\] or \begin{equation}. \title{Template}
BibTEX fields \author{Name}
Superscriptx ^{x} Subscriptx _{x} address Address of publisher. Not necessary for major \begin{document}
x
P n
y
\frac{x}{y} \sum_{k=1}^n publishers. \maketitle
n
Qnk=1
x \sqrt[n]{x} k=1
\prod_{k=1}^n author Names of authors, of format ....
booktitle Title of book when part of it is cited. \section{section}
Math-mode symbols chapter Chapter or section number. \subsection*{subsection without number}
edition Edition of a book. text \textbf{bold text} text. Some math: $2+2=5$
\leq \geq 6= \neq \approx editor Names of editors. \subsection{subsection}
\times \div \pm \cdot institution Sponsoring institution of tech. report. text \emph{emphasized text} text. \cite{WC:1953}
^{\circ} \circ 0 \prime \cdots journal Journal name. discovered the structure of DNA.
\infty \neg \wedge \vee key Used for cross ref. when no author.
\supset \forall \in \rightarrow month Month published. Use 3-letter abbreviation. A table:
\subset \exists
/ \notin \Rightarrow note Any additional information. \begin{table}[!th]
\cup \cap | \mid \Leftrightarrow number Number of journal or magazine. \begin{tabular}{|l|c|r|}
a \dot a a
\hat a a \bar a a
\tilde a organization Organization that sponsors a conference. \hline
\alpha \beta \gamma \delta pages Page range (2,6,9--12). first & row & data \\
\epsilon \zeta \eta \varepsilon publisher Publishers name. second & row & data \\
\theta \iota \kappa \vartheta school Name of school (for thesis). \hline
\lambda \mu \nu \xi series Name of series of books. \end{tabular}
\pi \rho \sigma \tau title Title of work. \caption{This is the caption}
\upsilon \phi \chi \psi type Type of tech. report, ex. Research Note. \label{ex:table}
\omega \Gamma \Delta \Theta volume Volume of a journal or book. \end{table}
\Lambda \Xi \Pi \Sigma year Year of publication.
\Upsilon \Phi \Psi \Omega Not all fields need to be filled. See example below. The table is numbered \ref{ex:table}.
\end{document}
Bibliography and citations Common BibTEX style files
abbrv Standard abstract alpha with abstract
When using BibTEX, you need to run latex, bibtex, and alpha Standard apa APA Copyright
c 2014 Winston Chang
latex twice more to resolve dependencies. plain Standard unsrt Unsorted http://www.stdout.org/winston/latex/