# How to make all math bold by default in LuaLaTeX

I would like to make all of my equations bold by default in a LuaLaTeX document that uses the lmodern math font. The answer to this question suggests using \boldmath, but I can't get it to work while using my current font setup. How can I get bold math characters by default here without wrapping all equations in \mathbf?

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{latinmodern-math.otf}

\begin{document}

$a = \alpha\times\beta$

$\mathbf{a = \alpha\times\beta}$

\boldmath
$a = \alpha\times\beta$

\end{document}

• There is no bold Latin Modern Math font. – egreg Mar 10 '15 at 20:35
• True, but \mathbf works as expected in my example. – Steven Gardiner Mar 10 '15 at 20:36
• That just emboldens letters using the bold text font. – egreg Mar 10 '15 at 20:37
• Yes, that's what I'm trying to do by default in equations. I suppose I should reword my question slightly. – Steven Gardiner Mar 10 '15 at 20:39
• I'm not sure I'm following you. I can understand making “F” bold as a vector, but not mass, which is a scalar quantity. – egreg Mar 10 '15 at 20:44

\boldmath selects the bold math version which would have bold versions of most or some of the math fonts set up in the "usual" math groups. However latin modern math has no bold font so this doesn't do anything useful here.
Normally \boldmath just affects alphabetic characters and selects the bold roman text font.
Unfortunately unicode-math uses the command names for a rather different purpose and this is the main incompatibility between the current unicode-math definitions and classic LaTeX math definitions. Here \mathbf is not changing the font but rather it is changing the characters within the same font so a is replaced by U+1D41A MATHEMATICAL BOLD SMALL A and similarly for the Greek (which would not be affected by \mathbf in classic TeX)
This means that the bold effect is not achieved by resetting a font, or an assignment to a math \fam but by stepping through token by token replacing tokens by alternative characters representing the bold. This means that while nothing's ever impossible hiding the explicit argument form here is likely to be tricky and fragile.
Other font sets such as stix may have more extensive bold support, allowing \boldmath to work as intended, or using an explicit \mathbf is probably the safest thing,