I would like to typeset almost all of a formula in bold sans-serif font using \boldsymbol
and \mathsf
. For example:
$$\boldsymbol{\mathsf{x+{}}}n\boldsymbol{\mathsf{{}=y}}$$
or
$$\boldsymbol{\mathsf{S}}^n\boldsymbol{\mathsf{0}}$$
However, I would like to be able to do it more simply, by enclosing that parts that should be typeset normally in some sort of command. Like this:
$$\boldsymbol{\mathsf{x+\something{n}=y}}$$
Is there a way to do that?