I am trying to build a horizontal tree using package forest, though I don't manage to get the nodes well aligned. Here is an example and MWE:
\documentclass{article}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={
calign=center,
grow'=east, % tree direction
parent anchor=east, child anchor=west, % edge anchors
rounded corners, draw,
}
[A [B [C [D [E[F]]] [D' [E' [F']]] ]]]
\end{forest}
\begin{forest}
for tree={
calign=center,
grow'=east, % tree direction
parent anchor=east, child anchor=west, % edge anchors
rounded corners, draw,
}
[g [B [g [D [E[F]]] [D' [E' [F']]] ]]]
\end{forest}
\end{document}
What I would like to get is something like in the first tree, while as you can see from the second one, the text in the nodes influences their alignment.



\maxfontheight. I tried to google for it but found nothing – gtatr Dec 02 '16 at 12:13\setlength{\ttlhght}{\totalheightof{characters in your tree}}. I used this length to place a zero-width parbox (\newcommand{\hghtbx}{\parbox[c][\ttlhght]{0pt}{}}) in every node. – Jopie Mar 27 '20 at 09:26