New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiline environment (with tags) rendering issues #1974
Comments
Just to clarify (since using h3/h4 is probably not enough): I only checked 'SVG with small container size' while using left-aligned labels. |
This is not correct. When equation numbers are on the right using
OK, that's a bug. The 85% width for multline is not being set properly. One can change
to
to fix that. As for the 0-width SVG, that turns out to be due to not taking the minimum width of the table into account (as is done by CommonHTML and HTML-CSS). That can be done at line 229 of
by
Unfortunately, there is no easy patch to work around it until these changes are made. Too bad these were not included in the 2.7.4 release. |
…h small container widths. Resolves issue mathjax#1974.
Thanks for looking into this!
Ah, sorry! I didn't expect there to be a difference here. Thanks for correcting me. And thanks for confirming the other issues. Since I only noticed this during visual regression testing with 2.7.4 I unfortunately couldn't report it earlier. |
I wasn't complaining. I was only saying "How typical: we find this just a day after making a release." |
On the bright side, this was the only issue I found while testing ~75,000 equations 😄 |
That is nice to know. Thanks for making the tests. |
Fix problems with multline in CHTML (with tags) and SVG (with small containers). #1974
==> In testsuite |
(This came up while testing 2.7.4 but is also present in 2.7.3 and probably ealier.)
I ran into 2-3 issues around multline; I'm not sure how to split them.
Minimal example:
$$\begin{multline}xxxxxxxxxx\tag{1} \\ yyyyyyyyyy\end{multline}$$
(default) equation label alignment
IIUC, the equation label should align with the first line of the expression.
However, with its default (labels on right), the label aligns with the second line; furthermore, using the CommonHTML output the row overlaps the label (SVG and HTML-CSS are fine).
This matches toMathML which has the label in the second row /
mlabeledtr
.left-aligned equation labels
When equation labels are left-aligned, both SVG and CommonHTML align the label at the first row. (I didn't check HTML-CSS).
SVG with small container size
If the container size is small (e.g., 0), the SVG output renders poorly (and differently from CommonHTML; I didn't check HTML-CSS): the second row ends below the beginning of the first row (excluding the left-aligned label).
Sample output (via mathjax-node with
width:0
but happens in the client as well):The text was updated successfully, but these errors were encountered: