|
Category |
Subcategory |
LaTex
statement |
Comment |
|
Declarations |
Style |
\documentclass[]{} |
Document
style |
|
Package |
\usepackage{epsfig} |
Extra
package inclusion |
|
|
Margins |
\setlength{\textwidth}{} |
Width
of the whole text |
|
|
\setlength{\textheight}{} |
Height
of the whole text |
||
|
\setlength{\topmargin}{} |
1.in+topmargin
is the total top margin |
||
|
\setlength{\oddsidemargin}{} |
1.in+oddsidemargin
is the total left side margin (of odd page) |
||
|
\setlength{\evensidemargin}{} |
1.in+evensidemargin
is the total left side margin (of even page) |
||
|
\setlength{\parindent}{} |
the
paragraph indentation |
||
|
\setlength{\parskip}{} |
the
extra vertical space inserted before a paragraph |
||
|
Commands |
\newcommand{\ignore}[1]{} |
Block
comments |
|
|
Body |
Begin |
\begin{document} |
Starting
of the document body |
|
Set
styles |
\bibliographystyle{} |
Set
the bibliography style |
|
|
\pagestyle{} |
Page
style definition such as page numbering |
||
|
\thispagestyle{} |
Set
the current page style |
||
|
Title
info |
\title{} |
Title
of the paper |
|
|
\author{} |
Authors |
||
|
Make
Title |
\maketitle |
Display
the title, author, etc. information |
|
|
Abstract |
\begin{abstract} |
|
|
|
\end{abstract} |
|
||
|
Sections |
\section{} |
Starting
of a section |
|
|
\subsection{} |
Starting
of a subsection |
||
|
\subsubsection{} |
Starting
of a subsubsection |
||
|
Bibliography |
\bibliography{} |
Load
the bibliography |
|
|
End |
\end{document} |
End
document |
|
Category |
LaTeX statement |
Comment |
|
|
Enumerator |
\begin{enumerate} |
Use \item to indicate the starting a new item |
|
|
\end{enumerate} |
|||
|
Comment |
% |
Comment |
|
|
Reference |
\cite{} |
Reference |
|
|
Mathematical formula |
$ something $ |
\( something \) |
|
|
Line breaker |
\\ |
|
|
|
Page breaker |
\newpage |
|
|
|
Figure |
\ref{fig:fig_ref}[placement] |
|
|
|
\begin{figure} |
Placement |
||
|
h |
Here - at the position in the text where the figure
environment appears. |
||
|
t |
Top - at the top of a text page |
||
|
b |
Bottom - at the bottom of a text page |
||
|
p |
Page of floats - on a separate float page, which is a page
containing no text, only floats. |
||
|
Indentation |
\noindent |
No indentation |
|
|
|
\begin{verbatim} |
gets LaTeX to print exactly what you type in |
|
|
\end{verbatim} |
|
||
|
Quotation |
`this' |
|
|
|
Font faces |
\rm{} |
Roman. |
|
|
\it{} |
Italics. |
||
|
\em{} |
Emphasis (toggles between \it and \rm). |
||
|
\bf{} |
Boldface. |
||
|
\sl{} |
Slanted. |
||
|
\sf{} |
Sans serif. |
||
|
\sc{} |
Small caps |
||
|
\tt{} |
Typewriter |
||
|
Font sizes |
\tiny{} |
|
|
|
Footnote |
\footnote{} |
|
|
|
Spacing |
\renewcommand{\baselinestretch}{#} |
# : Use 1.6 for double spacing and 1 for single spacing |
|