Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [trees]

{trees} is for questions about drawing or constructing tree {diagrams} (for example, family trees).

0
votes
1answer
26 views

How to draw hierarchical overlapping models

I am trying to draw hierarchical models with overlapping nodes. I am able to use Use tikz to draw a hierarchical model (mult-level model from statistics) to make hierarchical models, but I am not able ...
2
votes
1answer
28 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, ...
1
vote
1answer
31 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 ...
7
votes
2answers
107 views

Decision tree nodes overlapping with Tikz

Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the ...
3
votes
1answer
150 views

How do you use environments that have the same name within a single LaTeX document?

I'm trying to typeset some proof tree exercises. But I need to use the prooftree environment from the bussproofs package, as well as the prooftree environment from the prooftrees package. Is there a ...
1
vote
1answer
28 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
206 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 ...
2
votes
1answer
35 views

Create separate double arrows as edge of a tree

I'd like to create a tree with edges made from two separate arrows as shown in picture: But I don't know how to change the edge to 'two separate arrows for each edge' Currently, I could only do the ...
3
votes
2answers
124 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). ...
3
votes
1answer
33 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 ...
3
votes
1answer
84 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
92 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 ...
1
vote
1answer
112 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 ...
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
69 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]{...
3
votes
1answer
40 views

Help with branches

I'm trying to do something like this, but I doon't know how to creat [+silábico] or organize "NUC" in an equal high. Thanks!! Here is what I used: (I've tried "[{[-silábico]},before drawing Vocálico={...
5
votes
1answer
56 views

How to position a single child node so it is in the same level with parent using forest?

Here is my tree diagram built using forest package. How to move the node in the red pen to the position of the blue pen? Here is my code. \begin{forest} for tree={calign=last}, [HEAD ...
4
votes
1answer
91 views

prooftrees.sty - why are line numbers overlapping and how to avoid?

Why are the "6" and "7" overlapping here and how can I avoid it? \documentclass[border=10pt]{standalone} \usepackage{prooftrees} \begin{document} \begin{prooftree}{} [A [A [A [...
3
votes
2answers
130 views

Problem with Texpad - Forest package Tree results in error: TeX capacity exceeded, sorry [parameter stack size=120]"

I recently got back reviews for a paper I submitted eight months ago. Upon opening my file, I discovered it wouldn't compile properly anymore. After some troubleshooting, I narrowed it down to the ...
4
votes
0answers
62 views

prooftrees tree nodes on different line

While trying to write a tableaux proof tree with prooftrees, I had some difficulty with putting single and branching nodes on the same line. \documentclass{article} \usepackage{prooftrees} \begin{...
1
vote
1answer
34 views

How to layout a vertical Icicle tree with the forest package

This page presents a way to create icicle trees. It works very well as soon as the content of each node is drawn on one line. For the following example, (that contains only few additional nodes), the ...
4
votes
1answer
35 views

How do I add labels to node connectors in a tree diagram using TikZ

I would like to add the labels "H" and "L" to the X and Y connectors like those included below the Z nodes. Here is my code so far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \...
4
votes
2answers
102 views

Forest: How do I automatically align tiers and have parent anchor=south

I am trying to make basic linguistic trees in Forest that do two things: 1) have the bottom leaves aligned on a single tier, and 2) have parent anchor=south. (Actually I have a third requirement as ...
0
votes
1answer
181 views

Using native Tikz tree or forest?

I just have a very philosophical(?) question. At this time i am well in drawing pictures with tikz. Now i have to make some tree-like diagramms and ask myself which "package" i should use for this? In ...
4
votes
1answer
139 views

{genealogytree} How to model my Cousins

I am working with the "genealogytree" package for a long time, but im struggling again about modeling my Cousins. After i got Trouble Merging my multiple (completed) Family Trees (Link) with ~150 ...
7
votes
2answers
198 views

Radial node arrangement in Forest

I have a number of 'decision tree' type of charts I am trying to produce dynamically (rather than in Illustrator or OmniGraffle). Each chart contains a few hundred nodes. Because of the number of ...
1
vote
2answers
114 views

Switch between list and tree in latex (dynamic typesetting)

Is it possible to switch between a list and an equivalent tree (both already coded) with a clickable link with latex i.e. toggle between them ? Does LaTeX allow to typeset dynamically with a ...
1
vote
0answers
37 views

How to draw this tree?? (maybe hard) [duplicate]

I want to draw the tree like this, but it's arrow not direct to just down, and I don't know how to draw the 'box' and tint the boxs and words.
1
vote
1answer
122 views

Overlay of edges of a tree created with one command

The title of this question might not be very accurate (I don't know for a better one so far), I am open to suggestion. I have the nodes of a tree linked together with the command [edge from parent ...
5
votes
1answer
104 views

How to color some areas of a branching diagram

do you have an idea how could I reproduce the brancing-diagram in this picture? I suppose that it was made with tikz or pst-tree but I don't know how, especially how to get those coloured areas. The ...
3
votes
2answers
85 views

Extend three-tier tree to four tier using forest

I would like to extend the three tier in the answer here to a four-tier tree. To something as shown in the figure below. This is the MWE provided here. The question appears quite simple, but I have ...
2
votes
1answer
63 views

How can I place an empty box on the branches of this tree diagram?

\documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \pagestyle{empty} % Set the overall layout of the tree \tikzstyle{level 1}=[level ...
3
votes
2answers
280 views

How to create Bärnighausen Trees?

In crystallograpy exists an established visual representation for symmetry relations between different structures/phases which are called Bärnighausen trees. Typical examples look like (from U. ...
12
votes
3answers
1k views

How to draw a tree diagram with 90º degrees branches

I'm trying to replicate the following tree in LaTeX: I'm having problems, because (1) I never drew a tree diagram with 90º degrees branches, like this, and (2) I never drew a tree diagram together ...
3
votes
1answer
148 views

Create horizontal hierarchy tree SmartArt

I was trying to draw a horizontal hierarchy SmartArt as shown below. I looked for this forum but I did not find any similar. Thank you very much.
5
votes
1answer
104 views

Draw a complex tree - forest

Please, how can I do something like this? Thanks! That's what I'm doing: \documentclass[showtrims, 10pt]{memoir} \usepackage{forest} \begin{document} \begin{forest} [,phantom,s sep=2cm [X ...
0
votes
0answers
48 views

Drawing bare phrase structure trees with the forest package

I need to emulate these two trees and I've been trying different things but I can't get them exactly right. Every time I try the nice empty nodes option the tree ends up too elongated vertically, but ...
1
vote
1answer
223 views

trees dashed lines

I would like reproduce the following tree in a mathematical text. But for copyright reasons, I cannot use includegraphics{} and I must draw this figure in latex. What do you advise me ? What is the (...
0
votes
1answer
72 views

Tree structure with text boxes at the edges

Could you show me how to draw a simple chart like the one given in the image attached. I need to enter text in the bullet format. Thank you Chana
3
votes
1answer
54 views

How can I add child nodes to child nodes in mindmaps?

I would like to organize the following mind mapping by: Formatting it Add children "level 1-2-1, Level 1-2-3, Level 1-2-3 " to node level 1-2 \documentclass{article} \usepackage{tikz} \...
4
votes
1answer
82 views

Triangle tree with node positioning

I am trying to recreate the image shown below. While the numbers are blurry that is not relevant. The relevant part is making the tree look like a triangle. Here is how far I have gotten What is ...
3
votes
2answers
244 views

Easiest way to design Attack Trees in LaTeX (with 'and' nodes/arcs)?

I'm trying to make something akin to the below image in LaTeX. The closest I've come has been with the forest package, but it does not seem to certain desired capabilities — in particular, the arc ...
1
vote
2answers
266 views

Horizontal Probability Tree using Forest with Edge Labels

I’m trying to make a horizontal probability tree as pictured below using the Forest package. Currently, I am able to get a regular forest tree using the following code \usepackage{forest} \begin{...
0
votes
1answer
108 views

Beautifying binary tree in qtree

I'm using qtree to draw beutiful trees. Except that my tree is not compact and beautiful as expected. More specifically, I would expect the nodes at the same depth to be at the same level. Of course ...
0
votes
2answers
123 views

Control tree diagram branches

I have the following tree: \begin{center} \begin{forest} [Tests [Case 1 [\text{OGL1}] [\text{OGL2}] [\text{OGL3}] [\text{OGL4}] ] [Case 2 [\text{OGL1}] [\text{OGL2}] ...
8
votes
3answers
1k views

How to make binary search trees in an easy and straight forward way?

I'm trying to have this tree in LaTeX and I found this helpful response on this site but I easily got lost with all the brackets that are going on and I now have this Which is achieved by the ...
2
votes
0answers
277 views

{genealogytree} Multiple Family Trees (with Unions)

In the last few weeks, I've been working on the "genealogytree" package to draw my family trees. Although I have read the manual up and down, I am unfortunately not able to merge my family trees from ...
2
votes
2answers
61 views

Horizontal tree arrows not aligned properly

I have taken some code from multiple places and pasted them together in order to show the structure of a folder and its underlying folders. I got it working, however the last arrow (from month to day) ...
4
votes
3answers
663 views

TikZ - Game theory tree with continuum of moves (depicted as a gray triangle)

In extensive form games (game trees), we usually draw a (gray) triangle in the background of the player's branch (strategy) to denote that the player has a continuum of actions available at that node. ...
0
votes
0answers
107 views

File name 'istgame.sty' not found

I have been trying to use your package istgame, but i keep on receiving the following error: LateX Error: File 'istgame.sty' not found. Would you know how to troubleshoot this? Thanks