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
  • #2973
Closed
Open
Issue created Nov 30, 2022 by Jeppe Klitgaard@JeppeKlitgaard

Automatic bracing cannot be used with vertical bars in `physics` extension

Issue Summary

The auto-bracing command \qty does not work with vertical bars (though \vqty works)

Admittedly \qty|a+b| is a somewhat odd thing to try to use and might be sufficiently rare that it doesn't warrant fixing in MathJax, but it does catch me off guard every now and then and does deviate from the reference implementation of physics.

The documentation for the LaTeX physics package can be found on CTAN

Note that the physics package needs to be loaded. I couldn't find a demo page that has this loaded by default, unfortunately.

Steps to Reproduce:

This does not render
$$
\qty|a+b|
$$

This renders fine
$$
\vqty{a+b}
$$

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: Windows
  • Browser: Electron Application (Chromium)
Assignee
Assign to
Time tracking