Sunteți pe pagina 1din 11

Typesetting

Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
1/11
Typesetting Maths in L
A
T
E
X
PsiPhiETC
psiphietc@gmail.com
January 11, 2011
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
2/11
Invoking Maths Mode
In-text math, z = xy or z = xy or
l = mn
Displayed math,
z = xy
a = bc
p = qr (1)
1 In-text math,
2 $z=xy$ or
3 \( z=xy\) or
4 \begin{math}
5 l=mn
6 \end{math}
7 \\ Displayed math,
8 \begin{displaymath}
9 z=xy
10 \end{displaymath}
11
12 \[a=bc\]
13
14 \begin{equation}
15 p=qr
16 \end{equation}
$ xyz $ , \( xyz \), math, \[ xyz \], displaymath, equation
T
E
X Err Msg: I have just deleted some text, as you asked.
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
3/11
Common Structures
x
2
+ y
2
= z
3
2
m
n
3

25
x . . . y
u v
w
.
.
.
t
.
.
.
1 \[x{2}+y_{2}=z_{2}{3}
\]
2 \[ \frac{m}{n} \]
3 \[ \sqrt[3]{25} \]
4 \[ x \ldots y \]
5 \[ u \cdots v \]
6 \[ w \ddots t \]
7 \[ \vdots \]
superscript, subscript, fraction, sqrt, ldots, cdots, ddots, vdots
T
E
X Err Msg: You can now delete more, or insert, or whatever.
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
4/11
Math Symbols

T

/

/
_ _
sin exp
1 $
2 \omega \Omega \\
3 \mathcal{F} \\
4 \pm \times \circ \cdot \
oplus \odot \dagger \
ddagger \\
5 \leq \gg \in \ni \notin \\
6 \leftarrow \Rightarrow \\
7 \prime \nabla \forall \
partial \infty \
triangle \\
8 \sum \int \oint \\
9 \sin \exp
10 $
Greek Letters: lowercase, uppercase, mathcal, arrows
T
E
X Err Msg: Sorry, I dont know how to help in this situation.
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
5/11
Arrays
m
11
m
12
m
13
m
21
m
22
m
23
m
31
m
32
m
33
1 \[
2 \begin{array}{lrr}
3 m_{11} & m_{12} & m_{13}
\\
4 m_{21} & m_{22} & m_{23}
\\
5 m_{31} & m_{32} & m_{33}
6 \end{array}
7 \]
array, number of columns, l, c, r, column separator (&), row separator
(\\). No & after last item in a row and no \\ after last row.
T
E
X Err Msg: Maybe you should try asking a human?
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
6/11
Delimiters
(a), [b], c, d, [e[, |f |
f (x) =
_
x
1 + x
_
f (x) =
_
x if x 0
x otherwise
1 $ (a), [b], \{c\}, \langle d \
rangle, | e| , \| f \| $
2 \[
3 f(x)= \left (
4 \frac{x}{1+x}
5 \right\}
6 \]
7
8 \[
9 f(x)= \left \{
10 \begin{array}{cl}
11 -x & \mbox{if $x \leq 0$} \\
12 x & \mbox{otherwise}
13 \end{array}
14 \right.
15 \]
Logically similar to parenthesis, left, right, noright, mbox
T
E
XErr Msg: Sorry, I already gave what help I could. . .
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
7/11
Putting one thing over another
x, y
..
abc, math
. .

a,

b,

c,

d,

e,

def
1 $
2 \overline{x}, \underline{y} \\
3 \overbrace{abc}, \underbrace{
math} \\
4 \hat{a}, \tilde{b}, \bar{c} ,\
vec{d}, \dot{e}, \ddot{f} \\
5 \stackrel{\rightarrow}{def}
6 $
overline, underbrace, hat, tilde, vec, bar, dot, ddot, stackrel
T
E
XErr Msg: An error might have occurred before I noticed any prob-
lems.
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
8/11
Maths Style and Spacing
A, B, (
xy, x y, xy, x y, x y, x y
1 $ \mathit{A}, \mathbf{B},
\mathcal{C}$
2 \[
3 x y, x \, y,
x \! y, x \: y, x \; y,
x \ y
4 \]
mathit, mathcal, mathbf, thinspace, negative this space, medium
space, thick space, interword space
T
E
X Err Msg: This isnt an error message; Im just showing some-
thing. . .
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
9/11
amsmath I : alignat (Multiline Equations)
x = y, u = v
= z, (qed) (2)
1 \usepackage{amsmath}
2 \begin{document}
3 \begin{alignat}{2}
4 x&=y, &\quad& u=v\nonumber\\
5 &=z, & &\text{(qed)}
6 \end{alignat}
7 \end{document}
alignat, quad, nonumber, & (alignment specier within column), &
(column separator)
T
E
X Err Msg: One of your faux pas seems to have wounded me
deeply. . .
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
10/11
amsmath II : matrix
/ =
_

_
a
11
a
12

a
21
a
22

.
.
.
.
.
.
.
.
.
_

_
(3)
1 \begin{equation}
2 \mathcal{A} = \left [
3 \begin{matrix}
4 a_{11} & a_{12} & \cdots
\\
5 a_{21} & a_{22} & \cdots
\\
6 \vdots & \vdots & \ddots
7 \end{matrix}
8 \right ]
9 \end{equation}
equation, matrix left, right, cdots, vdots, ddots
T
E
X Err Msg: A funny symbol that I cant read has just been input.
Typesetting
Maths in
LAT
E
X
Math Mode
Com Struct
Symbols
Arrays
Delimiters
Stack
Style
amsmath I
amsmath II
More. . .
11/11
Believe it or not! Its Possible in T
E
X !
Theorem 1. The following is a commutative diagram of pointed hermitian modules.
(M, h, z)

=
))

1
//
(M
1
, h
1
, 0)

1d

=
))
(M

, h

, z

) H(
k
)

1
//
(M

1
, h

1
, 0) H(
k
1
)

1d

(M
0
, h
0
, z
0
)

=
))

0d
//
(M
d
, h
d
, 0)

=
))
(M

0
, h

0
, z

0
) H(
k
0
)

0
id

0d
//
(M

d
, h

d
, 0) H(
k
d
)

d
id

(M
0
, h
0
, z
0
)

=
))

0d
//
(M
d
, h
d
, 0)

=
))
(L, , x) H(
k
0
)

0d
//
(L
d
,
d
, 0) H(
k
d
)

S-ar putea să vă placă și