I have many trees in my latex document that are too big and make it hard to make the typesetting of the surrounding text look good. Therefore I want to decrease the vertical length of the tree by decreasing the distance between the nodes. I have tried the solution in this thread, by including this code:
for tree={
l sep-=1em,
},
The only effect is that the distance between the node labeled DP and the node Manne, triangle, is decreased. The rest of them stay the same.
I have loaded the gb4e package in since I need it in the actual document and no reason related to the actual problem of this post.
\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage{forest, gb4e}
\forestset{
sn edges/.style={for tree={parent anchor=south, child anchor=north,align=center,base=bottom{}}},
background tree/.style={for tree={text opacity=0.2,draw opacity=0.2,}},
qtree/.style={
baseline,
for tree={
parent anchor=south,
child anchor=north,
align=center,
inner sep=1pt,
}},
nice empty nodes/.style={for tree={calign=fixed edge angles},delay={where content={}{shape=coordinate,for parent={for children={anchor=north}}}{}}}
}
\tikzset{every tree node/.style={align=center,anchor=north}}
\begin{document}
\begin{exe}
\ex
\begin{forest}
for tree={
l sep-=1em,
},
qtree, nice empty nodes,
[TP
[T]
[\textit{v}P,
[AdvP
[sneehpeslaakan, triangle]]
[\textit{v}P
[DP
[Manne, triangle]]
[{}, s sep=15pt
[VP
[DP
[gærjah, triangle]]
[t{\scriptsize V}]]
[\textit{v} \\ lohk]]]]]
\end{forest}
%\end{xlist}
\end{exe}
\end{document}
I get the following output:



nice empty nodesstyle. If you remove it, the tree gets nicer (except for the empty nodes...). – Alan Munn Aug 05 '16 at 23:19nice empty nodesand also alter the distance between the nodes? – David Kroik Aug 05 '16 at 23:34