L
A
T
E
X
Packages I use:
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{mathabx}
\usepackage{parskip}
\usepackage{lscape}
\usepackage{listings}
\usepackage[normalem]{ulem}
\usepackage[top=.5in, bottom=.5in, left=.5in, right=.5in]{geometry}
\usepackage{tikz}
\usepackage{etoolbox}
Code for text:
\vspace{5 mm} Adds 5 millimeters of blank space vertically
\hspace{5 mm} Adds 5 millimeters of blank space horizontally
\text{words} Adds text in math mode (words vs. words)
\noindent Removes indent in paragraph
\uline{words} Underlines words (words)
\textbf{words} Makes text bold (words)
\textit{words} Makes text italicized (words)
\center Centers document
\begin{center} ... \end{center} Centers seleceted text
\doublespacing Makes document double-spaced
\textcirlced{1} Circles single letter or number 1
\fbox{words} Boxes text words
1
C
o
d
e
R
e
s
u
l
t
i
n
$
M
a
t
h
M
o
d
e
$
C
o
d
e
R
e
s
u
l
t
i
n
$
M
a
t
h
M
o
d
e
$
\
f
o
r
a
l
l
@
\
e
x
i
s
t
s
D
\
o
v
e
r
l
i
n
e
{
X
}
X
\
b
a
r
{
X
}
X
\
l
o
r
_
\
l
a
n
d
^
\
b
i
g
c
u
p
\
b
i
g
c
a
p
\
m
a
t
h
b
b
{
N
}
N
\
R
i
g
h
t
a
r
r
o
w
\
L
e
f
t
r
i
g
h
t
a
r
r
o
w
\
e
q
u
i
v
\
c
o
n
g
\
s
q
r
t
{
x
}
?
x
x
{
n
}
x
n
x
{
n
}
x
n
\
b
i
g
o
p
l
u
s
\
p
r
o
d
\
t
o
\
g
e
t
s
\
g
e
q
\
l
e
q
\
d
o
t
s
.
.
.
\
c
d
o
t
s
\
m
a
p
s
t
o
\
h
o
o
k
r
i
g
h
t
a
r
r
o
w
\
t
w
o
h
e
a
d
r
i
g
h
t
a
r
r
o
w
\
r
i
g
h
t
a
r
r
o
w
t
a
i
l
\
i
n
f
t
y
8
\
p
m
\
m
a
t
h
s
c
r
{
A
}
A
\
m
a
t
h
c
a
l
{
A
}
A
\
i
n
P
\
{
.
.
.
\
}
t
.
.
.
u
\
w
i
d
e
h
a
t
{
X
}
p
X
\
f
r
a
c
{
1
}
{
n
}
1n
\
l
i
m
\
l
i
m
i
t
s
{
n
\
t
o
\
i
n
f
t
y
}
l
i
m
n
8
\
s
u
b
s
e
t
e
q
\
n
e
q
\
v
a
r
n
o
t
h
i
n
g
\
e
p
s
i
l
o
n
\
v
a
r
e
p
s
i
l
o
n
\
p
h
i
\
v
a
r
p
h
i
\
q
e
d
\
b
l
a
c
k
s
q
u
a
r
e
\
t
h
e
r
e
f
o
r
e
6
\
s
m
a
l
l
s
e
t
m
i
n
u
s
\
m
o
d
k
m
o
d
k
\
g
c
d
(
n
,
m
)
=
1
g
c
d
p
n
,
m
q
1
\
f
r
a
c
{
\
t
e
x
t
r
m
{
d
}
}
{
\
t
e
x
t
r
m
{
d
}
x
}
d
d
x
\
i
n
t
\
l
i
m
i
t
s
{
a
}
{
b
}
f
(
x
)
\
t
e
x
t
r
m
{
d
}
x
ba
f
p
x
q
d
x
f
(
x
)
=
\
b
e
g
i
n
{
c
a
s
e
s
}
1
&
\
t
e
x
t
{
i
f
}
P
(
x
)
\
\
0
&
\
t
e
x
t
{
o
t
h
e
r
w
i
s
e
}
\
e
n
d
{
c
a
s
e
s
}
f
p
x
q
#
1
i
f
P
p
x
q
0
o
t
h
e
r
w
i
s
e
\
s
u
m
\
l
i
m
i
t
s
{
n
=
1
}
{
\
i
n
f
t
y
}
8
1
2
How to build tables:
\begin{tabular}{| c | c | c |} \hline
a & b & c \\ \hline
\end{tabular}
produces a b c
\begin{tabular}{| c || c } \hline
a & b \\
\end{tabular}
produces a b
\begin{tabular}{| c | c | c |} \hline
a & b & c \\ \hline
d & f & g \\ \hline
\end{tabular}
produces
a b c
d f g
\begin{tabular}{| c | c | c |} \hline
\multicolumn{3}{| c |}{A} \\ \hline
a & b & c \\ \hline
\end{tabular}
produces
A
a b c
Numbering Functions:
\begin{equation}
\label{trivialeq}
f(x) = f(x)
\end{equation}
Here we can talk about equation \ref{trivialeq}. We know $x = x$, because of \eqref{trivialeq}.
This code produces
fpxq fpxq (1)
Here we can talk about equation 1. We know x x, because of (1).
3
Theorem and Proof Environments:
\begin{theorem}
\label{Theorem}
This is where the Theorem goes.
\end{theorem}
\begin{proof}
We prove Theorem \ref{Theorem} here.
\end{proof}
\begin{theorem}
\label{othertheorem}
This is a second Theorem.
\end{theorem}
\begin{proof}
We prove Theorem \ref{othertheorem} here by referencing Theorem \ref{Theorem}.
\end{proof}
The previous code produces the following results.
Theorem 1. This is where the Theorem goes.
Proof. We prove Theorem 1 here.
Theorem 2. This is a second Theorem.
Proof. We prove Theorem 2 here by referencing Theorem 1.
4