annotate-equations icon indicating copy to clipboard operation
annotate-equations copied to clipboard

Annotations do not behave well across page flips

Open lenianiva opened this issue 2 years ago • 4 comments

If the equation to be labeled is on the bottom of one page and LaTeX does a pagebreak right after the equation, the labels will show up in the next page with no error messages. e.g.

\[ ... \eqnmarkbox[...]{...} ...
\]
% page flip here
\annotate{...} % shows up on the next page

This can be solved by inserting a \pagebreak right after \annotate.

lenianiva avatar Feb 03 '23 00:02 lenianiva

Hi @vleni, do you think this is something that could be fixed within the annotate-equations package code? If you have any idea what it would take, please let me know (it's my first LaTeX package!) :) We should definitely mention this in the docs until (if) we can fix it properly, if you want to propose a Pull Request for that that'd be great, otherwise I'll try to get to it soon!

st-- avatar Feb 08 '23 12:02 st--

I'll try to produce an example of this, but here is a solution with minipage: https://tex.stackexchange.com/questions/30734/how-make-sure-two-elements-stay-on-the-same-page

I don't know if there is a programmatic way to do it without user intervention though, since tikz is unaware of whether a page flip has happened.

If you can put \annotate commands in \[ ... \] environments it might solve the issue

lenianiva avatar Feb 08 '23 17:02 lenianiva