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

learn more… | top users | synonyms

2
votes
0answers
11 views

Trees in context

Excuse me for my english, is not my language. I have a document in LaTeX, the relevant code is \documentclass[a4 paper, 12pt]{article} \usepackage{tikz-qtree} \usepackage{tikz} \usepackage{pgf} \...
8
votes
5answers
123 views

Tree, then arrow, then tree

I'm trying to show a transition between two trees. Right now I'm using minipages, but the spacing is all off: The trees should be closer, and ideally the arrow should be longer. Finally, for extra ...
4
votes
3answers
47 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-...
0
votes
0answers
53 views

Can I draw tree in LaTeX from unknown data?

I draw tree in LaTeX and its done. But I want to draw tree using LaTeX from unknown data. Means my data will change very frequently. Thats why, I want to make it form unknown data. So, that there will ...
4
votes
2answers
73 views

Specify where and how edge connects to child (tikz)

I have the following tikz tree: I'd like to change where the edge meets the child to where I placed the red dotes. Also, I'd like to have bend edges. I've tried [bend left] but it didn't change ...
6
votes
4answers
443 views

Is there a better way of setting this tree?

I created a tree with the help of cases environments. The MWE is this: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \...
1
vote
2answers
65 views

Set fork and stop text overlapping

I'm having a bit of trouble with a diagram. I can't figure out how to get the fork from the second node to the 6th node at the same level and have the text not overlapping. \documentclass[a4paper,...
5
votes
2answers
398 views

Probability tree is colliding

I need to make a probability tree with 3 outcomes per event. Here is the code I am using: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{fullpage} \usepackage{amsmath} \usepackage{...
0
votes
1answer
55 views

How to add one more leave to my tree graph?

\documentclass{article} \usepackage{qtree} \begin{document} \Tree [.X leaf_1 [.Y leaf_2 [.Z leaf_3 last !{\qbalance} ] ] ] \end{document} I would like to add one more leave and node under leaf_1.How ...
1
vote
1answer
44 views

Prooftrees logic tree preamble for an example

The following example is out of the documentation of prooftrees (I suppose that an updated version of TeX Live is needed to make use of that package). The problem is that the documentation's .tex file ...
2
votes
1answer
34 views

How to a draw a tree with n edges and show count of edges at each level?

I am trying to draw a combinatorics tree starting with n_1 edges at level 1, n_2 edges at level 2, ... , n_k edges at level k. Something like this: I found a binary tree code from this site: ...
1
vote
2answers
79 views

Write same vertex labels with TikZ

I am writing an article on graph coloring and trying to make this type of labeled tree in TikZ. (See the attached Figure) The problem is that I have to use same color label (English letter) for many ...
3
votes
1answer
29 views

Add an Ellipsis at the end of the tree with forest

I have an tree and I need to make it so it feels like it's infinite. I need to draw an ellipsis at the end of each branch. I would like the ellipsis to be vertical oriented if possible (not a big deal)...
4
votes
0answers
73 views

Draw and-or trees' arc with tikz tree library

I'm trying to get a similar result of this question: Drawing AND/OR trees in Tikz. However, I'm trying the trees library from tikz and was trying to get the automatic arc that is produced with the ...
1
vote
1answer
44 views

Tikz Tree with added notes

I need to add notes where "Write Text Here" is. I do not want it to be part of the node. Is there a way to add notes next to a node. Below is my code; Thank you \tikzstyle{every node}=[draw=white,...
1
vote
1answer
47 views

Depth labels in Recursion Tree using Forest

I have a recursion tree very similar to the one below built using the Forest package. The only problem is that I do not know how to add labels to the right hand side for each depth of the tree. In ...
0
votes
2answers
102 views

How do I typeset this parsing tree for propositional logic formula with forest or something else?

The following parsing tree is from Mathematical Logic published in 2007 and written by Ian Chiswell & Wilfrid Hodges. It looks like a forest tree, but I guess it could be typeset better by another ...
0
votes
0answers
55 views

Operad theory, trees and an identity

I am trying to achieve the operad insertion shown on Wikipedia here. I can't figure out how to put a \circ sign between first two and an equal to sign between the others as shown on Wikipedia. Also I ...
3
votes
1answer
62 views

saving horizontal space in tree diagram

About a week ago @cfr already provided a very decent solution for saving vertical space in my tree diagram. Unfortunately my initial situation has changed now and I am facing a horizontal tree which ...
6
votes
2answers
73 views

Saving vertical space in tree diagram

I have many nodes on one tier. Thus I use the grow east option already. But this is not enough... I would like to save a bit more vertical space for instance through pulling two of the branches a ...
1
vote
1answer
47 views

How can I make this tree shrink to fit standard page?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3....
2
votes
1answer
76 views

how to draw skewed (unbalanced) tree with tikz-qtree?

\begin{figure}[H] \centering \begin{tikzpicture}[scale=0.7] \Tree [.Appl [.DP ] [.V [.DP ] [.v ] ]] \end{tikzpicture} \end{figure} is giving me the above picture: But, what I really want is left ...
3
votes
1answer
122 views

Improving tree diagram

Does anyone have an idea how to improve this diagram? I don't know, but it doesn't really blows my mind, yet. For instance, I am not able to manage a good-looking line length and positioning where ...
4
votes
1answer
173 views

How to draw big circles around selected nodes of a tree with tikz?

I have drawn the following tree using tikz with the following code. My question is: How can I draw one big circle enclosing all the „A“ nodes, one for all „B“ nodes and so on (maybe with different ...
1
vote
1answer
117 views

How can I make horizontal direction for last node using Tree

I am using tikz to draw my tree. I want to adjust the location of last nodes as expected figure(last figure). Second, I want to locate the tree in centering on page. Could you help me to fix the latex ...
1
vote
0answers
40 views

How to prune nodes in a tree using graph syntax

I want to indicate that nodes have been removed from a tree. Lets say the code looks like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \usetikzlibrary{graphdrawing} \...
30
votes
3answers
2k 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 "...
6
votes
2answers
73 views

nice empty nodes broken by forest 2.0?

I've been using the "nice empty nodes" style from the forest manual for trees for quite a while now. Today I updated the package, and now it throws an error (though the output still seems to work). ...
3
votes
1answer
150 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
128 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
99 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
193 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
92 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. ...
7
votes
2answers
195 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
66 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
193 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
118 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
28 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
103 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
522 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
78 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
151 views
1
vote
2answers
198 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{ [A\tikz{\node[...
2
votes
1answer
128 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 http://lucacardelli.name/papers/...
2
votes
2answers
200 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
68 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
126 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
147 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 ...