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

Known issue: `\tikzmarknode` & Co. break spacing of mathematical relations such as "="

Open pauloney opened this issue 2 years ago • 2 comments

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}

image

A solution is suggested here.

pauloney avatar Nov 21 '22 04:11 pauloney

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!

st-- avatar Nov 21 '22 21:11 st--

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: @.***>

pauloney avatar Nov 21 '22 22:11 pauloney