-
Notifications
You must be signed in to change notification settings - Fork 16
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
Display formulas and the math module: How to avoid \parskip below the formula? #762
Comments
Looks to me like \penalty \postdisplaypenalty
\skip_vertical:n { -\l_@@_tmpa_skip } % insert the correct skip has the wrong sign and should be \penalty \postdisplaypenalty
\skip_vertical:n { \l_@@_tmpa_skip } % insert the correct skip otherwise we are adding twice the skip we've moved around. |
PR coming up ... |
@josephwright if you change the sign then this one breaks imho again: #721 |
yes, I think this is more subtle, definitive a bug ... |
As an aside @giovanni111 : |
Indeed - the test suite found that :) |
Thinking again, we do need two lots of the negative skip as one is just undoing the one that TeX's added - but clearly something is wrong as @FrankMittelbach says. |
yes, the code doc could be a little clearer, saying that the first cancels the belowskip added by TeX and the second then adds the real belowskip which is the negation to what TeX has seen. The problem is in how the endpe handling works (or doesn't work) and I think unrelated to the belowskip business. |
Side note: To get the same output for my document without and with the math module, my hot fix is:
|
@giovanni111 simply removing \parskip does not work, the spacing is then wrong if there is an empty line after the math:
with math module:without math module |
This is tricky, the correct solution might be something along the following lines:
Basically, after and I guess the @doendpe is basically nonsense (unless the code is used in other places as well). |
ok, looks like So I guess this is something for you @u-fischer to take a look at. |
@FrankMittelbach well I think the \tagpdfparaOn is not needed but a \tagpdfparaOff is missing for the The problem here is the literal inserted when pdftex is used. Literals inserts spacing, and the code tries to avoid that by using Can't you come up with a
|
When
\parskip
is not 0, I get a different output for display formulas if using the math module. Perhaps\__math_tag_dollardollar_display_end:
should remove\parskip
somehow? What would you suggest?The text was updated successfully, but these errors were encountered: