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

learn more… | top users | synonyms

1
vote
2answers
36 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} ...
2
votes
2answers
67 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} ...
5
votes
2answers
123 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} ...
2
votes
1answer
1k 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 ...
5
votes
1answer
110 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
50 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} ...
6
votes
2answers
156 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, ...
7
votes
1answer
84 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 ...
1
vote
0answers
31 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 ...
10
votes
4answers
490 views

Mendelian Inheritence Chart

I would like to be able to create a simple chart that depicts Mendelian Inheritence, like this one: I'm not too picky about how it looks, as long as it depicts it accurately. Thanks!
4
votes
2answers
70 views

Tree diagram got cut off

After compiling the code for a tree diagram, some parts of the right hand side of the tree got cut off. I've already used \centering function but this does not fix the problem.I'm not sure how to ...
5
votes
2answers
115 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 ...
11
votes
3answers
1k views

Family tree with multiple marriage ties

I'm trying to build a family tree, and among the many examples I've found online this one has been the most useful: How can I improve this family tree in TikZ? However, there are two things I cannot ...
7
votes
4answers
521 views

Drawing vertical hierarchical n-ary tree in tikz

I am trying to draw a simple vertical tree to represent a hierarchical partition of a graph in communities. I have written some code to draw it in tikz, but I am not very satisfied of the result. My ...
1
vote
3answers
261 views

How to draw family tree like in website http://phdtree.org/scholar/ng-andrew-y/ by TikZ?

Could anybody help me draw the family tree like in website http://phdtree.org/scholar/ng-andrew-y/ by TikZ? Anyother (latex)tools are also encouraged.
5
votes
3answers
607 views

Making mixed trees with and without text-containing nodes

I’m using TikZ to draw linguistic syntax trees where some nodes have textual labels and some nodes don’t. I’d like the branch from a labelless node to continue at the same angle into the right hand ...
3
votes
2answers
189 views

Produce a tree diagram to display football matchup

I am working on a Math Project involving football matches. I hope I can produce a tree diagram like this. Could anyone help me with the basic code? I feel producing this diagram requires tikz, which I ...
3
votes
2answers
173 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} ...
0
votes
2answers
38 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 ...
2
votes
1answer
33 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. ...
1
vote
2answers
481 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 ?
7
votes
3answers
796 views

How do I skip a level with tikz-qtree?

I'm trying to draw a tree, but I can't get it to skip one level. This is my code. \documentclass[border=1cm]{standalone} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} [every tree ...
5
votes
2answers
434 views

How to shift a subtree of a tikz tree horizontally

how can I shift a subtree of a tikztree/qtree to the right without affecting the rest of the tree? Consider the following tree: \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} ...
4
votes
2answers
154 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. ...
10
votes
3answers
431 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} ...
9
votes
4answers
351 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 ...
6
votes
3answers
920 views

What can I do to improve the spacing in a Tikz tree?

I finally managed to make a genealogy tree with Tikz, but there are some spaces that I can't figure out how to increase between nodes: ...
12
votes
3answers
6k views

TikZ tree sibling distance

I have been struggling a bit with TikZ and how to build trees. What I need now is some advice on how to improve the node placement. Right now I have these 2 trees: ...
1
vote
2answers
745 views

Drawing AND/OR trees in Tikz

Is there a simple way to achieve this type of graph? Obviously a lot neater than this... But the important feature is the join between the two children of P.
2
votes
1answer
37 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
134 views
2
votes
2answers
98 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 } ...
2
votes
1answer
39 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} ...
6
votes
2answers
176 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
84 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
62 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
76 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 ...
21
votes
4answers
7k views

Drawing a directory listing a la the tree command in TikZ

Good day everyone - Is there a fast and efficient way to draw directory tree structures (aka depth-indented listings) like the unix's tree command, that is, is there a way to draw the following using ...
9
votes
2answers
3k views

Probability Tree-diagram with TikZ

Thanks for helping me out. How can I make the following tree-diagrams? http://www.vias.org/tmdatanaleng/cc_prob_cond_independ.html
4
votes
1answer
67 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} ...
3
votes
3answers
120 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 ...
18
votes
3answers
2k views

Genogram or family tree with PGF/TikZ

Since it has been recommended to me in Stack Overflow to post it here, I will do so: I want to draw a genogram with LaTeX. I tried to do this with TikZ, but since you need to model at least 3 ...
1
vote
0answers
48 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 ...
12
votes
3answers
288 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 ...
3
votes
2answers
159 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 ...
2
votes
2answers
255 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 ...
3
votes
2answers
106 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 ...
11
votes
2answers
108 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 ...
8
votes
4answers
477 views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
2
votes
0answers
214 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. ...