MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

amscd and alignment of cells

Open pkra opened this issue 5 years ago • 1 comments

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):

image

LaTeX rendering:

image

pkra avatar Jan 12 '21 09:01 pkra

OK, thanks. The CD environment is not something I've ever actually used myself, so the implementation was entirely based on the documentation, not actual experience. It turns out that there are some differences between it and the actual LaTeX version (you pointed out some others earlier). it should probably be reimplemented with more of the LaTeX behavior being handled.

dpvc avatar Jan 14 '21 16:01 dpvc