Beruflich Dokumente
Kultur Dokumente
What is LATEX?
Text decorations
Lists
Equations
Equations are mathematical expressions that are given their
own line and are centered on the page. These are usually used
for important equations that deserve to be showcased on their
own line or for large equations that cannot fit inline. To
produce an inline expression, place the mathematical
expression between the symbols \[ and \]. Typing
\[x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\] yields
p
b b2 4ac
x=
.
2a
Displaystyle
To get full-sized inline mathematical expressions use
\displaystyle. Use this sparingly. Typing
I want this $\displaystyle \sum_{n=1}^{\infty}
\frac{1}{n}$, not this $\sum_{n=1}^{\infty}
\frac{1}{n}$. yields
1
X
P
1
1
I want this
, not this 1
n=1 n .
n
n=1
Images
You can put images (pdf, png, jpg, or gif) in your document.
They need to be in the same location as your .tex file when
you compile the document. Omit [width=.5in] if you want
the image to be full-sized.
\begin{figure}[ht]
\includegraphics[width=.5in]{imagename.jpg}
\caption{The (optional) caption goes here.}
\end{figure}
ordered list
like\\
this.
This compiles
like
this.
Use \noindent to prevent a paragraph from indenting.
Comments
Use % to create a comment. Nothing on the line after the % will
be typeset. $f(x)=\sin(x)$ %this is the sine function
yields f (x) = sin(x)
Delimiters
description
command
output
parentheses
(x)
(x)
brackets
[x]
[x]
curly braces \{x\}
{x}
To make your delimiters large enough to fit the content, use
them together with \right and \left. For example,
\left\{\sin\left(\frac{1}{n}\right)\right\}_{n}^
{\infty}
produces
1
1
sin
.
n
n
Curly braces are non-printing characters that are used to
gather text that has more than one character. Observe the
dierences between the four expressions x^2, x^{2}, x^2t,
x^{2t} when typeset: x2 , x2 , x2 t, x2t .
\begin{enumerate}
\item
Thing 1
\item
Thing 2
\end{enumerate}
1. Thing 1
2. Thing 2
command
+
\pm
\times
\cdot
\div
/
\oplus
\otimes
=
\ne
<
>
\le
\ge
\approx
\infty
1,2,3,\ldots
1+2+3+\cdots
\frac{a}{b}
\sqrt{x}
\sqrt[n]{x}
a^b
a_b
|x|
\ln(x)
\log_{a}b
e^x=\exp(x)
\deg(f)
output
+
=
6
=
<
>
1
1, 2, 3, . . .
1 + 2 + 3 +
a
b
p
x
p
n
x
ab
ab
|x|
ln(x)
loga b
ex = exp(x)
deg(f )
Functions
description
maps to
composition
piecewise
function
Calculus
command
\to
\circ
|x|=
\begin{cases}
x & x\ge 0\\
-x & x<0
\end{cases}
output
!
|x| =
x
x
x 0
x<0
output
"
!
'
command
\tau
\theta
\upsilon
\xi
\zeta
\Delta
\Gamma
\Lambda
\Omega
\Phi
\Pi
\Psi
\Sigma
\Theta
\Upsilon
\Xi
\aleph
\beth
\daleth
\gimel
output
derivative
\frac{df}{dx}
derivative
\f
\frac{\partial f}
{\partial x}
\int
double integral
\iint
triple integral
\iiint
limits
\lim_{x\to \infty}
summation
\sum_{n=1}^{\infty}a_n
big union
\bigcup_{n=1}^{10}A_n
\bigcap_{n=1}^{10}A_n
\emptyset
\mathcal{P}
\min
\max
\sup
\inf
\limsup
\liminf
\overline{A}
lim
x!1
1
X
an
n=1
1
Y
\prod_{n=1}^{\infty}a_n
description
not
and
or
if...then
if and only if
logical equivalence
therefore
there exists
for all
implies
equivalent
output
{1, 2, 3}
2
62
an
[
\
10
[
n=1
10
\
description
vector
vector
norm
matrix
An
An
;
P
min
max
sup
inf
lim sup
lim inf
A
command
\sim
\land
\lor
\to
\leftrightarrow
\equiv
\therefore
\exists
\forall
\Rightarrow
\Leftrightarrow
output
^
_
!
$
)
9
8
)
,
determinant
determinant
trace
dimension
command
\vec{v}
\mathbf{v}
||\vec{v}||
\left[
\begin{array}{ccc}
1 & 2 & 3 \\
4 & 5 & 6\\
7 & 8 & 0
\end{array}
\right]
\left|
\begin{array}{ccc}
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 0
\end{array}
\right|
\det(A)
\operatorname{tr}(A)
\dim(V)
output
~v
v
||~v ||
2
1
4 4
7
1
4
7
description
divides
does not divide
div
mod
greatest common divisor
ceiling
floor
command
|
\not |
\operatorname{div}
\mod
\gcd
\lceil x \rceil
\lfloor x \rfloor
command
\angle ABC
90^{\circ}
\triangle ABC
\overline{AB}
\sin
\cos
\tan
\cot
\sec
\csc
\arcsin
\arccos
\arctan
output
|
6|
div
mod
gcd
dxe
bxc
output
\ABC
90
4ABC
AB
sin
cos
tan
cot
sec
csc
arcsin
arccos
arctan
Linear algebra
n=1
empty set
power set
minimum
maximum
supremum
infimum
limit superior
limit inferior
closure
ZZZ
Logic
@
i
k
j
command
\{1,2,3\}
\in
\not\in
\subset
\subseteq
\not\subset
\supset
\supseteq
\cup
\cap
ZZ
n=1
description
set brackets
element of
not an element of
subset of
subset of
not a subset of
contains
contains
union
intersection
output
df
dx
f0
@f
Z@x
integral
product
Set theory
big intersection
command
partial derivative
Number theory
description
2
5
8
2
5
8
det(A)
tr(A)
dim(V )
3
3
6 5
0
3
6
0
hyphen
X-ray
en-dash
pp. 5--15
em-dash
Yes---or no?
surrounded by dollar
output
$
%
&
#
\
X-ray
pp. 515
Yesor no?
Resources
TUG: The TEX Users Group
CTAN: The Comprehensive TEX Archive Network
Handwriting-to-LATEX sites: Detexify, WebEquation
The Comprehensive LATEX Symbol List
The Not So Short Introduction to LATEX 2"
Software that generates LATEX code: Mathematica, Maple,
GeoGebra
LATEX for the Mac: MacTEX
LATEX for the PC: TEXnicCenter and MiKTEX
LATEX online: ShareLaTeX, WriteLaTeX
LATEX integration with Microsoft Office, Apple iWork, etc:
MathType, LATEXiT
Dave Richeson, Dickinson College, http://divisbyzero.com/