-
Notifications
You must be signed in to change notification settings - Fork 18
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
Annotations do not behave well across page flips #12
Comments
Hi @vleni, do you think this is something that could be fixed within the |
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 |
Here's an example of it: https://archives.leni.sh/stanford/CS224w.pdf The problem happens on page 43 and 44. An annotation which is supposed to go on the bottom of P43 is on P44. |
@lenianiva you should indeed be able to put the \annotate inside the equation environment; does that resolve your issue? If you could share a minimal reproducible example, I'd be happy to try and have a look at resolving it or at least explaining the issue and workaround in the manual. :) |
Yes! That solves it. \[
\vec m_u^{(l)}
:= \eqnmarkbox[orange]{w}{\learnable W_{R(u \to v)}^{\mathsf{msg}}}
\eqnmarkbox[BrickRed]{n}{\learnable N_{T(u)}} \vec h_u^{(l-1)}
\]
\annotate[yshift=-.3em]{left,below}{w}{Weight for each edge type}
\annotate[yshift=-.3em]{right,below}{n}{Linear head for each node type} \[
\vec m_u^{(l)}
:= \eqnmarkbox[orange]{w}{\learnable W_{R(u \to v)}^{\mathsf{msg}}}
\eqnmarkbox[BrickRed]{n}{\learnable N_{T(u)}} \vec h_u^{(l-1)}
\annotate[yshift=-.3em]{left,below}{w}{Weight for each edge type}
\annotate[yshift=-.3em]{right,below}{n}{Linear head for each node type}
\] |
@lenianiva it's a bit unfortunate that it now overlaps with the footnotes -- is that fixed by adding additional |
This is my solution for now |
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.
This can be solved by inserting a
\pagebreak
right after\annotate
.The text was updated successfully, but these errors were encountered: