{tikz-trees} is for questions addressing issues related to trees in {tikz-pgf}.

learn more… | top users | synonyms

5
votes
2answers
264 views

Blank page before TikZ family tree picture

I drew a family tree using TikZ with the positioning library, following in the footsteps of Gonzalo. The problem is that there is a blank page generated before the family tree. Can anyone explain why ...
0
votes
0answers
31 views

What is the problem with this tikz-tree [duplicate]

This is just an example code of tikz-qtree. It fails to typeset. I am not getting what syntax error I am introducing even after looking carefully. Kindly help \documentclass{article} ...
2
votes
1answer
165 views

problem with tikz-qtree

When I type set this example, I get I, love, my , country as four different nodes. I know I am not able to get a syntax for enclosing MULTIPLE words together for tikz-qtree. I tried to look ...
2
votes
1answer
504 views

Distance between tree levels in Tikz, edges and node centering

Level distance does not seem to have any effect on the 1st node's distance from its children in the MWE below (tried adding level distance and playing with its values at every level, but it works only ...
3
votes
2answers
121 views

How to define edges in tikz

When I use absolute position for the edges, I get almost intersecting arrows. Here is my code. Kindly help. \begin{tikzpicture} [ node distance = 2cm and 0.8cm, >=stealth, ...
6
votes
1answer
2k views

Draw curved arrows between nodes in tikz-qtree

Is there a "clever" way to draw curved lines between nodes without them to go all through the picture? Here is my MWE : \documentclass[11pt]{beamer} \usepackage{ulem} \usepackage{tikz-qtree} ...
1
vote
2answers
135 views

how can I improve the look and impact of thi tikz tree diagram

\documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows} % styles for flowcharts \tikzstyle{block} = [rectangle, draw, text width=5em, text centered, rounded corners, minimum ...
1
vote
1answer
99 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{ ...
2
votes
1answer
165 views

PGF automatic determined vertical distance between tree nodes / level

I am trying to draw a tree overview and got an example from http://www.texample.net. But I have a problem with the vertical distance between the nodes (levels). Is there a way how tikz can ...
8
votes
2answers
2k 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
1answer
163 views

How to improve the spacing of branches in a tree?

I am trying to build a tree but the length of branches is of uneven size. Moreover, I might need to change the labels to strings of shorter/larger length. Do you have some suggestions to improve this ...
3
votes
2answers
68 views

TikZ tree (not aligned text at a given level of the tree because use exponent)

I have a tree (see example) for which the text at level 1 is not aligned since one of the text uses some math expression with an exponent (i.e., $\mathtt{int}^2$). Any idea how to get all the texts ...
3
votes
1answer
202 views

How to draw AVL rectangle represention in TikZ?

I am trying to represent AVL's in an old way that I was taught and found more intuitive to display in comparison to most common books nowadays. The raw images with the features I am interested in are ...
5
votes
1answer
217 views

Forest: different growing directions for branches on the same level

Problem In TikZ, one can control the growing direction of a branch (and its sub-branches) by using the grow=<direction> key. In forest, however, the grow key only controls the growing direction ...
7
votes
2answers
239 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
2answers
407 views

Is this possible in Tikz?

I am wondering if it is possible to quickly create something like this in Tikz. In particular, I am concerned with making the zig-zag line, which has these properties: Each star is on a clearly ...
5
votes
1answer
194 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...
7
votes
1answer
326 views

Clear and readable syntax style for tikz trees with edge labels and options

I'm fairly new to tikz and TeX but I don't have a problem writing the code for the tree. I just would like to have a human readable tree. Here's a minimal expample of the tree without edge labels or ...
5
votes
1answer
308 views

How to connect two parents to the same child, with parents not in the same tree?

I'm trying to draw a specific tree, with two parents node linked to the same child. The problem is that one of the parent is outside the main tree. Here's the code I have for the moment: ...
4
votes
0answers
205 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
11
votes
2answers
379 views

How to draw the recursive H-Layout tree using Tikz?

The following image shows a recursive H-Layout tree. It is called H-Layout because of its H unit consisting of 7 nodes. My problem is: How to draw such tree in a recursive manner instead of ...
6
votes
1answer
440 views

How do I create a Tikz mindmap that has two connected roots?

I am creating a mindmap that has multiple root concepts instead of just one. How can I create such a mindmap using Tikz? These are the mindmaps: \begin{tikzpicture}[small mindmap,concept ...
3
votes
3answers
554 views

Overlap in graphing TikZ picture

I'm drawing trees in graph theory. Some of the nodes are overlapped. Can anyone help? % Red-black tree % Author: Madit \documentclass{article} \usepackage{tikz} ...
7
votes
2answers
576 views

More efficient way to draw movement arrow to roof in tikz-qtree

When drawing syntactic representations in linguistics, one often uses a triangle to represent a unit whose internal structure is irrelevant. This can be accomplished with the tikz-qtree command ...
3
votes
2answers
1k 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 ...
4
votes
2answers
354 views

Creating a punktchain or flow diagram in tikz/pgf latex that is two column then merges to one and back to two

I have update the example code with some of the comments to get really close to what I want. Now I just want two lines coming out of filter 1 and filter 2 inline and with the same line style as ...
5
votes
2answers
210 views

How to converge various nodes with rectangular shapes and arrow in TikZ?

I'm very new to TikZ. I would like to join some nodes as shown in the attached image I've got some idea from this thread tree rectangular. However, I could not manage to implement this properly ...
2
votes
1answer
330 views

Draw a vertical flow chart [closed]

I would like to draw a Diagram like the one in the attached picture.
5
votes
2answers
282 views

Drawing a LISP expression as a tree

Somewhat inspired by How to automatically draw tree diagram of prime factorization with LaTeX? and mostly motivated by laziness, I'd like to be able to draw a tree defined by LISP syntax for a class ...
4
votes
1answer
165 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!
6
votes
1answer
648 views

Label on a tree edge to a node that has children

I have a problem when trying to label an edge that goes to a node that itself has children. Here is what I would like to do: \begin{tikzpicture} \node {A} child { node {B} edge from parent ...
1
vote
0answers
39 views

How come it always says \tikzlibrary{calc} is missing? [duplicate]

Whenever I put 2 trees onto a document, the system always tells me I am missing \tikzlibrary{calc} on the second tree (I have the same line for both trees) on this line \draw[dashed,rounded ...
4
votes
1answer
274 views

How to draw search space tree in a dynamic manner

I am visualising the search space for a set of binary variables. I have done it for three variables before; and now I am extending it to six but seems a tedious work to do. Thus, I am wondering if ...
2
votes
0answers
137 views

Tikzpicture: Data from File

I want to create a number of trees from a series of input files. What syntax would the file need to be in to create the following tree? This is what I need done, but from a file and with loops ...
3
votes
1answer
434 views

Inserting floating text near decision tree arrows

How do I insert Yes and No beside the solid arrows? I tried putting node [near end, right] {Yes} after each node and child declaration but this just messes up the flow of the decision tree. Code ...
1
vote
1answer
351 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 ?
2
votes
0answers
105 views

TikZ-PGF child nodes in different locations

When I use TiKz to draw two trees, each in a nested picture, the position of the middle child of the second tree is different from the first. This is even though the code for the trees is basically ...
7
votes
1answer
246 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
312 views

Vertical distance in tikz-qtree nodes

I have put together a language tree using the following code (MWE): \documentclass[b5paper,11pt,twoside,one column,openright,draft]{memoir} \usepackage{rotating} \usepackage{tikz-qtree} ...
8
votes
2answers
321 views

How to highlight tree levels

How can i highlight tree levels to be some thing like that... I've drawn my tree with this code \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
1
vote
1answer
146 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. ...
11
votes
1answer
582 views

Organigram in Latex. Vertical distance between nodes

I want to draw a organizational structure in form of an organigram. I found this solution and tried to adapt it. The code: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
107 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. ...
2
votes
2answers
290 views

Style inheritance in TikZ trees

As I read the rule for style inheritance in a tree (pgfmanual 18.4, page 215), the naked [rect] below should mean that the node labeled "empty" be rectangular. But it's not. What am I doing wrong? ...
7
votes
1answer
334 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 ...
2
votes
1answer
538 views

Tikz-Tree: Arrow-style depending on parent node

I have drawn a tree in tikz with different styles for nodes (this simplified example has nodes with style a or b). The arrows from nodes to childs are always the same and I would like to apply ...
4
votes
1answer
295 views

TikZ - Smooth curve surrounding points without specifying control points

This is what I have right now: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,automata} \definecolor{light-gray}{gray}{0.6} \begin{document} \begin{tikzpicture}[line ...
5
votes
2answers
261 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} ...
3
votes
1answer
336 views

Tikz example doesn't compile

I tested this example (from tikz package) example's link and my IDE TexMaker with MiKTeX returns an error ! Package pgfkeys Error: I do not know the key '/tikz/edge from parent fork dow I aalo ...
10
votes
1answer
380 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 ...