introduction to latex (part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of...
TRANSCRIPT
![Page 1: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/1.jpg)
Where innovation starts
Introduction to LATEX (Part 3)
http://www.win.tue.nl/∼jknopper/latex/
October 2012 Jan Willem Knopper ([email protected])
![Page 2: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/2.jpg)
2/43
/ department of mathematics and computer science October 2012
9 Mathematical formulas 3
10 The amsmath package 30
11 Define your own commands 34
12 Theorem, proposition, lemma 41
Contents
![Page 3: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/3.jpg)
3/43
/ department of mathematics and computer science October 2012
In a text:For a rectangular triangle, we know from Pythagoras’ theoremthat a2
+ b2= c2 where a and b are the length of two sides
adjoining the straight angle while c is the length of the sideopposite the straight angle.
Compare this with:
For a rectangular triangle, we know from Pythagoras’ theoremthat a2+b2=c2 where a and b are the length of two sides adjoin-ing the straight angle while c is the length of the side oppositethe straight angle.
9 Mathematical formulas
![Page 4: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/4.jpg)
4/43
/ department of mathematics and computer science October 2012
Mathematical formulas are created as follows:
We get: $a^2+b^2=c^2$, $a^13$, $b_3$ or $b_13$
results in
We get: a2+ b2
= c2, a13, b3 or b13
![Page 5: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/5.jpg)
5/43
/ department of mathematics and computer science October 2012
Mathematical formulas are created as follows:
We get\[a^2+b^2=c^2, a^13, b_3 \mbox or b_13
\]
results inWe get
a2+ b2
= c2, a13, b3 or b13
![Page 6: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/6.jpg)
6/43
/ department of mathematics and computer science October 2012
We can also number our equations:
We get\beginequation \labelone
a^2+b^2=c^2, a^13, b_3 \mbox or b_13\endequation
results inWe get
a2+ b2
= c2, a13, b3 or b13 (1)
![Page 7: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/7.jpg)
7/43
/ department of mathematics and computer science October 2012
We can also have multiple equations:
\begineqnarrayx & = & r\sin \varphi \label11 \\y & = & r\cos \varphi \nonumber \\z & = & z \label33
\endeqnarray
x = r sinϕ (2)y = r cosϕz = z (3)
![Page 8: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/8.jpg)
8/43
/ department of mathematics and computer science October 2012
or without numbers:
\begineqnarray*x & = & r\sin \varphi \\[-0.2cm]y & = & r\cos \varphi \\z & = & z
\endeqnarray*
x = r sinϕy = r cosϕz = z
![Page 9: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/9.jpg)
9/43
/ department of mathematics and computer science October 2012
We have the following \documentclass options:
fleqn Displayed formulas will be flushed left
leqno Equation number on the left
\documentclass[11pt,a4paper,fleqn]article
![Page 10: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/10.jpg)
10/43
/ department of mathematics and computer science October 2012
Obviously we can do more:
$\fracnn+p^2 \int_0^\infty\sqrt[n]x^n-\sin y \textrmdx$
nn+p2
∫∞
0n√
xn − sin ydx
![Page 11: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/11.jpg)
11/43
/ department of mathematics and computer science October 2012
On the other hand:
\[\fracnn+p^2 \int_0^\infty\sqrt[n]x^n-\sin y\, \textrmdx\]
nn + p2
∫∞
0
n√
xn − sin y dx
![Page 12: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/12.jpg)
12/43
/ department of mathematics and computer science October 2012
and finally:
$\displaystyle \fracnn+p^2 \int_0^\infty\sqrt[n]x^n-\sin y\; \textrmdx$
nn + p2
∫∞
0
n√
xn − sin y dx
![Page 13: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/13.jpg)
13/43
/ department of mathematics and computer science October 2012
$x_1,...,x_n$ or $x_1+...+x_n$ versus$x_1, \ldots, x_n$ or $x_1+ \cdots + x_n$
x1, ..., xn or x1 + ...+ xn versus x1, . . . , xn or x1 + · · · + xn
Dots
![Page 14: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/14.jpg)
14/43
/ department of mathematics and computer science October 2012
$\sin x,\; sin x, \; \mboxsin x$
sin x, sinx, sinx
Functions
![Page 15: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/15.jpg)
15/43
/ department of mathematics and computer science October 2012
Chapter 8 of "The LaTeX Companion", updated for AMS-LaTeX version 1.2 (Sep. 1st 1997).Copyright © 1994-97 by Addison Wesley Longman, Inc. All rights reserved.
8.2 Fonts and Symbols in Formulae 225
a \hata a \acutea a \bara a \dota a \brevea
a \checka a \gravea ~a \veca a \ddota a \tildea
Table 8.1: Math mode accents (available in LATEX)
α \alpha β \beta γ \gamma δ \delta ε \epsilon
ε \varepsilon ζ \zeta η \eta θ \theta ϑ \vartheta
ι \iota κ \kappa λ \lambda µ \mu ν \nu
ξ \xi o o π \pi $ \varpi ρ \rho
% \varrho σ \sigma ς \varsigma τ \tau υ \upsilon
φ \phi ϕ \varphi χ \chi ψ \psi ω \omega
Γ \Gamma ∆ \Delta Θ \Theta Λ \Lambda Ξ \Xi
Π \Pi Σ \Sigma Υ \Upsilon Φ \Phi Ψ \Psi
Ω \Omega
Table 8.2: Greek letters (available in LATEX)
± \pm ∩ \cap \diamond ⊕ \oplus
∓ \mp ∪ \cup 4 \bigtriangleup \ominus
× \times ] \uplus 5 \bigtriangledown ⊗ \otimes
÷ \div u \sqcap / \triangleleft \oslash
∗ \ast t \sqcup . \triangleright \odot
? \star ∨ \vee \lhda © \bigcirc
\circ ∧ \wedge \rhda † \dagger
• \bullet \ \setminus \unlhda ‡ \ddagger
· \cdot o \wr \unrhda q \amalga Not predefined in NFSS. Use the latexsym or amssymb package.
Table 8.3: Binary operation symbols (available in LATEX)
≤ \leq,\le ≥ \geq,\ge ≡ \equiv |= \models ≺ \prec
\succ ∼ \sim ⊥ \perp \preceq \succeq
' \simeq | \mid \ll \gg \asymp
‖ \parallel ⊂ \subset ⊃ \supset ≈ \approx ./ \bowtie
⊆ \subseteq ⊇ \supseteq ∼= \cong 1 \Join < \sqsubset
= \sqsupset 6= \neq ^ \smile v \sqsubseteq w \sqsupseteq.= \doteq _ \frown ∈ \in 3 \ni ∝ \propto
= = ` \vdash a \dashv < < > >
Table 8.4: Relation symbols (available in LATEX)
Symbols
![Page 16: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/16.jpg)
16/43
/ department of mathematics and computer science October 2012
Chapter 8 of "The LaTeX Companion", updated for AMS-LaTeX version 1.2 (Sep. 1st 1997).Copyright © 1994-97 by Addison Wesley Longman, Inc. All rights reserved.
8.2 Fonts and Symbols in Formulae 225
a \hata a \acutea a \bara a \dota a \brevea
a \checka a \gravea ~a \veca a \ddota a \tildea
Table 8.1: Math mode accents (available in LATEX)
α \alpha β \beta γ \gamma δ \delta ε \epsilon
ε \varepsilon ζ \zeta η \eta θ \theta ϑ \vartheta
ι \iota κ \kappa λ \lambda µ \mu ν \nu
ξ \xi o o π \pi $ \varpi ρ \rho
% \varrho σ \sigma ς \varsigma τ \tau υ \upsilon
φ \phi ϕ \varphi χ \chi ψ \psi ω \omega
Γ \Gamma ∆ \Delta Θ \Theta Λ \Lambda Ξ \Xi
Π \Pi Σ \Sigma Υ \Upsilon Φ \Phi Ψ \Psi
Ω \Omega
Table 8.2: Greek letters (available in LATEX)
± \pm ∩ \cap \diamond ⊕ \oplus
∓ \mp ∪ \cup 4 \bigtriangleup \ominus
× \times ] \uplus 5 \bigtriangledown ⊗ \otimes
÷ \div u \sqcap / \triangleleft \oslash
∗ \ast t \sqcup . \triangleright \odot
? \star ∨ \vee \lhda © \bigcirc
\circ ∧ \wedge \rhda † \dagger
• \bullet \ \setminus \unlhda ‡ \ddagger
· \cdot o \wr \unrhda q \amalga Not predefined in NFSS. Use the latexsym or amssymb package.
Table 8.3: Binary operation symbols (available in LATEX)
≤ \leq,\le ≥ \geq,\ge ≡ \equiv |= \models ≺ \prec
\succ ∼ \sim ⊥ \perp \preceq \succeq
' \simeq | \mid \ll \gg \asymp
‖ \parallel ⊂ \subset ⊃ \supset ≈ \approx ./ \bowtie
⊆ \subseteq ⊇ \supseteq ∼= \cong 1 \Join < \sqsubset
= \sqsupset 6= \neq ^ \smile v \sqsubseteq w \sqsupseteq.= \doteq _ \frown ∈ \in 3 \ni ∝ \propto
= = ` \vdash a \dashv < < > >
Table 8.4: Relation symbols (available in LATEX)
Symbols
![Page 17: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/17.jpg)
17/43
/ department of mathematics and computer science October 2012
Chapter 8 of "The LaTeX Companion", updated for AMS-LaTeX version 1.2 (Sep. 1st 1997).Copyright © 1994-97 by Addison Wesley Longman, Inc. All rights reserved.
226 Higher Mathematics
← \leftarrow ←− \longleftarrow ↑ \uparrow
⇐ \Leftarrow ⇐= \Longleftarrow ⇑ \Uparrow
→ \rightarrow −→ \longrightarrow ↓ \downarrow
⇒ \Rightarrow =⇒ \Longrightarrow ⇓ \Downarrow
↔ \leftrightarrow ←→ \longleftrightarrow l \updownarrow
⇔ \Leftrightarrow ⇐⇒ \Longleftrightarrow m \Updownarrow
7→ \mapsto 7−→ \longmapsto \nearrow
← \hookleftarrow → \hookrightarrow \searrow
\leftharpoonup \rightharpoonup \swarrow
\leftharpoondown \rightharpoondown \nwarrow
Table 8.5: Arrow symbols (available in LATEX)
. . . \ldots · · · \cdots... \vdots
. . . \ddots ℵ \aleph
′ \prime ∀ \forall ∞ \infty ~ \hbar ∅ \emptyset
∃ \exists ∇ \nabla√
\surd 2 \Boxa 4 \triangle
3 \Diamonda ı \imath \jmath ` \ell ¬ \neg
> \top [ \flat \ \natural ] \sharp ℘ \wp
⊥ \bot ♣ \clubsuit ♦ \diamondsuit ♥ \heartsuit ♠ \spadesuit
0 \mhoa < \Re = \Im ∠ \angle ∂ \partiala Not predefined in NFSS. Use the latexsym or amssymb package.
Table 8.6: Miscellaneous symbols (available in LATEX)
∑\sum
∏\prod
∐\coprod
∫\int
∮\oint⋂
\bigcap⋃
\bigcup⊔
\bigsqcup∨
\bigvee∧
\bigwedge⊙\bigodot
⊗\bigotimes
⊕\bigoplus
⊎\biguplus
Table 8.7: Variable-sized symbols (available in LATEX)
\arccos \cos \csc \exp \ker \limsup \min \sinh
\arcsin \cosh \deg \gcd \lg \ln \Pr \sup
\arctan \cot \det \hom \lim \log \sec \tan
\arg \coth \dim \inf \liminf \max \sin \tanh
Table 8.8: Log-like symbols (available in LATEX)
↑ \uparrow ⇑ \Uparrow ↓ \downarrow ⇓ \Downarrow
\ \ l \updownarrow m \Updownarrow
b \lfloor c \rfloor d \lceil e \rceil
〈 \langle 〉 \rangle / / \ \backslash
| | ‖ \|
Table 8.9: Delimiters (available in LATEX)
Symbols
![Page 18: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/18.jpg)
18/43
/ department of mathematics and computer science October 2012
Chapter 8 of "The LaTeX Companion", updated for AMS-LaTeX version 1.2 (Sep. 1st 1997).Copyright © 1994-97 by Addison Wesley Longman, Inc. All rights reserved.
226 Higher Mathematics
← \leftarrow ←− \longleftarrow ↑ \uparrow
⇐ \Leftarrow ⇐= \Longleftarrow ⇑ \Uparrow
→ \rightarrow −→ \longrightarrow ↓ \downarrow
⇒ \Rightarrow =⇒ \Longrightarrow ⇓ \Downarrow
↔ \leftrightarrow ←→ \longleftrightarrow l \updownarrow
⇔ \Leftrightarrow ⇐⇒ \Longleftrightarrow m \Updownarrow
7→ \mapsto 7−→ \longmapsto \nearrow
← \hookleftarrow → \hookrightarrow \searrow
\leftharpoonup \rightharpoonup \swarrow
\leftharpoondown \rightharpoondown \nwarrow
Table 8.5: Arrow symbols (available in LATEX)
. . . \ldots · · · \cdots... \vdots
. . . \ddots ℵ \aleph
′ \prime ∀ \forall ∞ \infty ~ \hbar ∅ \emptyset
∃ \exists ∇ \nabla√
\surd 2 \Boxa 4 \triangle
3 \Diamonda ı \imath \jmath ` \ell ¬ \neg
> \top [ \flat \ \natural ] \sharp ℘ \wp
⊥ \bot ♣ \clubsuit ♦ \diamondsuit ♥ \heartsuit ♠ \spadesuit
0 \mhoa < \Re = \Im ∠ \angle ∂ \partiala Not predefined in NFSS. Use the latexsym or amssymb package.
Table 8.6: Miscellaneous symbols (available in LATEX)
∑\sum
∏\prod
∐\coprod
∫\int
∮\oint⋂
\bigcap⋃
\bigcup⊔
\bigsqcup∨
\bigvee∧
\bigwedge⊙\bigodot
⊗\bigotimes
⊕\bigoplus
⊎\biguplus
Table 8.7: Variable-sized symbols (available in LATEX)
\arccos \cos \csc \exp \ker \limsup \min \sinh
\arcsin \cosh \deg \gcd \lg \ln \Pr \sup
\arctan \cot \det \hom \lim \log \sec \tan
\arg \coth \dim \inf \liminf \max \sin \tanh
Table 8.8: Log-like symbols (available in LATEX)
↑ \uparrow ⇑ \Uparrow ↓ \downarrow ⇓ \Downarrow
\ \ l \updownarrow m \Updownarrow
b \lfloor c \rfloor d \lceil e \rceil
〈 \langle 〉 \rangle / / \ \backslash
| | ‖ \|
Table 8.9: Delimiters (available in LATEX)
Symbols
![Page 19: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/19.jpg)
19/43
/ department of mathematics and computer science October 2012
Several packages exist that extend the number of available symbols:
\usepackageamssymb
Symbols
![Page 20: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/20.jpg)
20/43
/ department of mathematics and computer science October 2012
Chapter 8 of "The LaTeX Companion", updated for AMS-LaTeX version 1.2 (Sep. 1st 1997).Copyright © 1994-97 by Addison Wesley Longman, Inc. All rights reserved.
228 Higher Mathematics
5 \leqq 6 \leqslant 0 \eqslantless
. \lesssim / \lessapprox u \approxeq
l \lessdot ≪ \lll,\llless ≶ \lessgtr
Q \lesseqgtr S \lesseqqgtr + \doteqdot,\Doteq
: \risingdotseq ; \fallingdotseq v \backsim
w \backsimeq j \subseteqq b \Subset
< \sqsubset 4 \preccurlyeq 2 \curlyeqprec
- \precsim w \precapprox C \vartriangleleft
E \trianglelefteq \vDash \Vvdash
` \smallsmile a \smallfrown l \bumpeq
m \Bumpeq = \geqq > \geqslant
1 \eqslantgtr & \gtrsim ' \gtrapprox
m \gtrdot ≫ \ggg,\gggtr ≷ \gtrless
R \gtreqless T \gtreqqless P \eqcirc
$ \circeq , \triangleq ∼ \thicksim
≈ \thickapprox k \supseteqq c \Supset
= \sqsupset < \succcurlyeq 3 \curlyeqsucc
% \succsim v \succapprox B \vartriangleright
D \trianglerighteq \Vdash p \shortmid
q \shortparallel G \between t \pitchfork
∝ \varpropto J \blacktriangleleft ∴ \therefore
\backepsilon I \blacktriangleright ∵ \because
Table 8.16: AMS binary relations (available with amssymb package)
≮ \nless \nleq \nleqslant
\nleqq \lneq \lneqq
\lvertneqq \lnsim \lnapprox
⊀ \nprec \npreceq \precnsim
\precnapprox \nsim . \nshortmid
- \nmid 0 \nvdash 2 \nvDash
6 \ntriangleleft 5 \ntrianglelefteq * \nsubseteq
( \subsetneq \varsubsetneq $ \subsetneqq
& \varsubsetneqq ≯ \ngtr \ngeq
\ngeqslant \ngeqq \gneq
\gneqq \gvertneqq \gnsim
\gnapprox \nsucc \nsucceq
\succnsim \succnapprox \ncong
/ \nshortparallel ∦ \nparallel 2 \nvDash
3 \nVDash 7 \ntriangleright 4 \ntrianglerighteq
+ \nsupseteq # \nsupseteqq ) \supsetneq
! \varsupsetneq % \supsetneqq ' \varsupsetneqq
Table 8.17: AMS negated binary relations (available with amssymb package)
Symbols
![Page 21: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/21.jpg)
21/43
/ department of mathematics and computer science October 2012
$\displaystyle (\fracn\fracnn+p+1)+ \left( \fracn\tfracnn+p+1 \right)$
(n
nn+p + 1
)+
(n
nn+p + 1
)
Brackets
![Page 22: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/22.jpg)
22/43
/ department of mathematics and computer science October 2012
$\left\ T^t^2 \right]\hspace1cm\left( \frac\sin x1+\sin^2 x \right.$
T t2] (
sin x1+sin2 x
Brackets
![Page 23: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/23.jpg)
23/43
/ department of mathematics and computer science October 2012
$\left( \beginarrayc|ca_11 & a_12 \\ \hlinea_21 & a_22 \endarray \right)$(
a11 a12a21 a22
)
Arrays in mathematics
![Page 24: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/24.jpg)
24/43
/ department of mathematics and computer science October 2012
$\mathrm\sin x + \phi^2$$\mathtt\sin x + \phi^2$$\mathbf\sin x + \phi^2$$\mathsf\sin x + \phi^2$$\mathit\sin x + \phi^2$$\mathcal\sin x + \phi^2$
sin x+ φ2
sinx+ φ2
sin x+ φ2
sin x+ φ2
sin x + φ2
sin x+ φ2
Fonts in mathematics
![Page 25: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/25.jpg)
25/43
/ department of mathematics and computer science October 2012
\boldmath $x+\phi$$\mathbfx+\phi$
x + φ
x+ φ
Fonts in mathematics
![Page 26: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/26.jpg)
26/43
/ department of mathematics and computer science October 2012
\boldmath $x+\phi$$\boldmath x+\phi$
x + φ
x + φ
Fonts in mathematics
![Page 27: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/27.jpg)
27/43
/ department of mathematics and computer science October 2012
Using \usepackagebm we can create bold symbols:
\boldmath $x+\phi$$\bmx+\bm\phi$
x + φ
x + φ
Fonts in mathematics
![Page 28: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/28.jpg)
28/43
/ department of mathematics and computer science October 2012
\small $x+\phi$\large $x+\phi$
x + φx + φ
Font size in mathematics
![Page 29: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/29.jpg)
29/43
/ department of mathematics and computer science October 2012
$x + \scriptstyle \phi +\scriptscriptstyle \phi$
x + φ + φ
![Page 30: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/30.jpg)
30/43
/ department of mathematics and computer science October 2012
A major extension to standard mathematics is provided by the amsmath pack-age:
\usepackageamsmath
An example:
\numberwithinequationsection
10 The amsmath package
![Page 31: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/31.jpg)
31/43
/ department of mathematics and computer science October 2012
$x(t) = \begincases1 & t=0 \\0 & t\neq 0
\endcases\hspace2cm\binomnm\hspace1cm\displaystyle \binomnm$
x(t) =
1 t = 00 t 6= 0
(nm
) (nm
)
The amsmath package
![Page 32: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/32.jpg)
32/43
/ department of mathematics and computer science October 2012
$\beginpmatrixa_11 & a_12 \\ a_21 & a_22
\endpmatrix\quad\boxed\iiint_V\, f(x,y,z)\,
\textrmdx\textrmdy\textrmdz$ (
a11 a12a21 a22
) ∫∫∫V
f (x, y, z) dxdydz
The amsmath package
![Page 33: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/33.jpg)
33/43
/ department of mathematics and computer science October 2012
\beginequation\beginaligned
x(t) &= \sin t \\y(t) &= \cos t
\endaligned\endequation
x(t) = sin ty(t) = cos t
(4)
The amsmath package
![Page 34: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/34.jpg)
34/43
/ department of mathematics and computer science October 2012
\newcommand\xytwox_\mathbfy^2\newcommand\xy[1]x_\mathbfy^#1
$\xytwo \hspace*1cm \xy3$
x2y x3
y
11 Define your own commands
![Page 35: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/35.jpg)
35/43
/ department of mathematics and computer science October 2012
\renewcommand\xy[1][2]x_\mathbfy^#1
$\xy \hspace*1cm \xy[3]$
x2y x3
y
Define your own commands
![Page 36: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/36.jpg)
36/43
/ department of mathematics and computer science October 2012
\providecommand\xy[1][2]x_\mathbfy^#1
$\xy \hspace*1cm \xy[3]$
x2y x3
y
Define your own commands
![Page 37: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/37.jpg)
37/43
/ department of mathematics and computer science October 2012
When using the package amsmath we can also define new functions:
\DeclareMathOperator\sincsinc$\sinc x$, $\sin x$
sinc x , sin x
![Page 38: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/38.jpg)
38/43
/ department of mathematics and computer science October 2012
When using the package amsmath we can also define new functions:
\DeclareMathOperator*\suppsupp$\sinc^2 x$, $\supp_t\rightarrow\infty x(t)$
sinc2 x , suppt→∞ x(t)
![Page 39: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/39.jpg)
38/43
/ department of mathematics and computer science October 2012
When using the package amsmath we can also define new functions:
\DeclareMathOperator*\suppsupp$\sinc^2 x$, $\supp_t\rightarrow\infty x(t)$
sinc2 x , suppt→∞ x(t)
\DeclareMathOperator*\suppsupp$\displaystyle\supp_t\rightarrow\infty x(t)$
suppt→∞
x(t)
![Page 40: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/40.jpg)
39/43
/ department of mathematics and computer science October 2012
Adopting standard LATEX is often more involved:
\makeatletter\renewcommand\thesection
Appendix \@Alph\c@section\makeatother
\renewcommand\theenumi[\textit\romanenumi]
\renewcommand\labelenumi\textbf(\romanenumi)
![Page 41: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/41.jpg)
40/43
/ department of mathematics and computer science October 2012
\beginenumerate\item \labelone One\item Two\endenumerateSee \refone
(i) One
(ii) Two
See [i ]
![Page 42: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/42.jpg)
41/43
/ department of mathematics and computer science October 2012
Preamble:
\newtheoremtheoremTheorem[section]\newtheoremlemma[theorem]Lemma\newtheoremdefinitionDefinition
Text:
\begintheorem \labelTwoTada
\endtheorem
12 Theorem, proposition, lemma
![Page 43: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/43.jpg)
42/43
/ department of mathematics and computer science October 2012
Theorem 12.1 Tada
Definition 1 Todo
Lemma 12.2 Todo
![Page 44: Introduction to LATEX (Part 3)jknopper/latex/part3-slides.pdf · 2012. 10. 11. · department of mathematics and computer scienceOctober 2012 We can also number our equations: We](https://reader036.vdocuments.site/reader036/viewer/2022071513/61333c17dfd10f4dd73af4df/html5/thumbnails/44.jpg)
43/43
/ department of mathematics and computer science October 2012
\usepackagetheorem
\theorembodyfont\upshape\theoremheaderfont\slshape\bfseries\theoremstylebreak
\newtheoremremarkRemark
Remark 1Tidi