Skip to content

Overflow bug with quotation marks inside \text #3494

@sean-fitzpatrick

Description

@sean-fitzpatrick

Issue Summary

If LaTeX quotation marks are used in a \text box in display math, they cause everything after the opening quote to be repeated on the line below

Steps to Reproduce:

  1. Create some display math, using $$...$$ delimiters
  2. Add text to the equation, using \text{...}
  3. Put a quotation inside the text. Example:
$$x^2 = 4 \Rightarrow x = \pm 2, \text{``just because''}$$

Here is a screenshot of testing in the MathJax demo:

Image

If I use single quotes instead of double quotes, I don't encounter the issue.

I first observed this in a PreTeXt book. The offending equation is here:

https://opentext.uleth.ca/Math1410/SetTheory.html#SetTheory-11

I have tested using the MathJax demo page on both Firefox and Chrome, on both Windows 11 and Pop! OS 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamv3v4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions