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
|
% 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,english]{article}
\usepackage[LGR,T1]{fontenc}
% \usepackage[T1]{fontenc}
% \usepackage[utf8]{inputenc}
\pagestyle{empty}
% Customisation
% -------------------
%
% Font packages: Uncomment the package you want to test
% (cmss maps to roman for italic and bold-italic OML version) ::
\newcommand*{\fontpackage}{}
\renewcommand*{\fontpackage}{%
% ae% \sfdefault is cmss (use cmbr)
% anttor% \sfdefault is cmss (use iwona)
% arev% normal and sans identic (also in math)
% beton% bitmap fonts
% concmath%
% cmbright% keeps \mathrm and \mathbf as CM (roman)
% 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, needs reuseMathAlphabets
% kerkis% no bold math, no sans serif (use iwona or arev?)
% cmlgc% \sfdefault is cmss (use cmbr)
% lmodern% \sfdefault is cmss (use cmbr)
% lucidabr% commercial, subset (no math) free as bitmap
% lxfonts% normal and sans identic,
mathdesign% \sfdefault is cmss (use cmbr?) provides roman and roman bold in OML :-)
% mbtimes% \sfdefault is cmss (use cmbr?)
% mathpazo% \sfdefault is cmss (use cmbr?)
% pxfonts% needs reuseMathAlphabets, no sans-serif
% tgpagella,qpxmath% \sfdefault is cmss (use cmbr?)
% tgtermes,qtxmath% \sfdefault is cmss (use cmbr?)
% txfonts% no sans-serif
% zefonts% use with sfdefault=cmbr
}
% Options
% -------
% Uncomment the line(s) with the required options!
% Options for the font package call::
\newcommand*{\fontpackageoptions}{}
\renewcommand*{\fontpackageoptions}{%
% default% {gfsneohellenic}
% charter% {mathdesign} %
% garamond% {mathdesign} % no (free) bold, \sfdefault is cmss (use cmbr?)
utopia% {mathdesign} % \sfdefault is cmss (use cmbr?)
}
% Isomath options::
\newcommand*{\isomathoptions}{}
\renewcommand*{\isomathoptions}{%
% reuseMathAlphabets,%
OMLmathsans,%
OMLmathbf,%
% OMLmathsf,
sfdefault=cmbr% CM-Bright
% sfdefault=iwona% Iwona sans (some glyphs too close to roman)
% sfdefault=zavm% Arew sans (larger than normal)
% sfdefault=llcmm% LX sans (larger than normal)
}
% Load customisable packages
% --------------------------
% ::
\usepackage[\fontpackageoptions]{\fontpackage}
\usepackage[\isomathoptions]{isomath}
% Re-define \vec to comply with ISO 31::
\renewcommand*{\vec}{\vectorsym}
% Fall-back definition for \mathsans::
\providecommand*{\mathsans}[1]%
{mathsans\ not\ defined,\ use\ \mathtt{OMLmathsans}\ option}
% Now print a test sheet::
\begin{document}
\section{Test the isomath Package}
Fontpackage: [\fontpackageoptions]\{\fontpackage\}\\
Isomath called with options: [\isomathoptions]\\
Default font families:
\begin{tabular}[t]{rlrl}
serif & \texttt{\rmdefault} & sans-serif & \texttt{\sfdefault} \\
isomath-serif & \makeatletter \texttt{\isomath@rmdefault} \makeatother
&
isomath-sf &\makeatletter \texttt{\isomath@sfdefault} \makeatother
\\
\end{tabular}
\subsection{Math alphabets}
If there are ligatures (ff, fi, ...) or other "strange" symbols instead of
small Greek letters in a math alphabet, it uses T1 or OT1 encoding instead
of OML.
% Define 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,\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,
}
\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{mathbold} & & \mathbold{\teststring}\\
\mbox{mathsans} & & \mathsans{\teststring}\\
\mbox{mathboldsans} & & \mathboldsans{\teststring}
\end{eqnarray*}
\subsection{Vector symbols}
Symbols for vectors are boldface italic:
$\vec{\alpha}=\vec{e}_{1}\cdot\vec{a}$
\subsection{Matrix symbols}
Symbols for matrices are boldface italic, i. e. typeset in the same
face as vectors:%
\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{\Gamma}=\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}
|