[Tex/LaTex] Decrease spacing between nodes and edges in forest

foresttikz-trees

I would like to decrease the spacing between start and end of an edge so that edged .

Take the following illustration as example (Left: before; right: after):
enter image description here

Code for the left tree:

\documentclass{standalone}
\usepackage{forest}

\begin{document}    
\begin{forest}
[A 
    [B] 
    [C]
]
\end{forest}  
\end{document}

Best Answer

You can adjust the inner sep, the l and l sep options:

\documentclass{article}
\usepackage{forest}

\begin{document}
\begin{forest}
[A
    [B]
    [C]
]
\end{forest}

\begin{forest} for tree={inner sep=2pt,l=10pt,l sep=10pt}
[A
    [B]
    [C]
]
\end{forest}
\end{document}

enter image description here

Related Question