summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/isomath/isomath-test.tex
blob: b640a4ff66be17c4c42b88aa79aaee98c703be97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
%isomath-test.tex: test and template for isomath.sty
% ===================================================
%
% Copyright © 2008 Günter Milde
% Released under the terms of the GNU General Public License (v. 2 or later)
%
% General settings
% ----------------
% ::

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
% \usepackage[utf8]{inputenc}
\usepackage{amsmath}
\pagestyle{empty}


% Customisation
% -------------
%
% Font packages
% ~~~~~~~~~~~~~
%
% (Auxiliary commands for package and option selection, so that the
% selections can be shown in the test sheet.)
%
% Uncomment the option(s) and package you want to test ::

\newcommand*{\fontpackageoptions}{%
% default%        with gfsneohellenic
% charter%        with mathdesign
% garamond%       with mathdesign
% utopia%         with mathdesign
}

\newcommand*{\fontpackage}{%
% ae,%             \sfdefault is cmss
% anttor,%         \sfdefault is cmss (use iwona)
% arev,%           normal and sans identic (also in math)
% beton,%          bitmap fonts
% concmath,%
% cmbright,%
% fourier,%        incompatible (uses private font encoding)
% gfsneohellenic,% (use option [default]) no bold
% hfoldsty,%       bitmap fonts
% iwona,%          sets cmss as sans font (use iwona)
% kpfonts,%        no sans serif italic
% kerkis,%         no bold math,
% lmodern,%        \sfdefault is cmss
% lucidabr,%       commercial, subset (no math) free as bitmap
% lxfonts,%        normal and sans identic,
% mathdesign,%     \sfdefault is cmss, provides roman and roman-bold in OML
% mathptmx,%       in mathnormal, Greek is larger than Latin!
% mbtimes,%        \sfdefault is cmss
% mathpazo,%       \sfdefault is cmss
% pxfonts,%        needs reuseMathAlphabets, no sans-serif
tgcursor,%	avoid bitmap tt
tgheros,%	avoid bitmap sf
% tgpagella,%     \sfdefault is cmss
tgtermes,%  	\sfdefault is cmss
% txfonts,%        no sans-serif
% zefonts%
}

% Isomath options
% ~~~~~~~~~~~~~~~
%
% Uncomment the option(s) you want to test ::

\newcommand*{\isomathoptions}{%
% reuseMathAlphabets,%
% OMLmathrm,%
% OMLmathbf,%
% OMLmathsf,%
OMLmathsfit,%
% OMLmathtt,%
% OMLmathsans,% backwards compatibility option alias
% rmdefault=qtxmia,% TeX Gyre Termes math with alternative glyphs
% sfdefault=cmbr,%   default
% sfdefault=iwona,%  Iwona sans (Greek glyphs too close to roman)
% sfdefault=fav,%    Arev sans (scale down (ca. 0.87))
% sfdefault=llcmss,% LX sans (glyphs too close to italic, scale down)
% scaled=0.875%      scaling for Arev (small letters)
}

% Load customisable packages
% --------------------------
% ::

\usepackage[\fontpackageoptions]{\fontpackage}
\usepackage[\isomathoptions]{isomath}


% Auxiliary definitions
% ---------------------
%
% Re-define \vec to comply with ISO 31::

\renewcommand*{\vec}{\vectorsym}

% Fall-back definition for \mathsfit::

\providecommand*{\mathsfit}[1]%
{\textsf{mathsfit not defined, use \texttt{OMLmathsfit} option}}


% use Arev as "heavy" sans serif font::

\DeclareFontShape{OML}{fav}{bx}{it}{<-> s * [0.875] zavmbi7m}{}
\SetMathAlphabet{\mathsfbfit}{bold}{OML}{fav}{bx}{it}


% Test sheet
% ----------
% ::

\begin{document}

\section*{Test the isomath Package}

% Print font package, isomath options, and resulting font families::

Fontpackage: [\fontpackageoptions]\{\fontpackage\}\\
Isomath: [\isomathoptions]\{isomath\}\\
Default font families:
\makeatletter
\begin{tabular}[t]{lrlrl}
 Text & serif      & \textsf{\rmdefault} &
        sans-serif & \textsf{\sfdefault}\\
 Math & serif      & \textsf{\isomath@rmdefault} &
        sans-serif & \textsf{\isomath@sfdefault}\\
\end{tabular}
\makeatother

% A teststring with Latin and Greek letters::

\newcommand{\teststring}{%
% capital Latin letters
A,B,C,
% capital Greek letters
\Gamma,\Delta,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,
% small Greek letters
\alpha,\beta,\pi,\nu,\omega,
% small Latin letters:
% compare \nu, \omega, v, and w
v,w,
% is there a true italic form of a and g?
a,g,
% digits
0,1,9
}

\subsection*{Math alphabets}

If there are other symbols in place of Greek letters in a math
alphabet, it uses T1 or OT1 font encoding instead of OML.

