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

learn more… | top users | synonyms

3
votes
1answer
67 views

Straightening the edges in tikz-qtree

I have a tree, which turns out to be a ternary tree. Here is the code \begin{tikzpicture} \tikzset{level distance=18pt,edge from parent/.style={draw, edge from parent path={(\tikzparentnode) -- ...
3
votes
2answers
81 views

How to adjust the size of edges when we have large number of items in tikz-tree?

I am working on a hierarchy diagram which has large number of items on its leaves due to which my diagram goes out of page and eventually i am unable to see right half of tree following is the code I ...
2
votes
1answer
196 views

How to nicely place two heaps next to each other

I am quite new to latex and I have a question on how to place two heaps of this size nicely next to each other in latex. For example: \[\begin{tikzpicture}[every node/.style={circle,draw},level ...
1
vote
0answers
339 views

please how can i create this organization chart using latex? [closed]

please help me to create this organization chart using latex an tikz
1
vote
1answer
92 views

Compiling in latex-suite halted with lualatex error with pattern not found

So I'm getting this error after compiling a .tex file with an import \usetikzlibrary{graphdrawing.force} and compiling hitting ,ll in vim's latex-suite. Pattern not found: \Vn LuaTeX to use the ...
4
votes
3answers
399 views

Figure in Tikz (2 state Markov)

I would like to make the following figure in Tikz: I have tried using the code here, but I did not succeed unfortunately. Can anyone provide me some code to make such a picture? Thanks in ...
7
votes
2answers
454 views

How do I format text inside a node?

I'm making an academic family tree and I'd like to put a couple of bullet points of info for each person. I'm just starting with LaTeX, so this is the simplest code possible: ...
4
votes
1answer
56 views

Trees with tangent curved arrows

The arrow controlled by \draw[semithick, dashed, ->] (pe)..controls +(south west: 50) and +(south: 50) .. (re); dissects the tree. I want it to curve round the bottom-most node of the tree. I ...
4
votes
2answers
227 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 ...
4
votes
1answer
139 views

Tikz vertical levels instead of horizontal

The following code : \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{external,arrows,shapes,positioning,shadows,trees} \tikzset{ basic/.style = {draw, drop shadow, ...
3
votes
2answers
242 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
88 views

How to perform correct manipulation of child?

MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{tikz} \usetikzlibrary{mindmap} \pagestyle{empty} \begin{document} \begin{figure}[H] \centering \begin{tikzpicture}[mindmap, grow cyclic, every ...
3
votes
1answer
130 views

Tree diagram with boxes and arrows

Good day everyone here at TeX.SX. I have been troubled with the following task; I need to create some sort of tree diagram that resembles the accompanied image. I am providing a MWE. ...
4
votes
1answer
152 views

Drawing a graph with labeled edges in foreach loop

How to add different label for each edge in example on the picture. How can I do this in foreach loop? \begin{tikzpicture} [scale=.8,auto=left,every node/.style={circle,fill=blue!20}] \node (n6) ...
5
votes
1answer
126 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: ...
3
votes
1answer
175 views

TikZ: Drawing directed trees using tree layout, child{…}-syntax and lualatex

There seems to be no way to draw directed edges using the new (?) tree graph layout and the child-syntax. \documentclass{standalone} \usepackage{tikz} \usepackage{lmodern} ...
11
votes
1answer
152 views

Visual table of contents (tikz mindmap) - Problem in output

I would like to make visual table of contents, just like here. However, I have a part that does not have a section and I would like it to output, but it does not do so. I took my code from here as ...
4
votes
2answers
175 views

TiKz tree, i need to force move a node down

I'm making this tikz figure But i want to move the [ A C C T] box down on the same levvel as the other 3.. That is making the path line longer to the right and longer down. Please help. Code: ...
3
votes
1answer
153 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
110 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} ...
8
votes
2answers
494 views

How can I draw these pictures with TikZ?

I have the following images: Binary Decision Diagram (BDD): Binary Decision Tree (BDT): and I would like to draw them in LaTeX with TikZ. Furthermore, I would like to make them "consistent" ...
2
votes
2answers
95 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} ...
1
vote
2answers
96 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} ...
8
votes
2answers
320 views

Extending a tree

I am trying to extend the following tree, so that it is as in the picture: \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} ...
5
votes
1answer
282 views

drawing complex dependency diagrams with tikz / forest

I want to draw the following Word Grammar diagram with tikz/forest: I am a great fan of forestand would like to have a style for such graphs, but I think this is non-trivial/impossible for this type ...
1
vote
1answer
56 views

Entering a level

I am trying to create a level below Ruth & Anita to create one node called 'Chris', with the rest remaining the same as it is currently. \documentclass{exam} \usepackage{tikz-qtree} ...
8
votes
1answer
165 views

Targeting proper parts of nodes in `forest`

I am using forest to construct trees. I have one (minor but persistent) issue: sometimes I would like to place a node at a point that is a proper part of (e.g.) a leaf, in particular so that I can ...
6
votes
2answers
189 views

move the green box to the top of the right grey box

The following is the graph I modified from the forest style, but I encounter an problem when I try to move the green box to the top of the right grey box, I know the main problem is the tree style, ...
1
vote
0answers
33 views

Align the forest from left to right [duplicate]

Recently, I applied cfr's code to what I wanted (see below). But I want to arrange this diagram from left to right in order to put into my book, that is, put the topmost box at the left side of page ...
3
votes
2answers
240 views

Writing info into a tree

I want to draw this tree, but I want the data on the branches to be parallel to the branch, not like the result I am getting Thank you! \documentclass[12pt,oneside,a4paper,fleqn]{report} ...
2
votes
1answer
100 views

Properly spread tikz tree nodes

In the middle of drawing blooming tree, which is declared in generic way, something is going wrong. Please, help me to separate middle nodes and put boxes with borders on every node. ...
2
votes
1answer
46 views

Position of a line between two nodes

I don't understand how to use the command (origin.220) -- (origin.220|-Destination.north) in my code and therefore I'm have to guess when I'm going to put a line between two nodes. How can I determine ...
2
votes
5answers
243 views

How to make the simple three square box and connect them?

I want to make the three square box and simply connect them.
2
votes
1answer
140 views

Caption and label tikz-qtree inside figure

I want to create a figure caption for my tikz-qtree. Unfortunately it does not compile. \documentclass[fontsize=12pt,a4paper,oneside ]{scrreprt} \usepackage{pgfplots} ...
2
votes
2answers
293 views

Draw circle near to box in tikz qtree

I'm trying to draw above a node: a circle Some text But I dont know how to do it. This is my provisional code \begin{figure} \captionof{figure}{Estructura del análisis de árbol lógico } ...
6
votes
2answers
360 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 ...
2
votes
2answers
302 views

A scenario tree in latex

I know it's a bit tedious, but could someone please write me the latex code for below tree? Here's how I started \documentclass{article} \usepackage{amsmath} \usepackage{forest} \tikzset{ ...
2
votes
1answer
122 views

Adding trees or terminal words to multi-dominance structures

I'm trying to add either a word or a tree to the DP node that is connected to the main tree by the wavy lines, in the same way that the V node has the expression "smokes" below it. How can I do this? ...
0
votes
1answer
213 views

Drawing directed random walk on integer lattice

Could you please help me to draw random walks in random environment. How can I draw directed random walk on lattices such as or with different colors . I think method is almost same. but I don't ...
4
votes
1answer
141 views

How to typeset a MinMax algorithm tree?

I want to typeset MinMax decision trees in LaTeX, just like the one in following picture: I have played around a little and achieved part of my goals: \documentclass{article} ...
4
votes
3answers
649 views

How to convert my word organisation chart to latex

I am trying to convert my word document to latex document. I have an organization chart similar to the following picture: I tried the following code in latex but the result is not similar to word ...
0
votes
2answers
135 views

Dashed edges from parent to normal edge in child in trees

I am creating a tree in which the edges from a child to its children are dashed. I got this using child[dashed]. Now all the edges of these children are dashed. I want to override this. So unable to ...
5
votes
2answers
361 views

Resolution trees in latex

I would like to draw a resolution tree such as this. I have already seen this post and I could make trees like the example shown in that. However, I do not know how to point to a child node from ...
1
vote
0answers
92 views

Automatically Diagram Pointer Structure with TikZ

Suppose one has a program with many data objects that have pointers to other objects. How could one use TikZ to automatically draw a diagram of the pointer structure? I'm thinking of outputting the ...
3
votes
2answers
629 views

Adding text above a node in Tikzpicture tree diagram

I'm trying to add text above the lines coming from a chance node in a Tikzpicture decision tree. It seems easy to add text at the end of a line, or above the parent node's lines, but I can't figure ...
4
votes
2answers
300 views

How to set distance between individual siblings in a tikz-qtree tree?

I have made this tree for my research project. I've just renamed all attributes for this question. You can see in the picture below that siblings on the top are very congested and the picture overall ...
12
votes
3answers
434 views

Accuracy of calculations in TikZ with fixed point arithmetic

I want to build a tree which satisfies the following: It grows to the right. The first child grows at 0 degrees (subsequent children growing clockwise). All children nodes are in the same ...
11
votes
2answers
364 views

Two lines in a single node in Forest

I have recently switched from the tikz_qtree package to forest. Now I'm trying to change my trees to fit the forest coding. However, I can't find the way to let a single node contain two lines. I do ...
3
votes
1answer
351 views

Edit position of nodes in tikz mindmap

I'm trying to make a mindmap with tikz but I want to add some fading (smooth transition between clear blue and dark blue) between the colour of the root node and his childrens. ...
2
votes
0answers
584 views

TikZ new graphing library - how to use?

Ubuntu 14.04 tex version : TeX 3.1415926 (TeX Live 2013/Debian) After seeing this post I really wanted to play with the example and library, however I can't seem to get it working on my system. ...