The unicode-math
package supports several commands for bold symbols beyond what have been mentioned in previous answers, including \mathbf
, \symbf
, \symbfup
, \symbfit
and \boldsymbol
. It requires LuaLaTeX or XeLaTeX.
If you load a math font that has a bold version, unicode-math
will load it as version=bold
. There are now several, including XITS Math, Libertinus Math, and KP Math. It is also possible to load any math font with \setmathfont[version=bold]
.
Here’s a brief MWE that uses \boldmath
, \symbf
and \boldsymbol
. Note that \mathbf
will use the bold weight of the main text font, \symbf
will use the mathematical bold letters and numerals defined in the Unicode Mathematical Alphenumeric Characters block, and \boldmath
, \mathversion{bold}
and \boldsymbol
will use the bold math font (if there is one).
\documentclass[varwidth = 10cm, preview]{standalone}
\usepackage{mathtools}
\usepackage[math-style=ISO]{unicode-math}
\usepackage{microtype}
\defaultfontfeatures{ Scale = MatchUppercase }
\setmainfont{Libertinus Serif}[Scale = 1.0, Ligatures = Common]
\setsansfont{Libertinus Sans}
\setmonofont{Libertinus Mono}
\setmathfont{Libertinus Math}
\begin{document}
\section*{\boldmath Reasoning from \(\symbf{A} \vee \symbf{B}\)}
If we have \(\symbf{A} \vee \symbf{B}\) and \(\symbf{A}\), disjunctive syllogism
(classically known as \textbf{\textit{modus ponendo tollens}}, and also known
as \textbf{disjunction elimination} or {\boldmath \(\vee E\)}) is the rule
that lets us conclude \(\boldsymbol\therefore \symbf{B}\).
\end{document}
There are several ways to tweak this behavior. By default, \mathbf
renders bold capital letters upright and bold lowercase letters italic, but [math-style=ISO]
makes italic the default for everything, including regular-weight uppercase Greek. You can change only the behavior of bold uppercase letters with bold-style=ISO]
or [bold-style=upright]
. You can also specify \symbfup
for bold upright or \symbfit
for bold italic.
\mathbf
} with computer modern fonts uses the fontcmbx*
which is an extended font.\boldsymbol
orbm
use the onlycm
font that is usually available in bold,cmmib10
, which is not an extended font. thus the bold greek letters are indeed not as "bold" as the roman.bm{x} = [X_1, \dots, X_D]
worked for me! instead of\bf
. Seems I didn't have to import anything on my overleaf. The issues with\bf
was that it bolded EVERYTHING inside my$$
which was too much.