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

Option \tikzset{annotate equations/arrow/.style={->}} does not work #19

Closed
qscas opened this issue Jul 13, 2023 · 2 comments
Closed

Option \tikzset{annotate equations/arrow/.style={->}} does not work #19

qscas opened this issue Jul 13, 2023 · 2 comments

Comments

@qscas
Copy link

qscas commented Jul 13, 2023

environment : overleaf
compiler=lualatex or xelatex

\begin{equation*}
    \eqnmarkbox[blue]{node1}{e_q^n}
    \eqnmark[red]{node2}{f(x)}
    \tikzmarknode{node3}{kT}
\end{equation*}
\tikzset{annotate equations/arrow/.style={->}}
\annotatetwo[yshift=1em]{above}{node1}{node3}{text}
%\annotate[yshift=1em]{left}{node1}{my}
\annotate[yshift=-0.5em]{below, left}{node2}{annotation}
\annotate[yshift=-0.1em]{below, label below}{node3}{text}

though I changed the default settings, the arrow lines compiled still keep the original style. \tikzset{annotate equations/arrow/. style = {color=ForestGreen, >=latex', very thick, dashed}} also has no effect.

Snipaste_2023-07-13_10-23-21

@st--
Copy link
Owner

st-- commented Jul 18, 2023

What version of the package are you using? I've just tried to reproduce your issue and the \tikzset works fine for me.

Side notes:

  1. The way I coded up the arrows, they go from equation to annotation, so you probably want <- instead of -> in your first example.
  2. In general it's helpful to provide a complete, self-contained and compilable minimal reproducible example. For example, I had to add the \documentclass{article} \begin{document} ... \end{document} boiler plate as well as including the annotate-equations package as well as amsmath for equations* and change the color to just green because I couldn't be bothered to also figure out the correct xcolor options... So it wasn't too bad this time, but generally the easier you make it for the author of a package to reproduce their issue, the more capacity they have left to actually consider how to fix it:)

@st-- st-- mentioned this issue Oct 9, 2024
3 tasks
@st--
Copy link
Owner

st-- commented Oct 9, 2024

Can't reproduce this, and the comment on arrow direction is now captured in #28. Do re-open if you have anything new to add!

@st-- st-- closed this as completed Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants