Skip to content
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

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

Open
pauloney opened this issue Nov 21, 2022 · 2 comments · Fixed by #9
Open
Labels
help wanted Extra attention is needed

Comments

@pauloney
Copy link

pauloney commented Nov 21, 2022

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.

@st--
Copy link
Owner

st-- commented Nov 21, 2022

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-- st-- added the help wanted Extra attention is needed label Nov 21, 2022
@pauloney
Copy link
Author

pauloney commented Nov 21, 2022 via email

@st-- st-- closed this as completed in #9 Nov 22, 2022
@st-- st-- changed the title annotate-equations move parts of the equation Known issue: \tikzmarknode & Co. break spacing of mathematical relations such as "=" Nov 22, 2022
@st-- st-- reopened this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
2 participants