Open Zeta611 opened 7 months ago
BoldFont works with \mathversion[bold]
, in cases where all the math formula should be bold not only the alphabetic symbols.
@khaledhosny Thank you for the reply! Are you saying that the bold font specified by BoldFont
is only used when the \mathversion{bold}
is invoked, and will not be used with commands like \symbf
?
Exactly (and \boldmath
which I think is a shortcut for \mathversion{bold}). \symbf
switch to the Unicode bold math alphabets, so works only on characters that have encoded bold versions.
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITSMath-Regular.otf}
\setmathfont{XITSMath-Bold.otf}[version=bold]
\begin{document}
\[ a = b \]
\[ \symbf{a = b} \]
\[ \symbfit{a = b} \]
\mathversion{bold}
\[ a = b \]
\end{document}
Description
BoldFont =
options seems to work, but the documentation does not mention about it. Is this working as intended, or should not work properly?Add info or delete as appropriate:
I see that there are people do use this option, e.g., here.
Minimal example demonstrating the issue
does this work the same as the following?
Further details
Only the latter use-case is described in the documentation.