I am using the forest package to draw a tree outlining a root interface that is implemented by an arrangement of classes inheriting from each other. I still need to work on the graphical layout, but I think I've got the basics:
\documentclass{minimal}
\usepackage{tikz}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
my label/.style={
label={[font=\ttfamily]right:{#1}},
},
for tree={
folder,
font=\ttfamily,
s sep=0.1cm,
grow'=0,
edge={line width=1pt},
fit=band,
},
[interface
[base class
[abstract intermediate class
[implementation class 1]
[implementation class 2]
[implementation class 3]
]
[different class
[implementation class 4]
]
]
]
\end{forest}
\end{document}
I need to add another set of descriptions to the tree. Each class has a text associated with it, and I need to display that text with a different font next to the tree on the right-hand side. I want to display the text on the same height as the technical class name that makes up the tree node, but I want to align the descriptions horizontally to achieve a "cleaner" look. Here is a mockup with some lines added to show the intended alignment:
minimal
for examples. It is not suitable.