MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

v4: a case of amscd overlapping in SVG

Open pkra opened this issue 4 months ago • 5 comments

The following example:

\begin{equation*} \begin{CD} P \times ^H F @= (H \times Y \times F)/H @>{\simeq }>{(h,y,z)\mapsto (y,h^{-1}z)}> Y \times F\\@VV{\widetilde{\sigma }}V @VV{\operatorname {pr}_Y}V @VV{\operatorname {pr}_Y}V\\Y @= Y @= Y \end{CD} \end{equation*}

On mathjax.org#demo, this renders with SVG as follows:

Image

CSS looks like this:

Image

which is close enough to TeX output:

Image

pkra avatar Aug 25 '25 09:08 pkra

Thanks. I'm able to reproduce, and will look into it. I'll let you know what I find.

dpvc avatar Aug 27 '25 20:08 dpvc

A reduced test case is

\begin{CD} 
A @= B
\end{CD}

It turns out that the minsize setting on the stretched equal sign isn't properly setting the bounding box to that size. I'm still looking for where that is going wrong.

dpvc avatar Aug 27 '25 23:08 dpvc

Thanks, Davide.

pkra avatar Aug 28 '25 06:08 pkra

I have made a PR that resolves the issue. Do you need a patch to use before the next release?

dpvc avatar Sep 15 '25 10:09 dpvc

Do you need a patch to use before the next release?

Thanks for the offer but I think we can wait until a release (or it lands in the develop branch).

pkra avatar Sep 18 '25 08:09 pkra