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
  • #2175
Closed
Open
Issue created Aug 04, 2019 by Administrator@rootContributor

No \mathrel spacing next to ampersands in align environment

Created by: JohnTasto

When using a \mathrel next to an &, the side next to the & loses its extra spacing.

\begin{align}
  x {\mathrel{R}} y  &&  x \mathrel{R} y  &&  x &    \mathrel{R} y  \\
  x {\mathrel{R}} y  &&  x \mathrel{R} y  &&  x & {} \mathrel{R} y  \\
  x {\mathrel{=}} y  &&  x \mathrel{=} y  &&  x &    \mathrel{=} y  \\
  x {         = } y  &&  x          =  y  &&  x &             =  y  \\
\end{align}

mathrel

The first line is how I believe it should be written, whereas the second line is how I believe it should look, fixed using an empty block. Oddly, when using an = (which is already a relation) inside \mathrel, it has correct spacing, shown in the third line. The fourth line is just a normal relation without \mathrel.

Live example: JS Bin

Assignee
Assign to
Time tracking