There is no attribute fontweight on <mstyle> (3.3.4 Style Change), the translation of \mathbf therefore does not work in W3C conformant browsers. The correct attribute is style="font-weight:bold".
Thank you for the report and patch.
Unfortunately, with the output of
..math::
a = \mathbf{c}^2 + \mathrm{d}x
my firefox (78.4.0esr) ignores the style="font-weight:bold" argument
(just as it ignored the fontweight).
OTOH, WebKit and Chromium show a bold "c" but the 2 is no superscript and all variables are upright :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After a new look, I would suggest to use the "mathvariant" attribute on <mi> instead of a style wrapper for \mathbf (which in LaTeX is used to convey semantics of a variable, not just style).
Fixed in r8675 with a modified version of the provided patch (mathvariant="bold" instead of the "style" attribute).
Thank you for the report and patch.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Needed change, for what it's worth.
Thank you for the report and patch.
Unfortunately, with the output of
my firefox (78.4.0esr) ignores the
style="font-weight:bold"argument(just as it ignored the
fontweight).OTOH, WebKit and Chromium show a bold "c" but the 2 is no superscript and all variables are upright :(
After a new look, I would suggest to use the "mathvariant" attribute on
<mi>instead of a style wrapper for\mathbf(which in LaTeX is used to convey semantics of a variable, not just style).https://www.w3.org/TR/MathML3/mathml.html#chapter3_presm.commatt
Fixed in r8675 with a modified version of the provided patch (
mathvariant="bold"instead of the "style" attribute).Thank you for the report and patch.
Fixed in 0.17.1. Thank you for the report.