amscd and alignment of cells
Open
@dpvc is already working on this.
Since Aug 15, 2025.
Accepted
Feature Request
v2
v3
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
MathJax's amscd implementation seems to center some cells that "real" amscd aligns right.
For example, in the following, an author added hspace to get the \square to be roughly centered, which comes out quit differently in MathJax.
\begin{equation}
\begin{CD}
X@<<< X'@<{j'}<<U'&=U\times _XX'\\@VfVV \hspace{-10mm} \square \hspace{7mm} @VV{f'}V \hspace{-10mm} \square \hspace{7mm} @VVV\\Y@<g<<Y'@<\supset <<V'&=V\times _YY'
\end{CD} \tag{1.13}
\end{equation}
MathJax rendering (v3 but v2 is the same):

LaTeX rendering:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.