-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
In usetex, remove vertical space inserted by TeX after displaymath. #24011
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
base: main
Are you sure you want to change the base?
Conversation
Off topic: should I file a bug report for dvipng? (The author, coincidentally, is a colleague, currently my boss...) |
I don't think it's really a bug in dvipng, just a different definition of "baseline". OTOH one thing that we would look into is to use |
Should we return to the plan of reverting the original PR? |
Let's do that for now. |
The original PR was reverted, so I assume you'll just put this into 3.7. |
Yes. |
Moved to 3.8, but feel free to argue for a back port. |
No hurries, this still needs some work... |
PR Summary
Closes #23977. One can also check with the simpler example given at #23977 (comment).
Actually in the specific case of the eqnarray given in #23977 there would still seem to be an extra blank line at the bottom, but this is due to the extra
\\
at the end of the eqnarray, which is now taken into account (... but not by dvipng apparently (*)); removing it (as shown in documented eqnarray examples, e.g. http://latexref.xyz/eqnarray.html, https://texfaq.org/FAQ-eqnarray) handles that.(*) but hopefully we'll get rid of dvipng anyways in favor of directly rendering the glyphs ourselves; see e.g. #22459 (comment).
Edit: no, that's not enough if the last line has nonzero descent. Back to the drawing board.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).