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

learn more… | top users | synonyms

3
votes
1answer
48 views

Incompatibility of calc and some styles for forest

I got a cool solution for integrating a tabular-like object into a forest figure (Relating tree nodes in forest to content in a table) but this is incompatible with another cool solution for fixing ...
6
votes
1answer
94 views

Relating tree nodes in forest to content in a table

I want to draw the following figure: I now converted my trees to forest and the following code is what I have: \documentclass{article} \usepackage{forest} \forestset{ sn edges/.style={for ...
4
votes
1answer
117 views

Can I instruct the Forest nodes to be at a certain level?

The MWE below is a machine-generated organizational chart. It works almost fine, except for those employees, who report to more than one supervisor. I had to add regular TikZ nodes and draw the ...
6
votes
2answers
352 views

How can I draw -> in forest?

I want to draw like -> 123 in this forest by $\overset{\downarrow }{\mathop{123}}\,$none as defaut This is my code \documentclass[12pt]{standalone} \usepackage{amsmath} \usepackage{forest} ...
3
votes
1answer
35 views

Shifting a node over another node in forest

I have the following tree, which is non-projective and this is where the problems start =;-). In order to be able to draw it at all, I had to use a lot of phantom nodes and no edge declarations, but ...
3
votes
2answers
65 views

Meshed Tree and horizontal orientation

I want to implement a tree like shown in the pictucre in tikz: I found the forrest package, but wasn't able to achieve neither the 'half-horizontal' shape nor the 'meshed' shape yet. I would ...
0
votes
1answer
55 views

How to draw triangles as subtree with the forest package

I want to draw a binary tree using the package forest and I want simplify a part of the tree, drawing a triangle. I want also put a label on this triangle, and the label should be contained in the ...
3
votes
2answers
72 views

Aligning forest trees and getting the bounding box right

I want to set the following figure: I managed to recreate it using forest, but for reasons I do not understand, my command \menge, which I use for sets things that the forest trees are much larger ...
3
votes
0answers
30 views

Connecting two nodes from different forest trees [duplicate]

I want to draw the following figure without pstricks: What I have is the following code: \documentclass{minimal} \usepackage{forest} \usepackage[external]{adjustbox} ...
4
votes
1answer
46 views

Getting old school trees with forest

According to the manual of forestit was developed to get trees like the one on the right-hand side of the following figure rather then the one on the left-hand side: Usually I want the dense trees ...
2
votes
1answer
70 views

Passing a command as an argument

I got a solution for my quoestion about Smaller roofs for forest but I want to pass a command instead of text to a procedure and this causes an error: ! Argument of \@rsbox has an extra }. ...
2
votes
2answers
101 views

Diagram using Forest package

I want to create the tree diagram shown below using Forest package. I know that this tree can be produced using Tikz package, but I want to practice and learn Forest package. So, can anyone help?
2
votes
1answer
48 views

Aligning several forest trees in centered way

