Skip to content

MathJax 4: Increased spacing for \textbf inside \boldsymbol #3514

@simerplaha

Description

@simerplaha

After upgrading from version 3 to 4, the spacing in \textbf inside \boldsymbol appears to have doubled (\boldsymbol{\pi\textbf{ rad}}).

Expected the spacing to be the same as version 3.

MathJax 3:

Image

MathJax 4:

Image

Reproduction

<!DOCTYPE html>
<html>
<head>
    <!-- MathJax 3 -->
    <!-- <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>-->

    <!-- MathJax 4 -->
    <script src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js"></script>
</head>
<body>
\begin{aligned}
\theta &= \pi\text{ rad} \\[1pt]
\theta &= \boldsymbol{\pi\textbf{ rad}} \\[1pt]
\end{aligned}
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code ExampleContains an illustrative code example, solution, or work-aroundUpstreamv4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions