Debian Codegraph @

texmf-dist/doc/latex/psnfss/test/mathtest.tex

raw
1 % This file is part of PSNFSS 9.2
2
3 \listfiles
4 \documentclass{article}
5 \usepackage{geometry}
6 %\pagestyle{empty}
7 \usepackage[sc,osf,slantedGreek]{mathpazo}
8 \linespread{1.08} % Palatino needs more leading
9 \usepackage[scaled]{helvet}
10 \usepackage{courier}
11 \parindent=0pt
12 \pagestyle{empty}
13 \normalfont
14 \usepackage[T1]{fontenc}
15
16 \begin{document}
17
18 \begin{center}
19 \scshape\Large Sebastian's math test
20 \end{center}
21 The default math mode font is $Math\ Italic$. This should not be
22 confused with ordinary \emph{Text Italic} -- notice the different spacing\,!
23 \verb|\mathbf| produces bold roman letters: $ \mathbf{abcABC} $.
24 If you wish to embolden complete formulas,
25 use the \verb|\boldmath| command \emph{before} going into math mode.
26 This changes the default math fonts to bold.
27
28 \begin{tabular}{ll}
29 \texttt{normal} & $ x = 2\pi \Rightarrow x \simeq 6.28 $\\
30 \texttt{mathbf} & $\mathbf{x} = 2\pi \Rightarrow \mathbf{x} \simeq 6.28 $\\
31 \texttt{boldmath} & {\boldmath $x = \mathbf{2}\pi \Rightarrow x
32 \simeq{\mathbf{6.28}} $}\\
33 \end{tabular}
34 \smallskip
35
36 Greek is available in upper and lower case:
37 $\alpha,\beta \dots \Omega$, and there are special
38 symbols such as $ \hbar$.
39 The following letters should be upright: $\upGamma, \upDelta\dots \upOmega$.
40 Digits in formulas $1, 2, 3\dots$ may differ from those in text: 4, 5, 6\dots
41
42 There is a calligraphic alphabet \verb|\mathcal| for upper case letters
43 $ \mathcal{ABCDE}\dots $, and there are letters for number sets: $\mathbb{A\dots Z} $,
44 which are produced using \verb|\mathbb|.
45
46 \begin{equation}
47 \sigma(t)=\frac{1}{\sqrt{2\pi}}
48 \int^t_0 e^{-x^2/2} dx
49 \end{equation}
50
51 \begin{equation}
52 \prod_{j\geq 0}
53 \left(\sum_{k\geq 0}a_{jk} z^k\right)
54 = \sum_{k\geq 0} z^n
55 \left( \sum_{{k_0,k_1,\ldots\geq 0}
56 \atop{k_0+k_1+\ldots=n} }
57 a{_0k_0}a_{1k_1}\ldots \right)
58 \end{equation}
59
60 \begin{equation}
61 \pi(n) = \sum_{m=2}^{n}
62 \left\lfloor \left(\sum_{k=1}^{m-1}
63 \lfloor(m/k)/\lceil m/k\rceil
64 \rfloor \right)^{-1}
65 \right\rfloor
66 \end{equation}
67
68 \begin{equation}
69 \{\underbrace{%
70 \overbrace{\mathstrut a,\ldots,a}^{k\ a's},
71 \overbrace{\mathstrut b,\ldots,b}^{l\ b's}}
72 _{k+l\ \mathrm{elements}} \}
73 \end{equation}
74
75 \[
76 \mbox{W}^+\
77 \begin{array}{l}
78 \nearrow\raise5pt\hbox{$\mu^+ + \nu_{\mu}$}\\
79 \rightarrow \pi^+ +\pi^0 \\[5pt]
80 \rightarrow \kappa^+ +\pi^0 \\
81 \searrow\lower5pt\hbox{$\mathrm{e}^+
82 +\nu_{\scriptstyle\mathrm{e}}$}
83 \end{array}
84 \]
85
86 \[
87 \frac{\pm
88 \left|\begin{array}{ccc}
89 x_1-x_2 & y_1-y_2 & z_1-z_2 \\
90 l_1 & m_1 & n_1 \\
91 l_2 & m_2 & n_2
92 \end{array}\right|}{
93 \sqrt{\left|\begin{array}{cc}l_1&m_1\\
94 l_2&m_2\end{array}\right|^2
95 + \left|\begin{array}{cc}m_1&n_1\\
96 n_1&l_1\end{array}\right|^2
97 + \left|\begin{array}{cc}m_2&n_2\\
98 n_2&l_2\end{array}\right|^2}}
99 \]
100
101 Mathematical accents:
102 \[
103 \mbox{ acute=}\acute{a}
104 \mbox{ grave=}\grave{a}
105 \mbox{ ddot=}\ddot {a}
106 \mbox{ tilde=}\tilde{a}
107 \mbox{ bar=}\bar {a}
108 \mbox{ breve=}\breve{a}
109 \mbox{ check=}\check{a}
110 \mbox{ hat=}\hat {a}
111 \mbox{ vec=}\vec {a}
112 \mbox{ dot=}\dot {a}
113 \]
114
115
116 \end{document}