summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/annotate-equations
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-05-07 03:01:42 +0000
committerNorbert Preining <norbert@preining.info>2023-05-07 03:01:42 +0000
commite2a7938bcd22a142fa92c5c5d91f038f7ae73231 (patch)
tree93e20c35b061ab13d971c4333d535243a076eece /macros/latex/contrib/annotate-equations
parent507fa9c669d7e4bc2c808f269113c6ced0b18827 (diff)
CTAN sync 202305070301
Diffstat (limited to 'macros/latex/contrib/annotate-equations')
-rw-r--r--macros/latex/contrib/annotate-equations/annotate-equations.pdfbin151252 -> 151073 bytes
-rw-r--r--macros/latex/contrib/annotate-equations/annotate-equations.sty7
-rw-r--r--macros/latex/contrib/annotate-equations/annotate-equations.tex6
3 files changed, 7 insertions, 6 deletions
diff --git a/macros/latex/contrib/annotate-equations/annotate-equations.pdf b/macros/latex/contrib/annotate-equations/annotate-equations.pdf
index e7b9b340f2..b8ea793928 100644
--- a/macros/latex/contrib/annotate-equations/annotate-equations.pdf
+++ b/macros/latex/contrib/annotate-equations/annotate-equations.pdf
Binary files differ
diff --git a/macros/latex/contrib/annotate-equations/annotate-equations.sty b/macros/latex/contrib/annotate-equations/annotate-equations.sty
index 0c471b13c3..a781a773d7 100644
--- a/macros/latex/contrib/annotate-equations/annotate-equations.sty
+++ b/macros/latex/contrib/annotate-equations/annotate-equations.sty
@@ -5,7 +5,7 @@
%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{annotate-equations}
- [2023/03/05 v0.2.1 easily annotate equations using TikZ]
+ [2023/05/06 v0.2.2 easily annotate equations using TikZ]
%%% lualatex compatibility, from https://tex.stackexchange.com/a/351520/171664
\RequirePackage{ifluatex}
@@ -170,6 +170,9 @@
\colorlet{currentcolor}{.}
\def\myEAcolor{\usevalue{\myEAmark}}%
%
+ \def\EAspace{ } % workaround: did not find any other way of getting a space into \myEAlabelanchor without upsetting LaTeX/PGF/... somehow
+ \edef\myEAlabelanchor{\EAlabelanchor\EAspace\EAwesteast}%
+ %
%
\def\myEAxshift{\EAxshift{\EAwesteast}}%
\begin{tikzpicture}[overlay,remember picture,>=stealth,nodes={align=left,inner ysep=1pt},<-]
@@ -182,7 +185,7 @@
\foreach \EAmark in \myEAmarks
\draw [color=\myEAcolor, annotate equations/arrow] (\EAmark.\EAmarkanchor) % arrow from the equation
% \EAmarkanchor north: above the equation, south: below
- |- ([xshift=\myEAxshift,yshift=0.1ex] \eqnannotateCurrentNode.south \EAwesteast);
+ |- ([xshift=\myEAxshift,yshift=0.1ex] \eqnannotateCurrentNode.\myEAlabelanchor);
% - south east: we want line to end at bottom right of annotation text;
% - negative xshift makes it a little bit shorter;
% - yshift for aesthetics (\strut is ever so slightly too tall).
diff --git a/macros/latex/contrib/annotate-equations/annotate-equations.tex b/macros/latex/contrib/annotate-equations/annotate-equations.tex
index 5fc0aa6017..82383f69fb 100644
--- a/macros/latex/contrib/annotate-equations/annotate-equations.tex
+++ b/macros/latex/contrib/annotate-equations/annotate-equations.tex
@@ -26,7 +26,7 @@
text above listing,
#1}
-\title{\texttt{annotate-equations.sty}, v.0.2.1}
+\title{\texttt{annotate-equations.sty}, v.0.2.2}
\author{ST John}
\date{\url{https://github.com/st--/annotate-equations}}
@@ -131,7 +131,7 @@ One annotation can point to multiple targets, and multiple annotations can point
\end{equation*}
\annotate[yshift=1em]{left}{node1}{my}
\annotate[yshift=-0.5em]{below,left}{node2}{annotation}
-\annotate[yshift=-1em]{below}{node3}{text}
+\annotate[yshift=-1em]{below, label below}{node3}{text}
\end{LTXexample}
\noindent
%
@@ -362,8 +362,6 @@ a \mathrel{\tikzmarknode[outer ysep=5pt]{node1}{=}} b
\section{Known issues}
\begin{itemize}
- \item \texttt{label above}/\texttt{label below} is not implemented for \verb|\annotate|.
-
\item Annotations of mathematical relations require some manual patching to get the correct surrounding spacing (see \cref{sec:mathrel}).
\end{itemize}