In the following example, I'm trying to "skip" a level in my TikZ tree.
On other threads I saw the recommendation to add , tier=text
to relevant nodes to assign them manually to another tier. This does not do the job for me, this only changes the alignment - I want to achieve the following. The second option, an empty node (see MWE below) leaves an annoying white space behind.
If the line between 'Tier 1' and 'Tier 3.1' is continuous, I'm happy. But what I'm basically trying to achieve, is to display more 'Tier 2' nodes underneath eachother, because it will not fit on the page otherwise (if I list them out horizontally on Tier 2)
MWE:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[edges]{forest}
\forestset{
direction switch/.style={
for tree={edge+=thick, font=\sffamily},
where level>=0{}{draw},
where level>=2{folder, grow'=0}{for children=forked edge},
},
}
\begin{document}
{\footnotesize
\begin{forest}
direction switch
[Tier 0
[Tier 1,
[Tier 2.1
[Tier 3]
]
[Tier 2.2]
[Tier 2.3]
[%the empty node
[Tier 3.1]
[Tier 3.2
[Tier 4]
]
[Tier 3.3
]
]
]
]
]
]
\end{forest}
}
\end{document}