Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
3
votes
2answers
55 views

Binomial queue in forest?

I was hoping to get some help drawing a binomial queue with the forest package. All I can find are references to binomial trees, but I am looking to replicate this: I tried using phantom to make ...
2
votes
2answers
35 views

forest - labeling levels in a horizontal tree

Consider the following example that simulate the desired output: \documentclass{article} \usepackage[edges]{forest} \begin{document} \footnotesize\sffamily one~~~~~~~~two~~~~~~~~~~~~~~three~~~~~~...
2
votes
1answer
32 views

add text on the edge of line in proof tree

How can I do this in latex ? This is what I've tried, \documentclass{amsart} \usepackage{forest} \begin{document} \begin{forest} [$(\lnot \,A \to (B \to \lnot C)$ [$\lnot \, A$...
1
vote
1answer
34 views

How do I rotate labels in a tree diagram drawn with forest?

I am in the process of drawing a huge tree diagram that I want to fit on a single page (at the moment it does not fit on an A1 page). A simple way to do this would be to rotate the labels. I know this ...
2
votes
1answer
49 views

How to have two root nodes in forest package?

I'm using forest to make trees. This package automates the measurements and placements of the nodes (which is great!!) I want a node of a forest-tree to be accommodated in two trees. Have a look at ...
0
votes
1answer
62 views

organisation chart with latex [closed]

Third Level Organizational Chart using Latex Tikz adding branches directly under the Controller to set up his secretariat and certain resposibilities directly under him--how do i do it??
1
vote
1answer
33 views

Margins, forest package, text on page and node centering

I'm trying to draw a figure describing a timeline and would like help with 2 aspects of it 1) I'm trying to add some notes to a forest made in LaTeX. I have modified margins and resize boxes in order ...
5
votes
2answers
46 views

Shift children and subtrees horizontally in forest

I am trying to draw a tree diagram with forest package. In order to have the diagram fitting within the page margins, I moved down the subtree of NastranBulkData object, as you can see from the image. ...
0
votes
1answer
31 views

Children misalignment in forest

Problem I am trying to draw a tree diagram with forest package. I have multiline children including the \texttt command and a one-line child with normal text. This results in a misalignment among the ...
0
votes
1answer
44 views

Making a directory tree with custom symbols (symbol for MATLAB file)

I am trying to draw a directory tree. As the tree should visualize the structure of a MATLAB framework, i would love to represent the matlab files with the corresponding icon, e.g. I found the ...
1
vote
1answer
25 views

why not vertically aligned in the forest

\documentclass[border=3pt]{standalone} \usepackage{forest} \usetikzlibrary{shadows,arrows.meta} \tikzset{parent/.style={align=center,text width=3cm,fill=green!20,rounded corners=2pt}, child/.style=...
1
vote
1answer
30 views

Reflow TikZ Forest from West-East to North-South

I have the following TikZ forest: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning,automata,fit} \usepackage{forest} \tikzset{ >=stealth, auto, thick, ...
2
votes
1answer
37 views

Create a phantom node which takes up no space with forest 2.1.5

It is basically the same question as Forest: Create phantom node which takes up no space? but the solution offered there does not work with forest 2.1.5. I want the phantom S not to take space. I ...
7
votes
1answer
267 views

Illustrating the random forest algorithm in TikZ

I'm trying to illustrate the workings of a random forest in TikZ by combining these two figures. The TikZ picture should have the different tree structures present in the second image while also ...
2
votes
2answers
53 views

Tikz: tree and reverse tree combined together

I need to reproduce the following image in tikz: I started by drawing the upper part: the "normal" tree. I used forest to do this. But, I have no idea on how to do the lower part...the "reversed ...
5
votes
2answers
135 views

How do you reproduce this composed image with tikz?

I am not able to reproduce the following image with tikz: I am able to draw each single tree, but I have no idea how to combine them to get the image shown above. How do you arrange them? How do ...
0
votes
1answer
32 views

Uniting tree branches in the forest package

I have the following forest in Beamer: \begin{forest} for tree={ align=center, font=\sffamily, %edge+={thick, -{Stealth[]}}, l sep'+=10pt, fork sep'=10pt, }, forked edges, ...
5
votes
1answer
60 views

Is there a way to factorize the tree decoration of several trees?

I have a LaTeX document with several trees made with the forest package and would like to define a decoration style for these trees in a way that avoids code duplication. In other words, I would like ...
3
votes
2answers
81 views

How to create list at leaf node of the forest package?

Suppose I want to add the list like structure instead of branches at the leaf node. How to do that for 'e', 'f', and 'g' and for 'h' and 'i' and for 'p' and 'q'? I want output like in the given image. ...
4
votes
1answer
131 views

Easy border for tikz and forest

Using \fbox around forest creates unwanted horizontal paddings to my graphs: \documentclass{scrbook} \usepackage{tikz} \usepackage[linguistics]{forest} \begin{document} \begin{figure}[bth] \...
2
votes
1answer
36 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
66 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
45 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
35 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
109 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
387 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
36 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 ...
1
vote
1answer
51 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={...
4
votes
1answer
103 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[...
2
votes
1answer
133 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
36 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
60 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
71 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
54 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
35 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
30 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
96 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 ...
3
votes
1answer
40 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
52 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
62 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
49 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
92 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 ...
5
votes
2answers
66 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
41 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} ...
5
votes
1answer
41 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
83 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
109 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]...
0
votes
1answer
65 views

Filetree with pagebreak works but just with one Filetree

I found a latex code (file tree with page break, the owner/creator of this code (pagebreak+filetree) is Sašo Živanović). I want to use this code for a documentation. I want to have several different ...
2
votes
1answer
72 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
235 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 ...