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
  • #2524
Closed
Open
Issue created Sep 06, 2020 by Administrator@rootContributor

Wrapping with `\text{}` creates strange overlapped output with `tex-svg-full`

Created by: zmoon

Issue Summary

Wrapping with \text{} creates strange overlapped output with tex-svg-full but not tex-svg.

Example:

\text{
This is an equation: $y = m\,x + b$; another: $e^{i \pi} = -1$. These are literal dollar signs: \$\$
}

With tex-svg-full (see full code below): mathjax3_test_bad

With tex-svg: mathjax3_test_good

Technical details:

  • MathJax Version: 3.0.5 (MathJax.version in console) but 3.1.0 in the "About MathJax" right-click menu
  • Client OS: Windows 10
  • Browser: Firefox 80.0

Supporting information:

code
<!DOCTYPE html>
<html>
<head>
<title>MathJax TeX Test Page</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg-full.js">
</script>
</head>
<body>

$$
\text{
This is an equation: $y = m\,x + b$; another: $e^{i \pi} = -1$. These are literal dollar signs: \$\$
}
$$

</body>
</html>
Assignee
Assign to
Time tracking