The title pretty much sums it up. I have no idea if this only happens for the eqnarray environment and AnchoredText or for all Latex text and other boxes, e.g. legends, but also don't have the time to test it myself. I'll simply keep using v3.5.3, but I hope this helps other people get to the root cause.
I should mention that when usetex is set to False, the text is displayed just fine (by text I mean the code, obviously it doesn't compile), so I can narrow it down at least that much.
the basic problem being that we don't get a baseline mark at the baseline of the last line of displaymath mode, but only at the baseline of the (empty) following paragraph.
Probably there's some solution which involves fiddling with TeX internals (and I still think the general approach is the correct one), but it doesn't look obvious to fix, so possibly in the short term #22360 should be reverted for now and thus also #22361 (first), and #22350 (which was the original issue that triggered these changes) reopened. Apologies for the disruption.
changed the title [-][Bug]: Eqnarray in AchoredText results in misplaced text (new in v3.6.0)[/-][+][Bug]: Eqnarray in AnchoredText results in misplaced text (new in v3.6.0)[/+]on Sep 28, 2022
Activity
dstansby commented on Sep 21, 2022
Looking into this now - bisects to c973552
dstansby commented on Sep 21, 2022
Had a quick look and can't work out what the fix is - perhaps @anntzer will have more luck as you wrote the failing commit.
anntzer commented on Sep 23, 2022
I can confirm the issue and repro it even more simply with e.g.
the basic problem being that we don't get a baseline mark at the baseline of the last line of displaymath mode, but only at the baseline of the (empty) following paragraph.
Probably there's some solution which involves fiddling with TeX internals (and I still think the general approach is the correct one), but it doesn't look obvious to fix, so possibly in the short term #22360 should be reverted for now and thus also #22361 (first), and #22350 (which was the original issue that triggered these changes) reopened. Apologies for the disruption.
QuLogic commented on Oct 6, 2022
Should be fixed by the revert in #24047.