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
  • #3018
Closed
Open
Issue created Mar 14, 2023 by Ulysses Zhan@UlyssesZh

Wrong spacing after `\right`

Issue Summary

There should be some extra spacing before and after \left(\right), but MathJax only implemented the desired spacing before \left, instead of both that before \left and that after \right.

$$a\left(b\right)c$$

$$a(b)c$$

This is the result rendered by MathJax:

a(b)c rendered by MathJax

This is the result rendered by LaTeX:

a(b)c rendered by LaTeX

As can be seen, the spacing between ")" and "c" are different in the two results.

Steps to Reproduce:

Technical details:

  • MathJax Version: 3.2
  • Client OS: Ubuntu 20.04
  • Browser: Chrome 110.0.5481.177

I am using the following MathJax configuration:

MathJax = {
	tex: {
		inlineMath: [['$', '$'], ['\\(', '\\)']],
		processEscapes: true,
		tags: 'ams',
		packages: {'[+]': ['ams', 'autoload']}
	},
	loader: {load: ['[tex]/ams', '[tex]/autoload']}
};

and loading MathJax via

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

Supporting information:

Assignee
Assign to
Time tracking