
\tikzparentnode
내부에 명령을 입력할 수 없습니다 \newcommand
.
오류를 반환합니다 Undefined Control Sequence
.
이것은 내 명령 정의입니다.
\newcommand{\childstyle}[4]
{
#1/.style = {fill=#2, grow=down, xshift=#3, anchor=west, text width = #4, edge from parent path={(\tikzparentnode.south) |- (\tikzchildnode.west)}}
}
내 문서의 활용도:
\begin{tikzpicture}[
.....
\childstyle{L3}{green}{1em}{3cm}
...... % ohter definitions
]
어떤 제안이 있으십니까?