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
106 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 ...
8
votes
4answers
1k views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
4
votes
2answers
1k views

Restoring qtree spacing in tikz-qtree

Is it somehow possible to achieve the same node spacing in tikz-qtree as in the original qtree package? Compare the two: qtree: tikz-qtree: The spacing between nodes in one level should be the same....
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 ...
3
votes
5answers
488 views

Line break with equations in game tree labels produced with TikZ

I use this manual for help with the drawing of game trees using TikZ (http://www.sfu.ca/~haiyunc/notes/Game_Trees_with_TikZ.pdf). However, I have a challenge I cannot seem to overcome. Some of my end-...
4
votes
3answers
659 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. ...
5
votes
3answers
467 views

Label Imperfect Information dashed line in tree

I am trying to add two labels, one over each of the two dash lines. Each time I add some variation in code at the place I created the lines, the corresponding label shows up at the top of the figure. ...
1
vote
2answers
1k views

Drawing a game tree on Tikz

I need to draw the following game tree on tikz. It's a bayesian game. Sorry for the pic, I made it on Paint. So basically there are 2 players G and T, N is the nature that gives a chance for each ...
5
votes
5answers
813 views

How do I make trees with straight skeletons or spines?

I'm a new/beginner LaTeX user, and I would like to make syntactic trees with straight spines, somewhat like the ones here: http://tanvirdhaka.blogspot.com/2010/01/phrase-structure-grammar.html Can ...
1
vote
2answers
276 views

How do I draw Phrase Structure Trees in the Style of Heim & Kratzer (1998)?

I'm trying to figure out how to draw simple syntactic trees like the ones here, found in Heim & Kratzer's "Semantics & Generative Grammar." I do not want to include labels such as NP, VP, etc.,...
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
123 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). ...
8
votes
4answers
4k views

TikZ - game tree representation with continuum of moves

I have been using TikZ to draw game-trees for my game-theory lectures (mostly using the automata package) but I could not figure out how to draw an arc across the edges the leave a given node. When we ...
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
90 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 ...
14
votes
4answers
3k views

How to draw syntactical trees with parallel leaves for a natural language?

I need to draw syntactical trees for a natural language. The problem is that I need all the leaves to be parallel. How the other nodes are sorted in relation to the other at the same depth is not ...
1
vote
1answer
111 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 ...
201
votes
17answers
36k views

How can we draw a Christmas tree with decorations, using TikZ?

I would like to use TikZ for drawing a christmas tree. Here's a start, I used the lindenmayersystems library for drawing a tree: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
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]{...
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). ...
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{...
4
votes
1answer
90 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
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 ...
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 ...
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 ...
0
votes
2answers
478 views

Producing “infinite” tree using qtree

I'm trying to produce a tree with infinite branches in each levels means from each 'stage' there are three branches without text and three dots in the end of each branch. Alas, When I try to run 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 ...
1
vote
1answer
121 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 ...
18
votes
5answers
27k views

How to make a 3 level deep tree with tikz

I am busy making a full binary tree of three levels deep. The code I am having now is (using the trees library): \begin{tikzpicture} \node {root} child {node {left} child {node {lleft}} ...
4
votes
1answer
137 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 ...
0
votes
1answer
178 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 ...
7
votes
2answers
196 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 ...
81
votes
4answers
39k views

Making a (simple) directory tree

I'm trying to make a simple directory tree representation in LaTeX. Something like: spam | +-- ham +-- eggs | +-- more spam +-- dead parrots The tree won't be that long (say, 10--...
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.
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
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. ...
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
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
0answers
275 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 ...
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
147 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.