Questions tagged [forest]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Add a description to file structure

I would like to add a file structure to my document and be able to add a description to each directory/file. From another Question I got the file structure like this: \usepackage{forest} \begin{...
1
vote
0answers
50 views

No ordinary family tree. Howto insert Son/Daughter in Law?

With the tree above in mind, i am trying to get something like this: So far little luck, this is where i am now: I also tried forest, but still can't get the job done. \documentclass{article} \...
4
votes
1answer
36 views

Merging leaves in a forest tree

I am trying to get the leaves a a tree to converge, like this: But I don't want B_{n-2}(x) to be drawn twice, I want B_{n-2}(x) to be at the terminus of two lines, one originating from B_{n-1}(x+1/2),...
0
votes
0answers
33 views

Spurious dot appearing at lower left with forest

I've got this very strange problem with trees I'm drawing in forest. At the lower-left of every tree I get this spurious, errant dot. Here's an example: \usepackage{pgfplots} \pgfplotsset{width=...
5
votes
2answers
87 views

Follow-up: Drawing Game Tree with Curved Informational Sets and Several Nodes, using Tikz and Forest

This is a follow-up from Drawing game tree - Tikz or Forest? The sequential game tree I am trying to draw is this one: I am using tikz and forest to draw it, but I am still far from it. In ...
5
votes
2answers
251 views

Drawing game tree - Tikz or Forest?

I am trying to draw the following tree: Below is the code I have so far, and I don't know how to do it accurately. Also, I am using "forest." Would it be better to use Tikz? \documentclass{article} ...
3
votes
1answer
28 views

Tree diagram has lopsided branch

I'm attempting to draw a tree diagram using the forest package that shows the morphological derivation of a word. However, when I align the terminal nodes, the highest branch looks lopsided. This is ...
2
votes
1answer
43 views

Forest package: problems with height

I am having trouble with the height of the arrows, how can I fix it? \documentclass{article} \usepackage[edges]{forest} \usetikzlibrary{shadows.blur,shapes.multipart} \tikzset{grimsel/.style={...
5
votes
1answer
91 views

Effects on rectangles

I want to make my diagram’s rectangles look like these, the arrows and rectangles are in bold plus they have a shadow effect: Right now they look like this: \documentclass{article} \usepackage[...
3
votes
1answer
111 views

Hierarchy diagram

I’m trying to resemble what’s on the picture by using a template. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level 1/.style={sibling ...
2
votes
1answer
25 views

Align text and bottom of forest tree

How can I align text around forest tree's bottom node? Fox \begin{forest} [PAST [jumped]] \end{forest} over fence Or are there more cleaner ways to insert text above words?
4
votes
1answer
52 views

Why do my branches appear above my nodes in forest?

I'm using forest to draw decision trees, and, if a node has two branches, everything displays as it should. However, once a node has three, the top two branches display above the node. Here's an ...
5
votes
1answer
60 views

Beamer and `forest`: Dynamically highlight a path from the root to a node in a tree

I would like in a Beamer document to dynamically highlight a path leading from the root of a tree (defined using the forest package) to a specific node by defining a forest style. Below is a minimum ...
3
votes
1answer
44 views

Putting forest trees in table cells

I would like to put a forest tree in each cell of the first column of a table. There are some issues when I do this: The spacing is too tight, and the numbers in the rest of the table go to the bottom....
0
votes
0answers
27 views

tikzpicture tab inside Forest doesn't work

i would like to know why compliling the tree without the tikzpicture go well, even they are some errors, else i don't get the tree i would like \PassOptionsToPackage{svgnames}{xcolor} \...
2
votes
0answers
26 views

Multi part nodes in `forest` tree [closed]

In forest I like to use multi part nodes. In experiments I use the following simple MWE: \documentclass[tikz, margin=3mm]{standalone} \usepackage{forest} \usetikzlibrary{shapes.geometric, } \begin{...
1
vote
1answer
73 views

Forest package: eliminate vertical space between parent and child

I would like to zero the vertical distance between a node and some of their children. (I would be satisfied if I could do this for a node with a single child.) The desired effect is similar to a ...
2
votes
1answer
35 views

Depth first step by step construction on forest tree

Currently using forest to display Tableaux trees on beamer. For some cases i want a depth first step by step animation for the construction of the tree. The idea is to start with the root visible, ...
2
votes
1answer
39 views

Reduce level height (and also horizontal separation) in Forest

This is probably a stupid question for anyone well-versed in TikZ, but I'm not well-versed in TikZ and just want to create som simple tree structures. Hoping for a quick fix. My trees typically have ...
2
votes
1answer
57 views

Different settings for figures in Tikz

I have a beamer with many figures. The problem is that now I want something that requires settings that are in contradiction with what was defined beforehand. I have : - A main file where all the ...
1
vote
1answer
37 views

Draw a particular hierarchy tree diagram with a connector of the before to last level to the last one

I use the code found here To draw a hierarchy tree diagram \documentclass[tikz,border=10pt]{standalone} \usepackage[edges]{forest} \usetikzlibrary{arrows.meta} \begin{document} \begin{forest} for ...
3
votes
2answers
83 views

Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)

I'm new here and I only recently started to use LaTeX. This is what I'm trying to achieve: Notice the vertical lines and the oblique lines. Vertical lines represent headedness. This is what I'm ...
4
votes
2answers
60 views

forest, changing `s sep` such that it is at each second end node larger?

The following MWE generate a tree diagram (using the forest package) as I like to have: \documentclass[border=3mm]{standalone} \usepackage{forest} \begin{document} \tikzset{ELS/.style={% Edge Label ...
1
vote
1answer
39 views

Remove circles & add colors to elements of Tree

Question: I am looking for the image added below. And i want to add different colors to every nodes. This what I have done so far: \documentclass{article} \usepackage{forest} \begin{document} ...
4
votes
0answers
24 views

Edge of prooftree takes on style of other edge if move by is used twice

I use the package prooftrees, which is based on the TikZ forest. As I have to draw proofs with many branches, I want some nodes to be lower, which is supported by the "move by" option. However, if I ...
3
votes
1answer
59 views

How to rotate a decision tree

I want to draw a horizontal decision tree. Can anyone help me to modify my code? I'm new here. So if my question is not clear, pls let me know :) Thanks a lot! \documentclass[11pt]{article} \...
1
vote
2answers
78 views

Aligned subfigure captions or phantom forest branches

I have a figure with two subfigures of different heights. I'd like the subcaptions to align at the bottom. This could probably be done with some kind of alignment stuff, or by creating a phantom '[RTR]...
2
votes
1answer
69 views

Avoiding jumping nodes in a tree with forest and beamer

There is something in the manual about avoiding jumps and it is explained here Avoiding jumping frames in beamer as well. But I have maybe a different situation in trees. Is there a way to avoid the ...
2
votes
2answers
164 views

Forest - TeX capacity exceeded, sorry [save size=80000]

I am a novice when it comes to anything related to Latex, so I am sorry if I am unclear or dense. I am using the latest Trisquel operating system. I am trying to make a large tree with Forest from ...
1
vote
1answer
31 views

Display count of leaves(depth) at each level in tree

I am drawing a tree like given below. The MWE for it is below: \documentclass[]{article} \usepackage{forest} \title{} \author{} \begin{document} \date{} \begin{forest} [n ...
2
votes
2answers
213 views

Simple trees for mathematics

I have to draw many simple trees similar to the ones depicted for instance at page 128 or 133 of this beautiful book by Cheng and Lauda. I used to have some knowledge of the package forest, but ...
1
vote
1answer
40 views

How to place forests beside each other

I have three forests, which I want to place beside each other, I have cooked up what I want it to look like. Here, is the MWE for the forests: \documentclass{article} \usepackage{forest} \begin{...
2
votes
2answers
140 views

forest tree nodes

I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0 nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). ...
1
vote
1answer
43 views

Macro based flags for forest tree

I'm using simple y/n macros as flags in my document to include or exclude certain parts of the overall document (these normally are in a separate "config.tex" file for ease of use). With the forest ...
3
votes
1answer
34 views

Adding coordinates to forest edge path

I've got: I'd like something like: Code: \documentclass{article} \usepackage{tikz} \usepackage{forest} \begin{document} \begin{forest} for tree={rectangle,rounded corners,draw, l sep=20pt, if ...
0
votes
0answers
46 views

Multiply dominated nodes in the forest environment [duplicate]

Edit: I think I need to join two different trees (there's two root nodes). I'm at a loss. I'm in a bit of a pickle. I need for the node that says A in the following graph to be dominated by two nodes ...
2
votes
2answers
110 views

Hierarchical diagram in tikz/forest - level options

Based on this hierarchical diagram in tikz using the forest package, i wanted a modified version of it. Currently i have \documentclass[tikz,border=10pt]{standalone} \usepackage{verbatim} \usepackage{...
3
votes
1answer
93 views

trees with straight spines, and not too much vertical space?

I want to be able to typeset syntactic trees in a way that will achieve the following: straight spine when there is no label on the nonterminal node obtuse angle at each (binary) branch (so the tree ...
4
votes
1answer
123 views

How to add multi-line text below a node in a tree in forest

I want to make a tree which has bulleted lists centered below the child nodes, like so: I've searched on TeX SE and found questions which describe putting labels below nodes, but it doesn't quite ...
2
votes
1answer
81 views

Title, section headings disappears when I use \usepackage{forest} with IEEE Access template

When I include a \usepackage{forest} all colored text title, section headings disappears with IEEE Access journal template How can I tackle this problem?
1
vote
1answer
154 views

Improving a decision tree drawn with TikZ / forest

I'm trying to create a decision tree in TeX, currently using the forest package, which uses TikZ under the hood. TikZ is black magic to me, and as a result so's the forest package, but I found a very ...
2
votes
2answers
72 views

Draw tree with leaves at different levels

I'm trying to draw a tree similar to the one depicted below (content of nodes is different). My leaves are very wide and I need to pack them closer together by "lifting" every other leaf up. Is it ...
2
votes
1answer
55 views

Align text to the left in Forest tree

An MWE is provided below: \documentclass{standalone} \usepackage[edges]{forest} \begin{document} \begin{forest} forked edges,for tree={grow'=0} [{Sino-Tibetan} [{Chinese [...
0
votes
1answer
24 views

Labels are missing in the Tree

In the following tree, the labels are concatenated to their parent node. For example in the first branch of the tree from left, I would like to have "the" as a leaf, but it sticks to D (its parent). ...
3
votes
1answer
76 views

Drawing a centrally aligned tree using LaTeX

I am trying to draw a tree in LaTeX via following code. It works; however, it is always aligned to the left. How I can make it aligned to the centre? \usepackage[T1]{fontenc} \usepackage[utf8]{...
2
votes
1answer
53 views

Forest tree diagram - arrows not aligning

I used this answer to create a similar tree: https://tex.stackexchange.com/a/256753/175628 However the arrows do not align: with the joining lines: Here is the forest code: \begin{figure}[H] \begin{...
5
votes
1answer
97 views

Strange error for passing parameter to forestset to draw tree

I am trying to draw a simple probability tree, where the probabilites could sometimes be fraction or decimals., this means, I will have to adjust the spacing. So I tried the below code. This produces ...
4
votes
1answer
70 views

Arrow with text near forest tree

Hello! I am trying to insert an arrow with text parallel to the tree. Thanks! \documentclass[11pt,titlepage,oneside,openany]{book} \usepackage{forest} \begin{document} \begin{forest} ...
1
vote
1answer
76 views

Horizontal alignment of nodes (with straight line edge connectors)

What I want is to have three nodes horizontally aligned (the root 1SA, the 1st level child "0--7 HL" and the second level child "Various distributions4") and having straight line connectors with the ...
3
votes
1answer
59 views

Forest - how to make nodes grow in separate directions

MWE: \documentclass{article} \usepackage{tikz} \usepackage[edges]{forest} \newcommand{\nodecircle}{circle,fill,outer sep=0,inner sep=1pt} \begin{document} \begin{forest} [,\nodecircle, ...