我正在尝试创建一棵树,其中子节点具有与其父节点相同的外观,但是在添加子节点并尝试使用相同样式时,我不断收到未知错误:
\PassOptionsToPackage{x11names}{xcolor}
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
[nonLeaf/.style n args={4}{minimum size=8mm, draw, line width=3pt, draw=MediumPurple3, fill=yellow, text=Blue4, rectangle, label={[align=left, xshift=-5pt]left:{$\alpha:#1$\\$\beta:#2$}}, label={[align=left]right:{$\alpha:#3$\\$\beta:#4$}}},
every child node/.style={nonLeaf}]
\node[nonLeaf={1}{2}{3}{4}]{19};
%child{node[nonleaf={5}{6}{7}{8}]{25}} <----- problem
\end{tikzpicture}
\end{document}