# Bold sans serif math font

Inspired by Mr. Carlisle's answer here, I was wondering how to use a bold sans serif math font.

The way one can create normal bold sans serif text is as follows:

\documentclass[]{standalone}

\begin{document}
\textbf{\textsf{This text is bold.}}
\end{document}


How would I get bold sans serif math, though? I tried many combinations, such as:

\documentclass[]{standalone}

\begin{document}
\textbf{$\mathsf{x^2+2}$}
\end{document}


None of these seem to give bold sans serif math effect, though!

• you can use \boldmath as I used in the referenced answer, or for a subterm inside a larger math expression, you can use \bm from the package of that name. – David Carlisle Nov 20 '16 at 15:08

\documentclass[]{standalone}
\usepackage{bm}
\begin{document}
{\boldmath $\mathsf{x^2+2}$}

$\bm{\mathsf{x^2+2}}$
\end{document}


• This happens to be that one combination that I hadn't tried! Thanks again! – Skeleton Bow Nov 20 '16 at 15:34