The \boldmath
command will make all symbols used in math mode bold.
I'm curious if there is an analogous command that allows the user to specify which characters to make bold in math mode. This functionality would be useful in a document where the bold version of a symbol is used more often than the non-bold version of that symbol and also where the bold version of other symbols are not regularly used.
Here's a mwe:
\documentclass{article}
\usepackage[a6paper, margin=0.25in]{geometry}
\usepackage{bm}
\setlength{\parindent}{0pt}
\pagestyle{empty}
\begin{document}
Nothing is bold here.
\[
Av=\lambda\cdot v
\]
Everything is bold here.
\boldmath% Issuing `\boldmath` makes every symbol in math mode bold.
\[
Av=\lambda\cdot v
\]
\unboldmath% Issuing `\unboldmath` untoggles `\boldmath`.
I really just want the $A$ and $v$ bold.
\[
\bm{A}\bm{v}=\lambda\cdot \bm{v}
\]
\end{document}
Of course, it's not terribly cumbersome to type \bm{A}
or even to alias \bm{A}
as something like \bA
. However, if my document has thousands of equations in it and A
is almost always supposed to be bold, then the functionality I'm looking for would be genuinely useful.