[Tex/LaTex] Typeset WHOLE document in sans-serif, Including Math Mode

fontsmath-modesans-serif

The reigning answer for the Simplest way to typeset entire document in sans serif (Helvetica) completely disregards math-mode. This might be preferred when all math equations are set display style, but a matching font is a must for in-line equations.

My current MWE (based on the one given here) only gives the text-mode items in sans, but any math remains in serif style (in-line, numerical-only equations look particularly hideous).

How can I set math in sans-serif as well?

example

\documentclass[]{article}

\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}

\usepackage[math]{blindtext}

\begin{document}

Text looks particularly bad when you have $123,400$ number-only equations in-line.

\blindmathpaper

\end{document}

Best Answer

The answer, as I have pieced together, appears here on one page, for posterity.

The package sansmath ...

...is designed to offer sans-serif mathematics in the absence of proper sans maths fonts. After \usepackage{sansmath}, a new “math version” sans is defined, together with a command \sansmath, which behaves as \boldmath does. -from the documentation

So the MWE becomes:

\documentclass[]{article}

\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{sansmath} % Enables turning on sans-serif math mode, and using other environments
\sansmath % Enable sans-serif math for rest of document

\usepackage[math]{blindtext}

\begin{document}

Text looks particularly bad when you have $123,400$ number-only equations in-line.

\blindmathpaper

\end{document}

Which results in:

example sans math