I'm typesetting both text and math in Latin Modern, except for the figures, where I would like to use a sans serif font for both text and math.
I need to follow the ISO recommendations for math typesetting. That incorporates the need to typeset vectors in boldface italics. Within the document, I'm using \bm
from the bm
package for that purpose. It works fine.
Now I started using the sansmath
environment from the sansmath
package to get my figures in sans serif. For simplification, I did not put a figure in the following example.
\documentclass{scrartcl}
\usepackage{lmodern}
\usepackage{bm}
\usepackage{sansmath}
\begin{document}
$\bm{d} = (d_1, d_2)$
$\mathbf{d} = (d_1, d_2)$
\begin{sansmath}
$\bm{d} = (d_1, d_2)$
$\mathbf{d} = (d_1, d_2)$
\end{sansmath}
\end{document}
As the example shows, I could also use mathbf
, which also does its job within the sansmath
environment. However, I mustn't have upright letters for the vectors.
Is the another combination of packages available that both does sans serif math and supports boldface italics?