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

learn more… | top users | synonyms

2
votes
1answer
62 views

How to create classification taxonomies for Literature Review using Latex?

I have to make a literature review taxonomy for my final thesis, highlighting the salient features of each paper referred, its categories etc. I want to represent this diagrammatically using a ...
6
votes
1answer
40 views

Horizontally aligned terminal nodes in trees with nice empty nodes using forest

When horizontally aligning terminal nodes in trees using the package forest, I run into problems when I try to use the 'nice empty nodes' option, which makes sure that unlabeled nodes connect (this ...
5
votes
1answer
63 views

Is it possible to draw a tree using standard syntax without overlapping, if graphdrawing is loaded?

It seems that merely loading the graphdrawing library can mess up drawing a tree using the standard TikZ syntax. Is there a way to avoid this unwanted effect? For example: ...
1
vote
1answer
64 views

drawing game trees: forest or qtree? [duplicate]

I hope this question actually is in order since it does not seem to have a "correct" answer: I am about to get into drawing game-theoretic trees and while I am familiar with LaTeX in general, I am ...
3
votes
1answer
44 views

Centering trees

How can I centre a tree, moving it to the middle of the page, whilst keeping \ex. in its normal position? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} ...
3
votes
1answer
45 views

Putting a tree next to another tree

How can I put example tree (a) and example tree (b) next to each other on the page? At the moment, tree (b) appears below tree (a): \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} ...
2
votes
2answers
74 views

Fitting an enormous tree on a page

I cannot fit this enormous collection of trees onto a page without the page number being obscured. Can anyone help me? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} ...
2
votes
2answers
123 views

Recursion Tree in LaTeX

How can the following recursion tree be drawn in LaTeX? I have tried using TikZ pictures for this, but I continue to get errors in the code. Please suggest an easier code for the same.
1
vote
2answers
47 views

Trees: adjusting arrows and roofs

How can I ensure that the arrow from $t_2$ curves below "of"? How can I use \qroof{some company}.DP and yet still have the arrow pointing to it? \documentclass[12pt,a4paper]{article} ...
4
votes
1answer
49 views

Odd incompatibility between multi-line forest nodes and tabular

The following MWE compiles just fine: \documentclass{article} \usepackage{forest} \begin{document} %\begin{tabular}{c} \begin{forest} [x\\y, align=center [z] ] \end{forest} ...
5
votes
2answers
135 views

tree and blocks

stackexchange members, I tried to do this but unfortunately I couldn't. It is really simple. I found some codes and tried to get similar picture as mine. and second image is Thank you so for ...
3
votes
1answer
76 views

How to draw an unrooted phylogenetic tree?

I have a problem! I want to draw an unrooted phylogenetic tree like this one: (Image taken from commons.wikimedia) I've tried with the package newicktree, but without success! Anyone can help me ...
6
votes
2answers
193 views

Decision Tree with Labels on Both Sides of Line

I am trying to generate a decision tree similar to this scanned example: Notice that some branches have text on the top as well as the bottom. I have not figured out how to do this. I can get text ...
1
vote
3answers
72 views

Adding Short Lines Across Decision Tree Branch

I am creating decision trees using the 'forest' package and would like to add short lines across a branch to indicate that the decision is sub-optimal. Can this be done in 'forest'? I am attaching a ...
7
votes
2answers
227 views

Adding Triangles to LaTeX Decision Trees

I am using the 'forest' package in LaTeX in order to create decision trees with multiple decisions. I've got it mostly how I want it, except for two things: I'd like the circles at the leaves of the ...
4
votes
1answer
139 views

Trees and fitting trees underneath them

Questions How can I fit a tree in the blank space under where I have marked Tree 2 in the photo (directly underneath Tree 1, but to the right of \Rightarrow)? How can I caption Tree 1 and Tree 2 ...
1
vote
1answer
99 views

Drawing node arrows

I'm not sure how the node function works for use in trees such as the one drawn by Gonzalo Medina in this post: Trees and arrows I'd like to be able to create arrows going from different nodes to ...
5
votes
1answer
107 views

Trees and arrows

I need to draw an arrow, using \draw[semithick,->] (t)..controls +(south west:5) and +(south:5) .. (wh);. I want the arrow to connect e3 at the bottom of the following tree to the single e3 ...
1
vote
0answers
15 views

Strikeout and qtree [duplicate]

I cannot get strikeout to apply inside a tikzpicture. In the example below, strikeout only applies to"Hello World" at the beginning, but not in the tree. How can I solve this problem? ...
1
vote
1answer
52 views

Extending the branches of a tree with binary branches

In the following tree, how can I introduce further and further binary branches between S and VP? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} ...
2
votes
3answers
51 views

Positioning of trees

Consider \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \begin{document} X + Y $\Rightarrow$ \begin{tikzpicture} \Tree [.X X Y ] \end{tikzpicture} ...
1
vote
1answer
48 views

Fitting items next to trees on the page

I want to be able to put items to the left or right of the tree structure in the following example. How can I do that? At the moment each tree occupies a line. \documentclass[12pt,a4paper]{article} ...
2
votes
1answer
123 views

Drawing a tree diagram

How do I draw the tree diagram below in Latex? I also want to label the branches the way they are in the figure. Here's my preamble: \documentclass[11pt,reqno]{amsart} % Packages ...
2
votes
1answer
94 views

Family Tree gone “wrong”

Trying to make a simple tree, but when I finished I realized I'd gone about it totally the wrong way... Would appreciate some help trying to make this the "correct" way. Oh, and also to circle the ...
2
votes
2answers
122 views

Drawing graph decomposition as a tree

