Hi I'm wondering how can I reference to current node name in execute at begin node
property.
\node[execute at begin node = \command_which_uses_node_name_to_to_do_soething_draw_uml_component_symbol] (){Node-name};
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHi I'm wondering how can I reference to current node name in execute at begin node
property.
\node[execute at begin node = \command_which_uses_node_name_to_to_do_soething_draw_uml_component_symbol] (){Node-name};
The node name is stored in \tikz@fig@name
at the time the code in execute at begin node
is executed.
Here's an MWE, which prints > \tikz@fig@name=macro:
->myname.
into the .log
file:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\makeatletter
\tikzset{
teststyle/.style={
execute at begin node=\show\tikz@fig@name
}
}
\makeatother
\begin{tikzpicture}
\node (myname) [teststyle] {Text};
\end{tikzpicture}
\end{document}
execute at begin node
).
Dec 28, 2012 at 8:32