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

learn more… | top users | synonyms

3
votes
2answers
41 views

Unbalanced binary tree with forest

How can one draw an unbalanced binary tree - with missing nodes using the forest package?
5
votes
1answer
29 views

How to add curly brace below xytree nodes

I would like to add a curly brace and label underneath the E and F nodes of an xytree like this: So far, I have the code for the tree, but haven't been able to figure out how to insert the curly ...
2
votes
2answers
81 views

Straight and non-straight parent-child connections in tikz-qtree

I want to acheive something of this sort, (without the bounding boxes): Here, the first child has a straight line from the parent, and the following ones are diagonal. What tikzset settings will ...
3
votes
3answers
74 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 Or ...
0
votes
0answers
26 views

Full height right/left panel in WinEdt

I am wondering whether there is a way to pull down right/left panels in WinEdt and make them cover the full height of the WinEdt windows. Below is an image to make my question more clear. I have ...
2
votes
1answer
74 views

How do I make an unbalanced binary tree that branches off to the right?

An image of what I want: For those who are interested: This particular figure is taken from this article (I couldn't find a freely available version) and shows k-buckets (the squares) covering an ...
4
votes
1answer
91 views

Problem with probability tree

I am trying to make in LaTeX this probability tree: I tried using the tikz package but I keep having some issues. This is the best I got so far (link: ...
6
votes
3answers
81 views

store duplicated qtree subtrees for convenience

I am making a tree that reflects a number of different sequential choices. The lower parts of the tree will be repeated, so I'd like to store them in some shorter definition earlier on to make it ...
13
votes
3answers
710 views

How can I create this game-tree in Latex?

I have the following figure: As of now I create this in Word/Powerpoint and paste the screenshot in a LaTeX file. Is there a way to create this natively? Also, what would be the advantage of doing ...
2
votes
0answers
47 views

Trees have a huge gap before and after [closed]

I am trying to print out a tree by using following packages: \usepackage{epic} % required by ecltree and fancybox packages \usepackage{ecltree} % to draw the GP trees \usepackage{fancybox} % ...
3
votes
0answers
36 views

How to draw a tree with fixed node distances? [duplicate]

I am trying to build on the filesystem tree example. I have a similar requirement to display a hierarchical tree, but I'm struggling to get the tree layout right. In the example, the link between a ...
2
votes
1answer
42 views

How can I coerce TikZ trees to have directed edges? [duplicate]

Consider the following \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node{A} [grow=east] child {node{B} child {node{C}}}; \end{tikzpicture} \end{document} which ...
7
votes
1answer
224 views

Multiway trees like in Knuth's The Art of Computer Programming, Volume 3

I was wondering if anybody knows how to draw a multiway tree like in Knuth's The Art of Computer Programming, Volume 3 on page 484? This looks like a rounded box with the value of the keys being ...
1
vote
0answers
52 views

How to Create an un-ordered tree in LaTeX?

Is there a way to create a tree in LaTeX without using any "ordering" ? So far, all the examples I came across are structured in this way child{ node [arn_n] {20} child{ ...
8
votes
2answers
496 views

How to draw empty nodes in tikz-qtree?

I'm new to tikz-qtree, and I would like to reproduce this figure in LaTeX: So far, I've managed to cobble this bit of code, but the results are a bit comical, as the empty nodes (those without ...
2
votes
0answers
70 views

mandatory - optional - or Tree in TeX

Does anyone know how I can build trees like this - in TeX?
7
votes
2answers
209 views

Special tree in tikz

I'm trying to draw a tree like this: The root has three children and every of this two... The nodes in the first two tiers has additional informations.. I searched for examples like that, but could ...
7
votes
1answer
201 views

Automatic connection of text points in tikz-qtree

I have to draw pictures like the following a lot: I want to use tikz-qtree, since I have a lot of trees and this package simplifies things considerably. Right now I use the following code, since it ...
3
votes
2answers
131 views

How to draw nodes and arcs across centered text

I have been trying to draw something for a while now and can't seem to find a way to do it the way I want to have it. I wanna draw something similar to this: (1) ACGT ...
3
votes
2answers
166 views

How to draw a tree?

How to draw a tree like using LaTeX and how can I give the labelling to the vertices and the edges?
5
votes
1answer
91 views

Dependency trees with crossings and dotted lines

For a presentation I need to refer to a paper which uses a certain kind of dependency tree: Since I wanted to build some examples on my own, I'd be glad to rebuild this. I've tried several ...
2
votes
2answers
207 views

Two questions: Math mode and tree diagrams for probability in LaTeX

I am trying to print a worksheet for the math class I'm teaching and I was wondering if anyone can specifically help me out in two areas. a) How do I get the output BAL1L2 without the slant? ...
1
vote
3answers
125 views

How to colorize only one of the three branches in a game tree?

I am using Osborne's egameps package to create a game tree of an extensive game. How could I colorize only the right branch of the tree branch in the first movement as red. I attempted to use ...
3
votes
2answers
685 views

tikz tree fork down edge labels

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[level distance=1.5cm, level 1/.style={sibling distance=3.5cm}, level 2/.style={sibling ...
2
votes
0answers
52 views

Drawing parse trees [duplicate]

I'm trying to draw parse trees for mathematical expressions such as (x + (y - z)). When I google for parse trees in LaTeX, all I get are packages that produce an output similar to the style of this ...
4
votes
1answer
106 views

pgf/tikz line to triangle

I'm trying to draw a simple tree. Here's the latex code: \begin{tikzpicture} \node at (2,-2) [circle,draw,minimum size=8mm] (A) {$\alpha$}; \node at (0,-4) [circle,draw,minimum size=8mm] (B) ...
0
votes
2answers
136 views

Drawing a graphic image with LaTeX for an e-book using Markdown

How can I draw the picture below with LaTeX? I will be using it in an e-book using Markdown. Thanks.
4
votes
1answer
135 views

Drawing tree in text (like inline math)

Is there a way to draw (with tikz/tikz-qtree) a tree directly in the text, like the inline math command? For a small tree with 2 or 3 nodes? Thanks!
2
votes
1answer
246 views

Creating Tic-Tac-Toe boards with LaTeX/TikZ

I am trying to create a diagram of tic-tac-toe boards similar to the one attached below. I cannot seem to find any documentation or examples on how to create these boards in LaTeX or TikZ. Does ...
1
vote
1answer
238 views

Depth-first traversal of a binary tree

How can I achieve the drawing of a depth-first traversal of a binary tree like in this picture ?
20
votes
1answer
434 views

Drawing Bruhat--Tits trees with TikZ

I am not a regular user of TikZ, and I was wondering if there was a quick way of drawing trees that look like ? (the picture seems to have been taken from page 71 of J. P. Serre's book on trees). ...
7
votes
1answer
174 views

Creating radial trees in TikZ

I am fairly new TikZ user and I am looking for a way to generate a radial tree similar this: or this: So far, I have two methods of doing this: 1) Program it manually - This involves quite a ...
1
vote
1answer
107 views

How to write a tree with no (visible) root with TikZ?

I’m trying to write a tree structure in TikZ. The trees in question are labelled on the leaf only; there is no label on inner nodes. Because I don’t use node on inner nodes, the tree structure joins. ...
2
votes
1answer
325 views

Creating appealing directory trees - alternative to dirtree

I already found a similar question and thus know about the dirtree package. However, the result does not really look nice. Also I'd like to put the tree in a figure environment and get it centered. ...
3
votes
1answer
82 views

tikz draw tree with extra column

01, 001 and 0001 are not actually "childs". How do I add K=1,2,3 and K=4 to the left hand column? And I tried really hard to adjust the distance. But this is the best I can do. Thanks. ...
7
votes
1answer
212 views

Draw randomized tree in TikZ

I am trying to draw a randomized tree using TikZ, that is, I'm looking for a macro \randtree{NN}{x} that attaches a randomized tree of maximum depth x to a node named NN. The nodes need not be visible ...
5
votes
2answers
198 views

How to make TikZ draw right child before left

I'm trying to make a tree with two different colors of edges, black and gray. This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,automata} ...
10
votes
1answer
304 views

Drawing PQ-trees

I need to draw PQ-trees in LaTeX which look like these: I tried trees in tikz but I had two problems: partially shade rectangles use vertical pointers from children to the parent, if the parent ...
6
votes
1answer
217 views

beamer and forest

I am preparing beamer presentation and flow chart using forest. For some reason, it is suggesting extra } or problem with \end{frame}. Here is the code: \documentclass[12pt,a4paper]{beamer} ...
6
votes
1answer
258 views

Trees in latex : Depth of 4 nodes

I am following the current tutorial (MWE) : link However, I am facing difficulties to perform a tree of 4 nodes. Items are superposed, and even if I add a child [missing] {} it doesn't solve the ...
8
votes
2answers
374 views

how to draw a diagram that forks out, then joins in the middle then forks out again?

Update: ref comments: I've slightly corrected the terminology and the title. I am using the term diagram now, instead of tree, and I am just asking on how to draw this diagram in Tikz. Any tool or ...
5
votes
1answer
222 views

Customized edge in forest tree

Following the examples in the documentation, it is not too difficult to customize the edge of trees using the tikz-qtree package. The following code illustrates it: \documentclass{standalone} ...
2
votes
1answer
150 views

How can I use fork style edges with explicitely positioned TikZ tree nodes?

As part of a graphical export facility, I try to render a tree in TikZ were all the node positions are exactly given and were the edges are fork-style. Doing that without the trees package demands ...
2
votes
1answer
300 views

How to make Directory List in LaTeX?

I am writing an article using LaTeX. It is a research report about developing mathematics ebook using LaTeX. It contains directory list consists of folders and files, like this: - ...
0
votes
0answers
81 views

How to surround portions of a tree with boxes

I need to group portions of a tree with boxes, and additionally label them, e.g. put "W1" on the side of the box, or in the top right corner of the box. The result I want to achieve is somewhat ...
3
votes
1answer
276 views

Vertical path to node in TikZ trees

How can I set the path between two specific nodes to "vertical" rather than "direct"? Currently my tree looks like this: \begin{tikzpicture}[level distance=1.5cm, every ...
5
votes
1answer
334 views

How to create syntactic trees and align them in LaTeX?

I want to create syntactic trees and align them in LaTeX as in the picture below. Can you help me?
11
votes
1answer
430 views

Using beamer overlays with forest generated trees

I am using the forest package from Sašo Živanović in order to create a wide tree on a beamer slide. Previously, I was using qtree. But due to the easier way of arranging nodes automatically with ...
2
votes
2answers
318 views

Drawing tree like structure

I have to draw the following figure. What I have now is uggly. Somehow the structure should be more balanced. Is there a way to do this with tikz-qtree? The point is that it is multiple dominance and ...
5
votes
1answer
406 views

Square edges in forest package

I can easily do trees with horizontal (square) edges in tikz-qtree (see MWE). The forest package is however a far superior alternative for my purposes. However, every attempt to do either horizontal ...