-
Notifications
You must be signed in to change notification settings - Fork 37
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
theorem's target anchor is sometimes placed in the heading of the previous page if heading contains a \vbox #332
Comments
I hate theorem anchors ;-). Every time you fix one instance another one breaks. I don't think that one can really resolve all the problems through patches in hyperref. I will try to trigger a change in the LaTeX commands instead, so that the anchor is directly where it belongs and hyperref can stop to mess around.
|
I can deeply understand that! I think that in this case there is an uglier, but in most times working workaround for this, which also deals with cases when
But it is just a temporary workaround. In the long run, that would be very nice if hyperref could deal with theorems' target anchors better... |
That is basically what my code above is doing: But
No in the long run it would be better if hyperref wouldn't have to deal with that at all. It is simply a pain to have to patch these commands from the outside. It would be much better if amsthm etc would insert the targets directly. I have now opened a pull request to change at least the kernel definitions. latex3/latex2e#1301. |
I have to agree, however, it seems that your patch will break |
No, the kernel change should not affect them as they overwrite the definitions later (I checked that ...). So they only loose the target again. |
with a current latex-dev (released a few day ago) this now works correctly. |
Test case (pdflatex):
Checked with recent versions, each fails since 7.00w, 7.00v (and previous versions) are OK. (Perhaps since Feb 13, 2023 [new thm implementation]?)
The text was updated successfully, but these errors were encountered: