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

Arrow invades term in the formula if there is mismatch between yshift and selected above/below option #5

Closed
pauloney opened this issue Nov 21, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@pauloney
Copy link

The arrow with the comment sometimes invade a sign in the middle of the formula.

\documentclass{report}
\usepackage{annotate-equations}

\begin{document}
\[
        \sum_{i=1}^n E(X_i|S=s) \mathrel{\tikzmarknode{node5}{=}} E\left(\sum_{i=1}^n X_i|S=s\right)
\]
\annotate[yshift=-3.5em]{above}{node5}{por linearidade}

\end{document}

image

@st--
Copy link
Owner

st-- commented Nov 21, 2022

You requested the annotation to be above but moved it down: if you swap it as follows,

-\annotate[yshift=-3.5em]{above}{node5}{por linearidade}
+\annotate[yshift=-3.5em]{below}{node5}{por linearidade}

it renders fine.

An automatic solution that does away with the need for specifying above/below is beyond my current LaTeX skills - if anyone has an idea for how to do it, I'd happily check out a pull request though!

@st-- st-- added the help wanted Extra attention is needed label Nov 21, 2022
@st-- st-- changed the title Arrow invades an equal sign in the formula Arrow invades term in the formula if there is mismatch between yshift and selected above/below option Nov 22, 2022
@st--
Copy link
Owner

st-- commented Nov 22, 2022

I've clarified this in #9 as well.

@st-- st-- closed this as completed 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
Development

No branches or pull requests

2 participants