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

learn more… | top users | synonyms

1
vote
0answers
46 views

Adding a specification concerning two daughters, one with special status, in forest

I want to produce the following figure with forest: So what I am looking for is a style specification that says that daughter 1 (frapp) and daughter 2 (ant) together relate to A. Daughter 2 (ant) ...
4
votes
1answer
36 views

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
8
votes
2answers
61 views

Maps between rooted trees using forest (and TiKz)

I had to draw rooted (upward oriented) trees (with leaves). I found the package forest useful, although most likely the work-arounds I employed are not really optimal in any proper sense. An example ...
2
votes
1answer
75 views

Having two forest figures and using tikzmark

I have two forest figures in the same figure environment and I want to use tikzmark in both of them. The outcome is supposed to look like this: My current code is this: \documentclass{article} ...
1
vote
0answers
23 views

How to create a horizontal tree using braces [duplicate]

I want to create a horizontal tree-like structure using braces, as in: Please forgive my lack of creativity. I tried using an equation, for example \begin{equation*} \text{Animals} \left\{ ...
4
votes
2answers
408 views

How can I draw a circle around an entire tree in forest?

For some reason that I cannot discern, using tikz={\node [draw,circle,fit to tree]{};} to draw a circle around nodes in a tree works as expected if the nodes are embedded in a larger tree. However, ...
0
votes
1answer
27 views

Listing or stacking nodes on top of each other in forest

I'm wanting to make a logic tree using forest that looks something like the picture below: I'm struggling to list the premises of the argument at the first node of the tree in the way that is done ...
3
votes
1answer
57 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
107 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
120 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
359 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
46 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
68 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
66 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
80 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
32 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
56 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
71 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
150 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?
4
votes
2answers
67 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
66 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
53 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
102 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: ...
6
votes
1answer
58 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
78 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'} ...
4
votes
2answers
85 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
56 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
134 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
106 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
74 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
166 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
1answer
157 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
81 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
195 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
58 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
83 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
88 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
151 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
64 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
47 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
68 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
259 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
44 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
72 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
130 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
78 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
49 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
132 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 ...