Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Sep 26, 2022

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

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@anntzer anntzer added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/usetex labels Sep 26, 2022
@anntzer anntzer added this to the v3.6.1 milestone Sep 26, 2022
@anntzer anntzer marked this pull request as draft September 26, 2022 09:18
@oscargus
Copy link
Member

Off topic: should I file a bug report for dvipng? (The author, coincidentally, is a colleague, currently my boss...)

@anntzer
Copy link
Contributor Author

anntzer commented Sep 26, 2022

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 dvipng --depth... to get the baseline position? But that would require going through dvipng even for the vector backends.

@QuLogic
Copy link
Member

QuLogic commented Sep 27, 2022

Edit: no, that's not enough if the last line has nonzero descent. Back to the drawing board.

Should we return to the plan of reverting the original PR?

@anntzer
Copy link
Contributor Author

anntzer commented Sep 27, 2022

Let's do that for now.

@QuLogic QuLogic modified the milestones: v3.6.1, v3.7.0 Oct 6, 2022
@QuLogic
Copy link
Member

QuLogic commented Oct 6, 2022

The original PR was reverted, so I assume you'll just put this into 3.7.

@anntzer
Copy link
Contributor Author

anntzer commented Oct 6, 2022

Yes.

@jklymak jklymak removed the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jan 5, 2023
@jklymak jklymak modified the milestones: v3.7.0, v3.8.0 Jan 5, 2023
@jklymak
Copy link
Member

jklymak commented Jan 5, 2023

Moved to 3.8, but feel free to argue for a back port.

@anntzer
Copy link
Contributor Author

anntzer commented Jan 5, 2023

No hurries, this still needs some work...

@ksunden ksunden modified the milestones: v3.8.0, future releases Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Eqnarray in AnchoredText results in misplaced text (new in v3.6.0)
5 participants