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

learn more… | top users | synonyms

13
votes
2answers
1k views

Highlight a group of nodes in a tikz tree

To make it simple, I want to highlight a group of tikz nodes like in the following picture It was borrowed from the JLatexEditor. I would like to know which Tikz commands I can use to do the job in ...
4
votes
3answers
648 views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
3
votes
1answer
332 views

How to connect two childs? [duplicate]

Possible Duplicate: How two connect any arbitrary nodes of tree in tikz Hello everyone I'm new to latex. And just started using the tikz package to draw. I have here a code below, which is ...
4
votes
1answer
458 views

Using TikZ, how can I bend the edge between two nodes in a tree?

I tried setting edge from parent/.style={draw, bend left=60}, but the line remains straight. What am I doing wrong? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ ...
3
votes
1answer
167 views

how to draw special line in a picture

Here is my current code for the picture: \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \resizebox{.5\textwidth}{!}{ \tikzset{level 1/.style={level ...
5
votes
1answer
247 views

Measuring TikZ leaves and using measurements to set sibling distance?

TL;DR Summary: Is there some way to measure the width of a leaf node and pass this measurement back up the tree to be used in setting sibling distance? (One might want to do a similar thing for ...
0
votes
1answer
329 views

how to draw angle line? [duplicate]

Possible Duplicate: how to draw special line in a picture I use the code below to draw a picture, however the line is straight from s2 to s4 refer to the image. However, I want the line ...
2
votes
1answer
228 views

how to make the line between two tuples longer?

I drawed a picture like a process flow, However, I found the line between two tuples is too short as seen in the following image. How to make the line longer? Here is the code: ...
8
votes
1answer
821 views

Mindmap/trees in TikZ

I can't get the following tikz examples to work (PGF manual 2.10, page 255). Most likely I can find a solution here that will save me time. Error: ! Missing \endcsname inserted. <to be read ...
12
votes
1answer
310 views

How to expand a macro used in the range of a foreach loop?

Motivating Example: Suppose that I want to draw the following tree: root / \ / \ / \ A B C D This is easy enough to do by explicitly drawing the two subtrees as children of ...
5
votes
1answer
172 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...
1
vote
1answer
117 views

how to add word in the line?

I want to add the word in the line using the bellow code, now the picture is : I want to add the word "p1" in the line between "a" and "b" which looks like: I try to modify the code to \path ...
0
votes
1answer
1k views

how to put two pictures side by side?

I try to put the two pictures side by side using the following code, however, the size of the two pictures are very small like the picture. However, the picture looks like if I don't put them ...
2
votes
1answer
185 views

how to decrease the size of the circle?

I want to draw a binary tree like this: I have come up with the code below, but the size of the circle is too large. I tried to decrease the size, however, failed, can someone tell me how? ...
3
votes
1answer
404 views

how to draw arrow that looks like the symbol “\leadsto” in latex?

please refer to the answer of how to draw a process flow figure? Now I what to change all arrows look like \leadsto in latex, you are refer to the picture I can not find it in the manual, ...
2
votes
1answer
1k views

How to make a connection in a tree with a dashed line?

please refer to the answer of how to draw a process flow figure? Now I want to change the line of "and->path1" to the dashed line, i added [style=dashed], unfortunately it doesn't change, why? ...
4
votes
1answer
515 views

how to draw a process flow figure?

I want to draw the process like in the picture using the code below, however, there is some problem, would someone help me? \usepackage[latin1]{inputenc} \usetikzlibrary{trees} ...
6
votes
1answer
519 views

tikz-qtree spoils tikz trees

When I enable the tikz-qtree package, the tree I am drawing with the tikz trees library looks different. Specifically the edges are no longer pointing to proper places on the nodes. In the example ...
7
votes
2answers
1k views

Tree-like diagram (flow chart?) showing selection of scientific papers when reviewing

I know the title I came up with is not self-explanatory, but I will show straight on some real life examples: Part 1, Question 1: Which package(s) is(are) closely suited for such diagrams? I ...
1
vote
1answer
536 views

can't get multiple lines with tikz-qtree package

I am using the following code to draw a fairly simple tree. The problem is that the line break commands are being ignored although I have found a number of examples on the net that show that they ...
3
votes
1answer
360 views

Big table in beamer

I have a big table that does not fit in the slides with Beamer, i write this : \documentclass[10pt]{beamer} \usetheme{CambridgeUS} % theme \usepackage{tikz} \begin{document} \begin{frame} ...
15
votes
1answer
680 views

How to typeset a prefix tree (aka trie)

I am currently trying to typeset a prefix tree (also called a trie). I can make a tree just fine with TiKZ, but I find myself unable to make the prefix tree nodes draw acceptably. I have attached a ...
5
votes
1answer
561 views

Incomplete arrows and missing arrow heads in TikZ

I have the following plot which looks good, but there are two issues: Not all arrows have arrow-heads. I have no idea why this is. Some edges are not long enough. For example, the left edge of the ...
1
vote
2answers
266 views

construction set of tree

I have three trees in latex , I have this construction : with his code : \documentclass[openright,a4paper,11pt,french]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[shorten ...
15
votes
5answers
5k views

drawing tree using tikz, child overlap

I am trying to draw a tree but unfortunately i have some childs overlap each other,I increased the sibling distance , even i have used the option scale but i have the same problem. here is my code : ...
-1
votes
0answers
70 views

how to separate 3 tree latex [duplicate]

Possible Duplicate: Two diagrams side by side construction set of tree I have three trees in latex, I want to represent 2 like this and the third before both ? ...
8
votes
3answers
294 views

Problem using macros to define tree substructures

Relatively simple problem: I want to use macros to define substructures of a tree. In the following example for illustration, I want to define some children (left and right) to be used several times ...
2
votes
0answers
117 views

Draw Tree using tikz [duplicate]

Possible Duplicate: Drawing a tree where many nodes have the same child in TikZ I'm trying the draw a tree using the TikZ package, \begin{center} \begin{tikzpicture} ...
9
votes
1answer
652 views

draw an ellipse into a Tree picture -tikz package

I have draw a tree using tikz package like this \begin{tikzpicture} \tikzstyle{level 1}=[sibling distance=40mm] \tikzstyle{level 2}=[sibling distance=20mm] \tikzstyle{level 3}=[sibling ...
10
votes
1answer
1k views

Drawing a tree where many nodes have the same child in TikZ

I'm trying the draw a tree using the TikZ package, but I don't know how to draw a child node that has many parents. An example for that, is given by this picture My problem is how to draw the level ...
5
votes
1answer
630 views

TikZ tree whose children are located at specified positions?

Is there a way to construct a tree whose children are located at specified positions, so that TikZ computes the locations of the other nodes in the tree based on the level distance and sibling ...
10
votes
1answer
1k views

macro for empty nodes in tikz-qtree

I'm trying to define a macro for writing empty nodes in a binary tree using tikz-qtree. Referring to the code below, I want the string \missing in my code to be replaced by \edge[draw=none]; {} as-is ...
7
votes
1answer
2k views

How to control text margin in TikZ shapes

When using different shapes from TikZ library, they have different inner padding for text. Thus, for similar text, we will have nodes (shapes) with different sizes. Then, the child nodes will not be ...
5
votes
1answer
1k views

Gradient color on TikZ tree

Mindmap creates connection line composed of the parent/child colors. Is it possible to apply such effect on normal parent/child trees to connect the parent and child nodes with a gradient of their ...
6
votes
1answer
874 views

Custom sibling angle for child nodes

As I explored the TikZ manual and available examples; the position of child nodes are defined within the parent node. This means that all child nodes spread on the same radius from the parent with ...
7
votes
1answer
863 views

How to draw a joining line between two picture tikz-pgf

I'am having draw two tree using the tikz-pgf package \begin{frame} \begin{columns}[c] \begin{column}{2cm} \begin{tikzpicture}[scale=0.5] \tikzstyle{level 1}=[sibling distance=10mm] ...
8
votes
1answer
863 views

How to shade mindmap concepts?

I tried to add a shade on my mindmap's concepts with \begin{tikzpicture}[mindmap, text=white, every concept/.append style={circle,shading=ball, ball color=black!20!white!20}] but the problem is ...
13
votes
2answers
2k views

How to decrease the size of single node in mindmap?

In tikz's mindmap, I want to change the concept size for individual parents or children (not the entire system). It is simply possible to increase the size of a child node, by introducing minimum size ...
4
votes
1answer
497 views

how to draw tree with a specified width between nodes

Below is what picture i want Words of level 1: Rule Words of level 2: Length Pattern Arcs Words of level 3: T1 T2 A1 Words of level 4: term_index term ...
5
votes
2answers
291 views

Unexpected result for child nodes: why they seem to be typeset in bold?

I was trying to draw something similar to: without the border around nodes and where arrows should have a line (with a given width to be visible) connecting the tail and the tip. My code is: ...
2
votes
1answer
277 views

How to move to the other side of the trunk a full branch of a tree made with TikZ?

I am a beginner in LaTeX, and trying to make my first tree diagram with TikZ. I have borrowed one sample of code and adapted it. I would like however to move the branch "Automatic formatting" to the ...
5
votes
1answer
1k views

How to change the shape of TikZ's mindmap children?

Consider the original example of tikz's mindmap. The standard shape of both parent and children is circle. The official document states the difference of TikZ's mindmap from standard mindmaps by using ...
1
vote
0answers
438 views

Generate trees based on number of nodes and children allowed [closed]

I am doing an experiment, and would like to generate images of Binary Trees and Exponential Trees using LaTeX. The difference between these two structures is the number of children allowed per node ...
2
votes
1answer
387 views

Writing a line from two sibling nodes in a TikZ tree

Recently I am struggling on TikZ and it is really difficult to find options and solutions considering it is such a huge and comprehensive library. What I actually would like to do is drawing, in a ...
1
vote
1answer
723 views

Problems with tikz tree growth on secondary levels in trees

I have the following code: \begin{tikzpicture}[grow=right, sloped] \tikzstyle{level 1}=[level distance=1.3cm, sibling distance=1cm] \tikzstyle{level 2}=[level distance=1.2cm, sibling distance=1cm] ...
4
votes
2answers
2k views

How to draw a horizontal tree with branches on the right and left?

I need to draw trees but they should extend (from the root) on both sides. TikZ seems a good solution but do not how to manage it.
2
votes
2answers
723 views

big trees in TikZ - avoiding the “grouping levels” limit

I have a problem with the following code: \begin{tikzpicture} [level distance=4mm] \path [ every node/.style={ball color=red,inner sep=1.5pt}, level 2/.style={sibling ...
4
votes
1answer
542 views

How to draw custom nodes attached to tikz-qtree?

I want to draw a tree which is similar to the Merge sort recursion tree in this Tikz sample from TeXample.net: However, I don't want to draw all the + and = signs, I just want two columns: one from ...
14
votes
2answers
5k views

How do I make an unbalanced binary tree?

How do I draw just a tree with one child using tikzpicture? As shown in the picture, I want to have a tree like (1). But I have only been succesful in getting a picture like (2) and (3) using: ...
3
votes
1answer
624 views

Example of matrix node in trees in tikzpicture

I'm trying to recreate this image using tikz matrices in a tree. I can create the first node and can hook up to children, but I can't get the syntax for including more matrices as child nodes of ...