Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2511
Closed
Open
Issue created Aug 26, 2020 by Administrator@rootContributor

\boldsymbol in macro fails to render correctly on first appearance

Created by: MichaelAllenWarner

Issue Summary

After the most recent MathJax update, it seems that a macro that has \boldsymbol followed by a symbol (like \boldsymbol \nabla) renders fine except on its first appearance in the page, which instead gets rendered as the literal letters "boldsymbol" followed by the symbol. I'm using the tex-chtml component (https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js), and it happens in every browser I try after yesterday's update.

Steps to Reproduce:

  1. Have the config like this:
window.MathJax = {
  tex: {
    macros: {
      del: '\\boldsymbol \\nabla'
    }
  }
};
  1. Use the tex-chtml component like this:
<script type="text/javascript" id="MathJax-script" defer
  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
  1. Include the del macro in equations on the page.
  2. On its first appearance in the page (can be either inline-math or display-math), the macro gets rendered like this:

Screen Shot 2020-08-26 at 9 53 56 AM

(and you can see it's rendered fine on the right side of the equation).

I can avoid the problem on my end by using '\\boldsymbol{\\nabla}' instead of '\\boldsymbol \\nabla' in the macro, but this does look like a new bug.

Technical details:

  • MathJax Version: 3.1.0
  • Client OS: Mac OS X 10.15.5
  • Browser: (all browsers)
Assignee
Assign to
Time tracking