\begin{eqnarray*}
\mbox{mathnormal} &  & \teststring \\
\mbox{mathit} &  & \mathit{\teststring}\\
\mbox{mathrm} &  & \mathrm{\teststring}\\
\mbox{mathbf} &  & \mathbf{\teststring}\\
\mbox{mathsf} &  & \mathsf{\teststring}\\
\mbox{mathtt} &  & \mathtt{\teststring}
\end{eqnarray*}
 New alphabets bold-italic, sans-serif-italic, and sans-serif-bold-italic.
\begin{eqnarray*}
\mbox{mathbfit}     &  & \mathbfit{\teststring}\\
\mbox{mathsfit}     &  & \mathsfit{\teststring}\\
\mbox{mathsfbfit} &  & \mathsfbfit{\teststring}
\end{eqnarray*}
%
Do the math alphabets match?

$
\mathnormal  {a x \alpha \omega}
\mathbfit    {a x \alpha \omega}
\mathsfbfit{a x \alpha \omega}
\quad
\mathsfbfit{T C \Theta \Gamma}
\mathbfit    {T C \Theta \Gamma}
\mathnormal  {T C \Theta \Gamma}
$

\subsection*{Vector symbols}

Alphabetic symbols for vectors are boldface italic,
$\vec{\lambda}=\vec{e}_{1}\cdot\vec{a}$,
while numeric ones (e.g. the zero vector) are bold upright,
$\vec{a} + \vec{0} = \vec{a}$.

\subsection*{Matrix symbols}

Symbols for matrices are boldface italic, too:%
\footnote{However, matrix symbols are usually capital letters whereas vectors
are small ones. Exceptions are physical Quantities like the force
vector $\vec{F}$ or the electrical field $\vec{E}$.%
}
$\matrixsym{\Lambda}=\matrixsym{E}\cdot\matrixsym{A}.$


\subsection*{Tensor symbols}

Symbols for tensors are sans-serif bold italic,

\[
   \tensorsym{\alpha}  =  \tensorsym{e}\cdot\tensorsym{a}
   \quad \Longleftrightarrow \quad
   \alpha_{ijl}  =  e_{ijk}\cdot a_{kl}.
\]


The permittivity tensor describes the coupling of electric field and
displacement: \[
\vec{D}=\epsilon_{0}\tensorsym{\epsilon}_{\mathrm{r}}\vec{E}\]


\subsection*{Bold math version}

The ``bold'' math version is selected with the commands
\verb+\boldmath+ or \verb+\mathversion{bold}+
\boldmath


\begin{eqnarray*}
\mbox{mathnormal} &  & \teststring \\
\mbox{mathit} &  & \mathit{\teststring}\\
\mbox{mathrm} &  & \mathrm{\teststring}\\
\mbox{mathbf} &  & \mathbf{\teststring}\\
\mbox{mathsf} &  & \mathsf{\teststring}\\
\mbox{mathtt} &  & \mathtt{\teststring}
\end{eqnarray*}
 New alphabets bold-italic, sans-serif-italic, and sans-serif-bold-italic.
\begin{eqnarray*}
\mbox{mathbfit}     &  & \mathbfit{\teststring}\\
\mbox{mathsfit}     &  & \mathsfit{\teststring}\\
\mbox{mathsfbfit} &  & \mathsfbfit{\teststring}
\end{eqnarray*}
%
Do the math alphabets match?

$
\mathnormal  {a x \alpha \omega}
\mathbfit    {a x \alpha \omega}
\mathsfbfit{a x \alpha \omega}
\quad
\mathsfbfit{T C \Theta \Gamma}
\mathbfit    {T C \Theta \Gamma}
\mathnormal  {T C \Theta \Gamma}
$

\subsection*{Vector symbols}

Alphabetic symbols for vectors are boldface italic,
$\vec{\lambda}=\vec{e}_{1}\cdot\vec{a}$,
while numeric ones (e.g. the zero vector) are bold upright,
$\vec{a} + \vec{0} = \vec{a}$.


\subsection*{Matrix symbols}

Symbols for matrices are boldface italic, too:%
\footnote{However, matrix symbols are usually capital letters whereas vectors
are small ones. Exceptions are physical Quantities like the force
vector $\vec{F}$ or the electrical field $\vec{E}$.%
}
$\matrixsym{\Lambda}=\matrixsym{E}\cdot\matrixsym{A}.$


\subsection*{Tensor symbols}

Symbols for tensors are sans-serif bold italic,

\[
   \tensorsym{\alpha}  =  \tensorsym{e}\cdot\tensorsym{a}
   \quad \Longleftrightarrow \quad
   \alpha_{ijl}  =  e_{ijk}\cdot a_{kl}.
\]

The permittivity tensor describes the coupling of electric field and
displacement: \[
\vec{D}=\epsilon_{0}\tensorsym{\epsilon}_{\mathrm{r}}\vec{E}\]

\end{document}