I want to pass an information to a pgfkey that has to produce some code relatively to the node in which the key is set.
In this example I'd to access to the node (a) and put another node at (a.north east). (**) is the coordinates of the calling node (a) but I don't want to pass (a), the key has to guess by itself.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\newlength{\MboxL}
\tikzset{/.search also={/tikz},
title/.code={\node[red] at (**) {#1};},
}
\begin{tikzpicture}
\node[draw,title=Nounours] (a) {The} ;
\end{tikzpicture}
\end{document}
\node[draw, label={[above,red,anchor=south west]:marmot}] (b) {The};– Ignasi Mar 28 '18 at 07:50