Following on from forest respecify branch positions 2, if there are an odd number of nodes I would like the middle one to be centred.
The manual (p71) says to use this:
\begin{forest}
[manual correction of B
[A[1][2][3][4]]
[B,before computing xy={s/.average={s}{siblings}}]
[C[1][2][3][4]]
]
\end{forest}
This gets B centred nicely.
However, if I change the anchor point so that the edges emanate from the east point of a node, it still uses the centrepoint of the node for calculation purposes. How would I adjust this so that the anchor point is the new centre of the node.
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{forest}
\begin{document}
\begin{forest}
[top, s sep=1cm,child anchor=90
[A,child anchor=90]
[B,parent anchor =south,before computing xy={s/.average={s}{siblings}}]
[{CDDDDDDDD}, parent anchor=-10
[A]
[B]
[C,before computing xy={s/.average={s}{siblings}}]
[D]
[E]
]
]
\end{forest}
\end{document}
i.e. the C in the bottom row is vertically below the start of the edges leading to A B C D E, rather than vertically below the middle of the parent node? Probably needs some horizontal shift by the length of the parent node's contents.



\begin{document}. And\begin{forest}. – cfr Jun 18 '18 at 23:25