[Tex/LaTex] Bold sans serif math font

fonts

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!

Best Answer

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

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

enter image description here