Let's say I have a triangle like this which is easily generated by pgf. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ vertex/.style={circle, draw=blue!60, ...
7
votes
1answer
234 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
1
vote
2answers
86 views

Dependency tree graph with extra arrows

I built the tree (black components) using the Stanford Parser. However, it doesn't make its graphs exportable, so I had to take a screenshot. Then to that graph I had to add the two new colorful rows ...
1
vote
2answers
72 views

qtree spacing and alignment

I have the following qtree \begin{center} \Tree[.{\tiny \ttfamily \itseries educated at}{\tiny \ttfamily ( Bush, University of Texas at Austin)} [. [. ...
1
vote
1answer
66 views

implement a tree that will fit on two column page structure and permit multiline nodes

I have a paper formatted like this one, i.e. two columns of text per page. I've been trying to make a tree structure to fit inside of one column, but so far I've been unable to make it work. There ...
1
vote
0answers
24 views

What am I doing wrong with the qtree function? [duplicate]

I have been trying to figure out what is wrong with my code, but no matter what I do it does not compile. \documentclass[12pt]{report} \usepackage{tikz-qtree, qtree, graphicx} ...
4
votes
1answer
32 views

How can I set a style in `\forestset` which requires delayed calculations with the results of node walks?

What is the correct way to wrap the specification for the tree below into the my binomial style defined in \forestset and why? The following code works fine: ...
4
votes
2answers
78 views

Tree diagram got cut off

After compiling the code for a tree diagram, some parts of the right hand side of the tree got cut off. I've already used \centering function but this does not fix the problem.I'm not sure how to ...
6
votes
4answers
205 views

How to use Tikz and macros to very efficiently draw recombining binomial trees when taking notes during class

For a class in derivatives pricing I would like to find a way to quickly and efficiently draw recombining binomial trees. The class involved quite a few of those trees and it would be immensely ...
5
votes
2answers
268 views

How to colour branch/edge on a tree using tikz?

I have created a tree diagram using tikz on Latex. However I'm not sure how to go about highlighting/adding colour to a branch. For instance, looking at the tree that I've illustrated, I want to ...
5
votes
2answers
103 views

Obtain a TikZ tree from a Lua table/string

Let's consider I have a database where with appropriate passages I obtain the a string that describes a layered tree. Consider the following listing: % !TEX encoding = UTF-8 % !TEX program = ...
3
votes
4answers
183 views

How to draw trees

I'd like to know how to draw these trees: I really have no idea. I've taken a look but I didn't find out anything that could help me (to draw these trees in particular). So I hope you can help me. ...
9
votes
2answers
164 views

Drawing a tikz tree above a tikz-dependency tree with same leaves

I would like to achieve the following goal: I have two different kind of trees that I would like to merge : \documentclass{article} \usepackage{color,graphicx} \usepackage{tikz} ...
0
votes
1answer
166 views

How to display contents of a tree grid in a latex table

I am working on displaying a nested bill of material in tree grid in a latex document. Is there a package available that can help with this? A short example of my current table \begin{table}[h] ...
5
votes
2answers
117 views

How to add a numbered label to syntax tree?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} baseline, for tree={parent anchor=south, child anchor=north, align=center, l sep+=0em, s sep+=4em} [T$'$ ...
3
votes
1answer
599 views

Package pgf Error: No shape named is known

I have encountered a problem Package pgf Error: No shape named is known but, I do not know what's wrong with it and how to fix it? Can anybody help me? My code is as follows: ...
4
votes
1answer
84 views

How to obtain the same-sized-boxes?

I want all the rectangle have the same size. What should I do? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{tikz-qtree} \tikzset{edge from parent/.style= {draw, ...
2
votes
2answers
77 views

How can I put something under something in a Tree?

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{grow'=right,level distance=32pt} \tikzset{execute at begin node=\strut} ...
0
votes
0answers
27 views

For a tree, I want add labels for every line of children [duplicate]

I have asked the same question about four or five hours ago. @Jason Zentz has given me a link. But the tree linked gowns down. It is a little different from mine. I tried many time to solve the ...
1
vote
3answers
214 views

Syntactic tree with tikz-qtree and annotations and labels over multiple lines [duplicate]

I am going mad trying to draw syntactic trees using the tikz-qtree package. Here is what I have come up with: \begin{figure} \centering \begin{tikzpicture}[every node/.style={align=center},level ...
5
votes
1answer
300 views

Tikz Graph without using a tikz document class

The following solution is absolutely perfect for my purposes, but I noticed that it requires \documentclass[tikz,border=5]{standalone}. Is there a way to get the same result with a standard ...
1
vote
1answer
80 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 ...
9
votes
2answers
139 views

Maps between rooted trees using forest (and TiKz)

I had to draw rooted (upward oriented) trees (with leaves). I found the package forest useful, although most likely the work-arounds I employed are not really optimal in any proper sense. An example ...
5
votes
2answers
250 views

Draw a tree with tikz

I have some problems I am not able to fix with this tree in tikz: 1. how can I avoid the empty space near the root? 2. how can I write a text on branches? I used "edge from parent" but does not work ...
1
vote
0answers
26 views

How to create a horizontal tree using braces [duplicate]

I want to create a horizontal tree-like structure using braces, as in: Please forgive my lack of creativity. I tried using an equation, for example \begin{equation*} \text{Animals} \left\{ ...
5
votes
2answers
541 views

How can I draw a circle around an entire tree in forest?

For some reason that I cannot discern, using tikz={\node [draw,circle,fit to tree]{};} to draw a circle around nodes in a tree works as expected if the nodes are embedded in a larger tree. However, ...