答案1
我只是复制了森林风格这个答案,并添加了一些宏来递归绘制方案。
\documentclass[tikz,border=10pt]{standalone}
\usepackage{forest}
\usetikzlibrary{decorations.pathreplacing}
\forestset{% from https://tex.stackexchange.com/a/257973/255043
forest scheme/.style={
for tree={inner ysep=0pt,
grow'=0,
anchor=west,
align=left,
if n=1{%
edge path={
\noexpand\path [\forestoption{edge}] (!ul.south west) -- (!u1.north west)\forestoption{edge label};
}
}{no edge},
edge={decorate, decoration={brace},thick},
},
}
}
\begin{document}
\bracketset{action character=@}
\def\MyTreeContent#1{\ifcase#1\relax
\or
\or
[Ciertas,tier=t2\MyTreeContent{3}]
[Contingententes,tier=t2\MyTreeContent{3}]
\or
[Vencidas,tier=t3\MyTreeContent{4}]
[Anticipadas,tier=t3\MyTreeContent{4}]
\or
[Inmediatas,tier=t4]
[Diferidas,tier=t4]
\fi}
\begin{forest}
forest scheme
@+
[Annualidades
[Simples
\MyTreeContent{2}
]
[Generales
\MyTreeContent{2}
]
]
\end{forest}
\end{document}