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

\text fails with ampersand

Created by: bdtc

Issue Summary

\text fails with \&.

The other special characters work.

Technical details:

Latex MathJax 3, Firefox.

Supporting information:

<!DOCTYPE html>
<html lang="en-US">

<head>

<meta charset="UTF-8" />

<script>
MathJax = {
    loader: {
         load: ['[tex]/textmacros'],
    },
    tex: {
         packages: {'[+]': ['textmacros']},
    }
}
</script>

<script
         id="MathJax-script"
         src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
></script>

</head>


<body>


<p>
dollar \(\text {before \$ after} \)
</p>

<p>
underscore \(\text {before \_ after} \)
</p>

<p>
percent \(\text {before \% after} \)
</p>

<p>
open brace \(\text {before \{ after} \)
</p>

<p>
close brace \(\text {before \} after} \)
</p>

<p>
literal space \(\text {before \ after} \)
</p>

<p>
ampersand \(\text {before &amp; after} \)
</p>

<p>
hash \(\text {before \# after} \)
</p>

<p>
backslash \(\text {before \\ after} \)
</p>

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