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

learn more… | top users | synonyms

1
vote
1answer
30 views

TikZ/PGF error when using forest

I am trying to make a linguistics tree using the forest package, as in the second example in this thread. I was able to generate the tree for the most part, but I cannot draw the triangle for some ...
-1
votes
2answers
81 views

How can I reproduce this tree diagram?

I want to reproduce the tree diagram shown below. My major problem is how to put text (Yes/No/Exposure...) next to the lines.
0
votes
0answers
11 views

Separating Nodes [duplicate]

How come my tree is combined for Player 3 in the middle, when I want each Player 2 to produce two Player 3s? And same for the Player 3s leading to combined outcomes, each branch should lead to a ...
2
votes
1answer
59 views

How do I concisely typeset propositional proof trees?

I want to draw things like and optionally I don't need to typeset proof trees as in the second picture, but it would be nice to know how to typeset it if anyone could do it without a sweat. But, ...
3
votes
3answers
106 views

Multilevel hierachical tree/taxonomy with linebreaks and “empty items” in Tikz

I would like to include graphics like the following in my document. Since this is just one example and there will be different models, I can't just include it, but will rather need to be able to build ...
2
votes
1answer
63 views

Rich phylogenetic trees accompanied with a non-linear timeline

I wish to draw a phylogenetic tree which is graphically rich (the edges may have several colours/styles), and more importantly, the tree would be aligned with a timeline, which need not be linear. ...
0
votes
0answers
36 views

How to align/indent proof trees on beamer class?

I am working on beamer, using the package bussproofs and I need to be able to move and indent the different proofs so they can all fit in my screen. Does anyone know how to do it? Thank you in ...
7
votes
2answers
148 views

Present a list as a “tree”

I want to present an "itemize" list as a tree. I.e, the current list is: Root Child 1 Child 2 Child 3 And I want it to look something like this (but with continuous lines): ...
2
votes
2answers
40 views

Special characters in parsetree

I am using the parsetree package, which according to this documentation can have special characters like parentheses in leaf nodes when not using shortcuts like ".N.". However even if I follow these ...
2
votes
2answers
84 views

Analytic Tableaux Smullyan's Style

Is there a simple and intuitive way to drawn with latex this kind of tree? I tried to check in the site "LATEX for LOGICIANS", but I can't find this kind of tree, with this kind of layout. Thank you ...
3
votes
2answers
68 views

Drawing trees with xymatrix

I would like to draw trees using xymatrix, however using for example \xymatrix{\ar@{-}[dr] & & \ar@{-}[dl]\\ & \ar@{-}[d] & \\ & & } returns the image My problem with ...
0
votes
0answers
27 views

How to draw a labeled rooted tree? [duplicate]

I would like to know how to draw simple rooted trees like this but with labels.
5
votes
2answers
83 views

Copying non-epsilon terminal nodes in parse trees using forest

I'm drawing parse trees for formal grammar using the forest package and would like to have all terminals, that are not Epsilon, to be copied to the bottom and connected to the original node with a ...
3
votes
2answers
125 views

tikz trees: How to not draw a single edge

I want to draw a tree and not draw specific edges. I try it like this \documentclass[preview]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] ...
1
vote
1answer
69 views

Can I typeset a certain proof tree in ConTeXt?

Now, I know that the below picture can be done in LaTeX. Can it be done in ConTeXt? Because I have yet to learn any TeX system, I'm not asking how to do it in ConTeXt, but I am primarily interested in ...
0
votes
2answers
83 views
1
vote
2answers
114 views

Tikzpicture inside forest node label

I would like to embed a tikzpicture in a forest node label: \documentclass[ ,crop=true ,varwidth=\maxdimen ]{standalone} \usepackage{forest} \begin{document} \Forest{ ...
2
votes
1answer
57 views

Derivation tree for type evaluations

I’d like to create derivations trees for a type evaluation (dunno what this is exactly called). Basically I want to reproduce this bottom up „tree“ on page 15 from ...
2
votes
2answers
87 views

Square Edge and Horizontal Tree Diagramm with forest

I am basically trying to re-create the Aves Cladogram as illustrated in this wikipedia page. After trying to use Newicktree package for a while, I decided to migrate to forest. I am trying to make ...
-1
votes
1answer
45 views

Drawing tree with arrow that indicates height

I'm trying to create the following tree with tikz-tree, but don't how to add the arrow that indicates height. Please help. Thank you!
4
votes
3answers
74 views

Alignment in directory tree

I want to draw a directory tree, see the code below. I can't get the alignment right in the following areas: The H of Here is text and the T of This is some more text must align. All horizontal ...
0
votes
0answers
28 views

How to draw a simple picture? [duplicate]

I think this problem should be relatively simple, but I don't know how to do it.
2
votes
1answer
96 views

“\Tree” doesn't work even with qtree package

ERROR: Undefined control sequence. --- TeX said --- l.59 \Tree [.SD [.D El][.SN [.N gato][.SP [.P con][.SN [.N botas]]]]] --- HELP --- TeX encountered an unknown command name. You probably ...
2
votes
1answer
80 views

Line break in qtree edge labels

I am using tikz-qtree to create a (horizontal) game tree. While I have managed to create line breaks in the node labels, this does not seem to work for the edge labels, see MWE below. My questions ...
3
votes
2answers
123 views

Colouring the branches of tikz trees

I want to colour the branches of the following tree: \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \tikzset{every tree ...
0
votes
1answer
32 views

Reducing the width of a prooftree without changing the font size

How can I change the width of the following prooftree without changing its font size? I would like to remove the big space between T1 and T5 \begin{prooftree} %T1 \AxiomC{$\langle {\tt y:=1}, ...
3
votes
2answers
167 views

Tikz tree diagram with 4 levels

This is the first time I use TikZ so please bear with me. With the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes,positioning,shadows,trees} \tikzset{ ...
3
votes
1answer
243 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
107 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
98 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
144 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
90 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} ...
4
votes
1answer
80 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
84 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} ...
3
votes
2answers
513 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
73 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
82 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
161 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
142 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
301 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
151 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
308 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
157 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
111 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
120 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
70 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
66 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
73 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
254 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 ...