annotate-equations
annotate-equations copied to clipboard
Known issue: `\tikzmarknode` & Co. break spacing of mathematical relations such as "="
Every once in a while it dislocates a piece of the equation inapropriately, like the equal sign on the second one:
\documentclass{report}
\usepackage{annotate-equations}
\begin{document}
\[
a \tikzmarknode{node1}{=} b
\]
\annotate[yshift=-1em]{below}{node1}{change of variables}
\[
\int_0^{\infty}F_X(x)dx =\int_0^{\infty}F_X(-x)dx \tikzmarknode{node2}{=} \int^0_{-\infty}F_X(x)dx.
\]
\annotate[yshift=-1em]{below}{node2}{change}
\end{document}
A solution is suggested here.
This is my first-ever LaTeX package; as mentioned in a comment on the solution, a generic solution seems to be rather tricky - so not sure what I could do about this myself. I'd happily accept a pull request which adds automatic detection of relation signs!
Automatic detection is hard, if not impossible, but one could mention the problem and the solution on the manual.
On Mon, Nov 21, 2022 at 1:45 PM st-- @.***> wrote:
This is my first-ever LaTeX package; as mentioned in a comment on the solution, a generic solution seems to be rather tricky - so not sure what I could do about this myself. I'd happily accept a pull request which adds automatic detection of relation signs!
— Reply to this email directly, view it on GitHub https://github.com/st--/annotate-equations/issues/4#issuecomment-1322690937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR7WYU3ZEHAH3BHDWZOICTWJPUQHANCNFSM6AAAAAASGHIG34 . You are receiving this because you authored the thread.Message ID: @.***>