
Não consigo inserir \tikzparentnode
o comando dentro do arquivo \newcommand
.
Ele retorna Undefined Control Sequence
erro.
Esta é a minha definição de comando:
\newcommand{\childstyle}[4]
{
#1/.style = {fill=#2, grow=down, xshift=#3, anchor=west, text width = #4, edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}}
}
Utilização no meu documento:
\begin{tikzpicture}[
.....
\childstyle{L3}{green}{1em}{3cm}
...... % ohter definitions
]
Alguma sugestão?