Questions tagged [trees]

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

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

Library graphs - mixture between layered layout and tree - How to do?

the creation of a graph with some specific attributes is for me not possible. Maybe you have some helpfully ideas how to realize?! The attributes of the graphs in 1. and 2. have to be "mixed", while ...
2
votes
2answers
40 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 ...
2
votes
0answers
280 views

TikZ-style tree nodes with paragraphs?

This may seem like a strange question, but is it possible to create tree edges connecting paragraphs? I've seen examples of TikZ being able to create trees with images and text nodes, but I'm not sure ...
4
votes
1answer
51 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 ...
31
votes
3answers
4k views

Write trees in LaTeX

I think this would be a good question how to bring a customized flowchart (your own) in MS Word to LaTeX. Well, I have attached a World file, and I am trying to convert that in LaTex. The Save as "...
1
vote
0answers
55 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
3answers
117 views

How to include horizontal arrows in between nodes in TiKz

I’ve been attempting to recreate this language tree, and attempted to do it in TiKz, but I’m open to other solutions. However, I’m not sure how to approach the horizontal arrows which are located in ...
3
votes
1answer
32 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
27 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?
2
votes
1answer
59 views

How can I insert a tree diagram into text?

I've made a tree diagram using the forest package. To prevent the diagram stretching beyond the page I've placed it in a box. How can I place this box within the text such that Latex can determine its ...
4
votes
2answers
77 views

Tree in Diagram not centered

while the diagram seems to be centered (as seen by the caption), the tree inside is not. The narrower the tree, the farther to the right it is positioned. Any thoughts? Here's my code \...
0
votes
1answer
38 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
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, ...
1
vote
1answer
39 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
185 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
153 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
516 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
712 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. ...
4
votes
3answers
506 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
2k 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
827 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
315 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
32 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
216 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
60 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 ...
2
votes
2answers
147 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
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 ...
3
votes
1answer
94 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
138 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
169 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
77 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
64 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
102 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
44 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={...
4
votes
1answer
68 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
172 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
38 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
500 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
36 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
123 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
137 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 ...
19
votes
5answers
28k 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
173 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
204 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 ...