About
Shop
LaTeX
Software
Books
Gallery
News
Contact
Blog
Settings
Latest news 2019-11-04: The giveaway of two signed copies of “Quack, quack, quack. Give my hat back!” has closed and the winning entrants have been selected. Thank you to everyone who took part.


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.


Table 9.1: Maths Font Changing Commands
Command Example Input Corresponding Output
    (Computer Modern)
\mathrm{<maths>} $\mathrm{xyz}$ $ \cmmathrm{xyz}$
\mathsf{<maths>} $\mathsf{xyz}$ $ \cmmathsf{xyz}$
\mathtt{<maths>} $\mathtt{xyz}$ $ \cmmathtt{xyz}$
\mathit{<maths>} $\mathit{xyz}$ $ \cmmathit{xyz}$
\mathbf{<maths>} $\mathbf{xyz}$ $ \cmmathbf{xyz}$
\mathcal{<maths>} $\mathcal{XYZ}$ $ \cmmathcal{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.


Table 9.2: The amsfonts and amsmath Font Commands
Command Example Input Example Output
\mathbb{<maths>} $\mathbb{A+B=C}$ $ \mathbb{A+B=C}$
\mathfrak{<maths>} $\mathfrak{A+B=C}$ $ \mathfrak{A+B=C}$
\boldsymbol{<maths>} $\boldsymbol{A+B=C}$ $ \boldsymbol{A+B=C}$
\pmb{<symbol>} $\pmb{+-=}$ $ \pmb{+-=}$
     


This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-00-5).

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs