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

learn more… | top users | synonyms

6
votes
3answers
86 views

Autosegmental Representation in tikz-qtree

This is what I want to achieve and this: But all I've been able to make with tikz-qtree is the following: \documentclass[12pt,a4]{article} \usepackage[utf8]{inputenc} ...
6
votes
2answers
37 views

Changing the size of empty nodes in forest

I want to set the following picture: The following forestcode almost does it: \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} for tree={fit=band,parent ...
5
votes
2answers
36 views

LaTeX Error: Missing \begin{document} with forest-GP1

I'm trying to use forest-GP1 which is a style in Zivanovic's forest-package (for phonological representation) found on github. I have added the .sty file to the same directory as the relevant .tex ...
1
vote
1answer
83 views

Upside-down trees in forest

I'm trying to typeset a tree which grows upwards using the forest package. The problem I have is that as soon as I leave the first level, branches start growing back down again. Here's the code: ...
9
votes
2answers
62 views

Two lines in a single node in Forest

I have recently switched from the tikz_qtree package to forest. Now I'm trying to change my trees to fit the forest coding. However, I can't find the way to let a single node contain two lines. I do ...
0
votes
1answer
21 views

Associating two children to one parent in Forest [duplicate]

I am trying to draw a nice multi-dominance. I find the gap between the two lines above "V" is ugly. Is there any way to move the lower end of the line in red square so that the two lines meet at one ...
7
votes
1answer
42 views

How to remove an unwanted line in forest?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} [TP [DP] [T' [T] [VP [DP] [V', name=node [V] [DP] ] ]]] ...
4
votes
1answer
22 views

How can I set a style in `\forestset` which requires delayed calculations with the results of node walks?

What is the correct way to wrap the specification for the tree below into the my binomial style defined in \forestset and why? The following code works fine: ...
6
votes
2answers
112 views

Tikz Forest label positioning

I'm constructing a tree diagram using the forest package, and I want to label the edges. Usually, Tikz is quite good at avoiding a collision between the label and the edge, but if the branches of my ...
0
votes
1answer
25 views

forrest hierarchical diagram that will fit in landscape mode for 8.5“ by 11” document

Is there a way to use the pictured hierarchical diagram and load it into latex so that it fits into landscape on a 8.5" by 11" document that won't affect header and footer/page number? somewhat new to ...
0
votes
0answers
54 views

Is there a way to systematically ignore specific error messages?

When I compile my documents with a lot of trees, I often get the following error code: ! Dimension too large. <recently read> \pgf@xa l.1042 }} This error is due to some temporary ...
2
votes
2answers
117 views

Forest causing PdfLatex to run out of memory

I asked this question almost a year ago but did not have much luck. MikTex's PDFLaTeX has been updated since, but the error is still there: ! TeX capacity exceeded, sorry [save size=50000]. Full ...
3
votes
1answer
49 views

Arrows with texts in forest?

\documentclass{article} \usepackage[margin=.8in]{geometry} \usepackage{forest} %main + for elongation of two branches of a node \usepackage{tikz-cd} \begin{document} \begin{forest} baseline, for ...
6
votes
1answer
96 views

How can I draw -X in the forest package?

I want to draw a dead-end in forest. edge={-X} doesn't work. Example: \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} ...
4
votes
1answer
105 views

setting all nodes of a tree in italics with forest

I want to define a style for setting type hierarchies with forest and the types should come out in italics. I read the manual, but ... I found some examples that use the content of a node and do ...
5
votes
1answer
95 views

Lazy Evaluation in Forest Package?

I'm using the forest package to draw logic circuits, and I'm trying to customize the style. I want the inputs to be aligned, so I write this macro: \newcommand{\inp}[1]{[#1,tier=in]} But when the ...
2
votes
1answer
23 views

Using Forest Package in Newenvironment

I'm trying to use the forest package to draw circuits, so I want to define a "circuit" environment that is a wrapper around the forest environment. But defining a newenvironment runs into problems. ...
1
vote
1answer
71 views

Draw multiple inheritance hierarchies

I have to draw multiple inheritance type hierarchies. The worst case is something like the following: I used tables and tree-dvipsto draw these figures, but I am now looking for something that is ...
3
votes
1answer
58 views

How to use bracket symbol in node name in forest?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} [Z [$K[2]$] ] \end{forest} \end{document} How can I use brackets in a node name? Not necessarily inside math. The above ...
5
votes
2answers
216 views

CV skeleton with forest package

\documentclass{article} \usepackage[margin=.8in]{geometry} \usepackage{forest} \usepackage{tikz} \begin{document} \begin{forest} baseline, for tree={anchor=center, align=center, l sep+=0em, s ...
4
votes
2answers
82 views

How to add a numbered label to syntax tree?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} baseline, for tree={parent anchor=south, child anchor=north, align=center, l sep+=0em, s sep+=4em} [T$'$ ...
2
votes
1answer
77 views

How to draw hierarchical graph like this one?

I want to draw the graph like this . However, I only came this one, it seems so ugly. I am frustrated, can anyone help me to get what I wanted? My code is given as follows ...
2
votes
1answer
98 views

Reducing forest tree width without squashing

Apologies if this is a silly question - my first on stackexchange. I have built the tree below using the forest package. Unfortunately, the tree has got too "wide" for the page. Is there a way to ask ...
8
votes
3answers
190 views

How to move tree leaf nodes horizontally after automatic positioning?

I'd like to draw trees like the following: That is, I have edges which are crossing. The tree should be drawn like a regular tree (without crossings) except at the last level where the leaves can ...
3
votes
2answers
79 views

How to format a language tree?

I would like to format the a language tree with XeLaTeX. The question is how to balance it so that it fits within the page width. Monospaced font In a mono-spaced font it looks like indicated ...
1
vote
2answers
58 views

How can I put something under something in a Tree?

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{grow'=right,level distance=32pt} \tikzset{execute at begin node=\strut} ...
3
votes
1answer
59 views

Declaring a node to be a phantom node breaks connections between sisters in forest

I wrote a style for forest that can be used to connect a tree node with its sibling to the left and to the right. This works very nice for cases like the one below. Now I want to connect two nodes ...
2
votes
1answer
70 views

How to lengthen edge in forest to be the length of the edge label?

How can I increase the length of the edges in a forest tree so that they are (at least) the length of the edge label that I wish to give them. For example, this code: \documentclass{article} ...
1
vote
0answers
116 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) ...
5
votes
1answer
66 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 ...
9
votes
2answers
114 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 ...
4
votes
1answer
203 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
25 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
464 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
34 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
66 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
136 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
147 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
396 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
64 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
83 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
117 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
122 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
33 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
81 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
76 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
456 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
113 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
70 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
64 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} ...