I want to align three trees in the way shown in the following figure: What I have now is the following code: \documentclass{minimal} \usepackage{forest} \forestset{ tag/.style={for ...
4
votes
2answers
58 views

Is it possible to put brackets round a Forest tree?

I want to create a tree using forest with large \llbracket and \rrbracket around it (semantic interpretation brackets). schemabox looks hopeful but doesn't seem to work. How do I do this? ...
2
votes
1answer
50 views

Defining a special edge style for connecting nodes in forest

I want to draw certain edges in a dependency tree with a piece of line pointing upwards as in the following picture: The code for this is: \documentclass{article} \usepackage{forest} ...
5
votes
1answer
93 views

Connecting arbitrary text in `forest`

I already asked this question with regard to tikz-qtree (Connecting text in a tikz-qtree with other text by arrow), but maybe there is a better way to do this in forest. I have the following tree: ...
5
votes
1answer
46 views

Eliminate distance from phantom node in forest

Ignasi's answer to Forest trees on the same line shows how to effectively draw two trees in the same forest environment using the phantom trick noted in the forest documentation. Doing this, however, ...
4
votes
2answers
72 views

Forcing a node or a tier to be set below a certain other node in forest

Working from Typesetting Dependency Grammar trees with discontinuous constituents I try to set a graph with two discontinuities. The first figure does what I want. It has nacc and the other N aligned ...
4
votes
1answer
54 views

Using controls without affecting the image size

I have the following tree in forest: \documentclass{article} \usepackage{forest} \usetikzlibrary{arrows} \tikzset{ %Define standard arrow tip >=stealth'} ...
3
votes
0answers
38 views

sn edges and nice empty nodes styles in forest lead to dividing by zero; what's going on?

The forest manual defines two styles: sn edges and nice empty nodes. They are defined as: sn edges/.style={for tree={parent anchor=south, child anchor=north}} and nice empty nodes/.style={for ...
2
votes
1answer
51 views

Typesetting Dependency Grammar trees with discontinuous constituents

I managed to typeset simple Dependency Grammar trees (Typesetting Dependency Grammar trees), but now want to have non projective graphs. The solution with forest is the following: ...
5
votes
3answers
131 views

Typesetting Dependency Grammar trees

I try to typeset dependency trees: Is there a package that does this? It should be compatible with xelatex, i.e. not be based on pstricks. I could not find anything with google or on CTAN. If ...
2
votes
1answer
90 views

Tikz/Forest: highlighting level background

I am using the Forest package and I am trying to paint a gray background for odd and even rows, as well as a label. I already had a version of this diagram that I wrote "manually" with tikz. But it ...
3
votes
2answers
73 views

Forest: four edges to one edge path

How to make four edges to one edge path? I have made ​​it up here: \documentclass[10pt,a4paper]{article} \usepackage[margin=2cm]{geometry} \usepackage{charter} \usepackage{forest} ...
4
votes
2answers
151 views

Drawing linked trees

I got great help earlier defining a tree using forest (thanks again to cfr!). I would like to be able to break down a tree into subtrees and draw links between them... either in the same forest or ...
1
vote
2answers
146 views

Making a probability tree using tikzpicture / forest

I want to create a probability tree using either tikzpicture or forest. I have experimented a little bit with both, but I'm running into some trouble with both of the programs. First, I have my code ...
6
votes
1answer
76 views

Overcome 'Dimension too large' when using the forest package with a lot of nodes

I am drawing a genealogical tree with the forest package in which I have approximately 50 nodes. I have reached a point where I get the message "Dimension too large" when I try to add another node. I ...
5
votes
1answer
183 views

TikZ: Re-arranging the hierarchical diagram

I was quite impressed by the solution given by "cfr" for the question posted here. Can you suggest a method to change the two main children (labelled Projection matrix Theory and Reconstruction ...
1
vote
1answer
54 views

increase vertical distance between nodes with forest

I have the following tree and want to increase the vertical space between the nodes. Is there a straightforward way to do this? \documentclass{article} \usepackage{forest} ...
2
votes
1answer
79 views

Downwards arrows in forest

I have the following tree and want the connections between nodes to be arrows rather than plain lines. Is this possible? I found the edge option, but this does not provide an appropriate option. ...
1
vote
2answers
77 views

Add a node without content to a tree in forest

I switched to forest and now I wonder how to draw the following picture: I have the code below, but I cannot find out how to get the connection to dass right. I tried phantom nodes but then the ...
2
votes
0answers
138 views

Forest with ~500 nodes runs out of TeX memory

When using Forest package to chart an organizational structure, I have to limit it to 4-5 hierarchy levels, as both pdflatex or lualatex throw an error ! TeX capacity exceeded, sorry [save ...
2
votes
1answer
59 views

Sporadic node overlapping in a Forest

There is a node whose children overlap with the neighbor node's children's edges in the MWE below (the children of nodes 10070070 and 10071027 with ZZZZ and YYYY for text). The node Y seems to be ...
2
votes
1answer
44 views

Growing a Forest by 1 node corrupts PST barcode picture

Working on a different problem, I realized that QR Codes worked or did not work in the documents, different only in their Forest trees. It appears that if the 2nd last node (Child10) of Forest is ...
2
votes
1answer
63 views

Forest package: Left-align all nodes on every level

The tree below looks exactly the way it should. But is a more elegant way to left align all nodes on every level without explicitly specifying tier on every node? This is error-prone and really ...
1
vote
2answers
247 views

Placing text, includegraphics or a table above and below Tikz picture in standalone

The documents I am working with produce very large Tikz pictures (using Forest package) that span multiple horizontal and vertical pages in PDF. These pictures need to have titles, compbined of text, ...
1
vote
2answers
43 views

How to avoid a portion of an edge, drawn in parallel to the node box?

In the MWE below there is a horisontal portion of the blue nodes' edge, that is adjasent to the node box and visible at higher zoom. Is it possible to avoid that by changing a path or anchor? Shawn ...
2
votes
1answer
64 views

Proper syntax for z-levels inside Forest

After reading "Z-level" in TikZ I tried to implement z-layers in my Forest chart, but unsuccessfully: \documentclass{standalone} \usepackage{forest} \usetikzlibrary{backgrounds} ...
2
votes
2answers
120 views

Position a TikZ node in relation to a specific Forest node

Is it possible to avoid hardcoding the \node position in the below MWE and apply horisontal offset of the Forest node to the TikZ node it links to? The goal is to put the green nodes as close as ...
4
votes
1answer
76 views

Applying edge path to a specific level in Forest

This is a followup to the question at Is it possible to change the edges for some tree level using forest package? for lack of a followup question option. The modified MWE below does almost 100% of ...
1
vote
1answer
47 views

Level separation height in Forest seems to have no effect

How can I increase level separation to keep the tree nodes aligned when the node texts include the line breaks? l sep seems to have no effect. \documentclass{article} \usepackage{forest} ...
6
votes
1answer
127 views

Is it possible to change the edges for some tree level using forest package?

Is it possible to change this MWE which is using forest package to produce a tree, similar to that produced by the next MWE that is not using forest? The very last level of child nodes would have to ...
6
votes
1answer
94 views

Is it possible to use \node paths directly in forest?

The following simple example shows that when a tikzpicture is used directly as a forest node, some of its paths seem to be ignored: \node paths seem to be ignored while, for example \draw paths are ...
0
votes
0answers
26 views

Forest package does not pick up \tikzsetfigurename command with externalization enabled

I am using the forest package and have enabled externalization by adding the [external] option when loading the package. I'm already using TikZ with externalization enabled and for each chapter I set ...
8
votes
2answers
192 views

Using tikz overlay / remember picture option with forest trees

I want to connect two forest trees with an arrow, in a similar way it is discussed here for plain tikz trees. However, it seems to be impossible to add options to the forest environment in a similar ...
2
votes
1answer
121 views

Regular Expression AST with forest or qtree

I would like to represent an abstract syntax tree over a regular expression. Preferable in the form of the following tree: <regexp> | ...
6
votes
1answer
133 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
344 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
122 views

Unbalanced binary tree with forest

How can one draw an unbalanced binary tree - with missing nodes using the forest package?
3
votes
2answers
173 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} ...