{forest} is about a trees in {diagrams} created with the forest package. It is built upon {tikz-pgf}.

learn more… | top users | synonyms

5
votes
1answer
38 views

Understanding forest options when customising trees

This is a follow-up to Gonzalo Medina's answer to this question. The solution offered there includes the following code at the start of the forest environment: edge path={ ...
6
votes
3answers
145 views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
3
votes
2answers
47 views

Unbalanced binary tree with forest

How can one draw an unbalanced binary tree - with missing nodes using the forest package?
3
votes
2answers
54 views

Scale of a {forest} tree

How can I change the scale of a tree made with the forestpackage? I work with beamer, and sometimes my trees are a bit too wide, so they finish after the limit of the frame : \documentclass{beamer} ...
3
votes
1answer
29 views

Getting rid of a default where specification

I specified a wheredeclaration in order to align all words in a tree at the base level. My book probably contains one tree that does not fit this default. How do I get rid of the default so that ...
7
votes
1answer
69 views

Smaller roofs for forest

I have the following tree. I want the roofs to be as wide as the text not wider. Is there a way to do this with forest? In particular it should be the width of the upper text. This is important in ...
0
votes
0answers
17 views

Decreasing the distance between node labels and connecting lines in forest

I use the following code to produce trees like the two left ones in the figure. \documentclass{minimal} \usepackage{forest} \forestset{ sn edges/.style={for tree={parent anchor=south, child ...
0
votes
0answers
21 views

Specifying the distance between levels in forest

I would like to have more space between the first level and the second level in the tree below. In tikz-qtree I can use \tikzset{level 1+/.style={level distance=3\baselineskip}} \tikzset{level ...
0
votes
0answers
14 views

Making a certain tree style the default for forest

We are putting together latex calasses for books. We want to make a certain tree style the default for forest. With the example below one has to define the style (sn edges) in every tree. Is there a ...
4
votes
1answer
70 views

Presenting a {forest} tree from bottom to top in beamer

I would like to present a tree with forestin beamer, but parts after parts, starting from the bottom, and then ascent to the top. So let's consider a simple tree like the following : ...
3
votes
1answer
38 views

Put a {forest} tree inside a {philex} enviromnent

I use the forestpackage to draw linguistic trees, and the linguexpackage to create numeric examples. But there seems to be a problem when I combine the two. The tree is not aligned with the number of ...
0
votes
0answers
31 views

Get error “Undefined control sequence \end{forest}”

I have tried to compile the following document: \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} [A [B] ] \end{forest} \end{document} I get the error message ...
6
votes
2answers
144 views

forest trees: rounded rectangle nodes overlap

I am drawing a tree with the help of the forest package. Some of my nodes use TikZ's rounded rectangle style (see manual p.458). However, the round sides of those nodes overlap. How do I fix that? ...
3
votes
1answer
96 views

Forest: different growing directions for branches on the same level

Problem In TikZ, one can control the growing direction of a branch (and its sub-branches) by using the grow=<direction> key. In forest, however, the grow key only controls the growing direction ...
8
votes
4answers
140 views

Forest trees on the same line

I need to put two trees (package forest) side by side, but I haven't find any info on the package documentation. \begin{forest} [P1 [SN [N[Mary]]] [VP [V[loves]] [N[Luke]] ]] ...
5
votes
1answer
160 views

How to connect two parents to the same child, with parents not in the same tree?

I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree. Here's the code I have for the moment: ...
5
votes
2answers
153 views

Error using \tikzexternalize with forest

Using forest package for simple truth trees, and I want to externalize because there are a lot of them. Here is the code example: \documentclass{article} \usepackage[external]{forest} ...
2
votes
2answers
146 views

beamer, forest, bulleted list inside

How can I use a bulleted list in a forest environment \documentclass{beamer} \usetheme{CambridgeUS} \usepackage{tikz} \usepackage{forest} \begin{document} \begin{frame}{Conceptual model-functional GI ...
6
votes
1answer
219 views

beamer and forest

I am preparing beamer presentation and flow chart using forest. For some reason, it is suggesting extra } or problem with \end{frame}. Here is the code: \documentclass[12pt,a4paper]{beamer} ...
5
votes
1answer
225 views

Customized edge in forest tree

Following the examples in the documentation, it is not too difficult to customize the edge of trees using the tikz-qtree package. The following code illustrates it: \documentclass{standalone} ...
1
vote
1answer
131 views

How to specify anchor styles in {forest} trees?

I'm using {forest} to make a simple tree and I want the edges for all nodes to be filled arrows (southward directed) of a larger than normal size (so that the image I'm creating resizes well when ...
6
votes
1answer
927 views

Multi-rooted Tree-like Structures and Nodes with Multiple Parents in LaTeX

The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate: Multiple roots & Nodes with multiple parents in a tree in LaTeX?
3
votes
4answers
407 views

What is a more efficient way to draw this tree?

I have drawn the following tree in TikZ. What I don't like about it is that I have to manually adjust the sibling distance for each level; and the syntax is too cumbersome. It has been suggested ...
11
votes
1answer
431 views

Using beamer overlays with forest generated trees

I am using the forest package from Sašo Živanović in order to create a wide tree on a beamer slide. Previously, I was using qtree. But due to the easier way of arranging nodes automatically with ...
5
votes
1answer
409 views

Square edges in forest package

I can easily do trees with horizontal (square) edges in tikz-qtree (see MWE). The forest package is however a far superior alternative for my purposes. However, every attempt to do either horizontal ...
14
votes
1answer
349 views

Is it possible to emulate qtree with forest?

This question was actually asked by Alan Munn in a comment to How do I create a LCM tree diagram?. I repeat (and self-answer) it here because the answer is too long to fit the margin :-) qtree is a ...