9.4.1 Maths Fonts
Just as we are able to change text fonts using
the commands \textrm
, \textbf
etc, we can also
use commands to change the maths font. Basic maths font changing
commands are shown in Table 9.1.
Command | Example Input | Corresponding Output |
---|---|---|
(Computer Modern) | ||
\mathrm {<maths>} |
$\mathrm{xyz}$ |
|
\mathsf {<maths>} |
$\mathsf{xyz}$ |
|
\mathtt {<maths>} |
$\mathtt{xyz}$ |
|
\mathit {<maths>} |
$\mathit{xyz}$ |
|
\mathbf {<maths>} |
$\mathbf{xyz}$ |
|
\mathcal {<maths>} |
$\mathcal{XYZ}$ |
|
The calligraphic fonts via \mathcal
are only available for upper-case
characters[Better script fonts for maths].
Table 9.2 lists additional font commands supplied
with the amsmath and amsfonts
packages.
Command | Example Input | Example Output |
---|---|---|
\mathbb {<maths>} |
$\mathbb{A+B=C}$ |
|
\mathfrak {<maths>} |
$\mathfrak{A+B=C}$ |
|
\boldsymbol {<maths>} |
$\boldsymbol{A+B=C}$ |
|
\pmb {<symbol>} |
$\pmb{+-=}$ |
|
This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).