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
  • #1770
Closed
Open
Issue created Jun 15, 2017 by Administrator@rootContributor

Bug: underscore not handled correctly in \text{} macro

Created by: pkienzle

Issue Summary

With the amsmath package, LaTeX raises an error on \text{underscore_separated} unless there is a leading backslash before the underscore. Mathjax renders with and without the backslash, but shows the backslash if it is included. This means that you cannot use the same input for both html and latex markup.

Steps to Reproduce

  1. paste the following into the mathjax live demo page

    erfc is the complementary error function $1 - \text{error_function}(x)$.

  2. Compare this to the same markup in LaTeX (via overleaf shared latex editor):

    https://www.overleaf.com/read/xdcwcrkkwkns

Technical details

  • MathJax Version: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM CHTML-full
  • Client OS: Windows, Mac
  • Browser: Firefox, Chrome, IE, Safari
Assignee
Assign to
Time tracking