Skip to content

mathvariant=Monospace produces bold letters #3567

@dmmargarint

Description

@dmmargarint

Issue Summary

The mathvariant="monospace" mtext renders the letters in a bolder fashion, making them stand out and prone to be misinterpreted as intentionally bold letters, e.g. vector notations.

Steps to Reproduce:

Add the following mathML inside math> mrow > mtable > mtr > mtd > mstyle
<msub> <mrow> <mtext mathvariant="monospace">SN</mtext> </mrow> </msub>

Technical details:

  • MathJax Version: 4.1.2
  • Client OS: Mac OS 26.3.1
  • Browser: Chrome, Build 147.0.7727.138

I am using the following MathJax configuration:

         ...  
        displayOverflow: 'linebreak',
        font: 'mathjax-tex',
        mathmlSpacing: true,
        linebreaks: {
          inline: true,
          width: /Firefox/.test(navigator.userAgent) ? '40%' : '90%',
          lineleading: 0.2,
          LinebreakVisitor: null,
        },
      }

and loading MathJax via

<script src="'https://cdn.jsdelivr.net/npm/mathjax@4.1.2/mml-chtml.js"></script>

Supporting information:

In the following equation the letters SN, TN and Lick are all monospace.

Image

Link to live article: https://elifesciences.org/articles/95802

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions