{tikz-trees} is for questions addressing issues related to trees in {tikz-pgf}.
17
votes
1answer
559 views
Mindmap with Tikz
I created a mindmap according to this example: http://www.texample.net/tikz/examples/computer-science-mindmap/
Sometimes the branches contain too much information so that the map looks ugly like in ...
15
votes
5answers
2k 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 :
...
14
votes
2answers
2k 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 ...
14
votes
2answers
475 views
Error with cleveref + enumerate + tikz-qtree
I get an error in my document in the following circumstance:
Using the cleveref package
And the tikz-qtree package (for drawing syntax trees)
Inside an enumerate environment
Here's a MWE:
...
14
votes
1answer
440 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 ...
13
votes
2answers
3k 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:
...
13
votes
1answer
502 views
Drawing shapes around Tikz Tree nodes
I have a Tikz tree in my Latex document as follows:
% Set the overall layout of the tree
\tikzstyle{level 1}=[level distance=4.5cm, sibling distance=6.5cm]
\tikzstyle{level 2}=[level distance=4cm, ...
12
votes
2answers
919 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 ...
12
votes
1answer
366 views
Nested node class with pictogram decoration
I'm wondering how can I define custom TikZ node class mynode thats allows my to use following syntax:
\node [mynode,fill=yellow!40] {component}
\child{
\node [mynode,fill=yellow!40] ...
11
votes
2answers
446 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 ...
11
votes
1answer
267 views
draw a many edge from a node- Tree - tikz
i want to draw the tree in the following picture :
i have write :
\documentclass{article}
\usepackage{tikz}
\usepackage{color}
\definecolor{red}{rgb}{1,0,0}
\begin{document}
...
11
votes
1answer
186 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 ...
11
votes
2answers
598 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 ...
10
votes
3answers
190 views
TikZ: How to center captions below figures in matrix
I have three figures that I want to align in a matrix. Each figure is drawn in a different way and needs a caption that is centered below the corresponding figure.
Here is what I currently have:
...
10
votes
2answers
177 views
Jackson structured programming diagram (format a tree diagram)
I'm trying to create a Jackson structured programming diagram. This is basically a simple tree diagram with the exception that boxes can either have a circle (O) or a star (*) in the upper right ...
10
votes
1answer
509 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 ...
10
votes
1answer
707 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 ...
10
votes
1answer
230 views
Tikz tree and position of single leaf in binary tree
I am constructing a binary tree which looks as follows:
\begin{tikzpicture}
\node {root}
child { node {left} }
child { node {right}
child { node {rightmost} }
...
9
votes
2answers
421 views
How do I center this qtree?
I am trying to draw a tree using the tikz-qtree package, however I am having issues with the nodes of the tree being not centered.
\documentclass[10pt]{article}
\usepackage{tikz}
...
9
votes
1answer
468 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 ...
9
votes
2answers
241 views
Hyperlinked nodes in TikZ mindmap
I am trying to make a small mindmap such that some of the child nodes are hyperlinked. I tried to follow the advice given here, about the new node style hyperlink node, but the following MWE compiles ...
9
votes
1answer
582 views
TikZ: connecting nodeparts
I'm new to TikZ. Last couple of hours in fact.
I was wondering if there was a way of connecting nodeparts from different nodes.
Here's an example
\documentclass{article}
\usepackage{tikz}
...
8
votes
3answers
969 views
Drawing a tree of grids
I need to draw a game tree that is similar to the image below. Is there any way to do this using the Tikz package so that the grids can simply be added as nodes?
8
votes
2answers
1k views
Joining two branches of a family tree
I'm trying to write out a family tree for a friend, and I have a few minor issues.
My code is
\documentclass{article}
\usepackage{tikz-qtree}
\begin{document}
\tikzset{edge from parent/.style=
...
8
votes
1answer
289 views
Snow on tikz-qtrees
Is it possible to add some snow on the syntax trees drawn by tikz-qtree? A simple example:
\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage{savetrees}
...
8
votes
3answers
240 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 ...
8
votes
1answer
278 views
Edged arrows with tikz-qtree
I've seen this nice little example tree drawn with LaTeX, afaik not tikz. Can I draw similar arrows with tikz-qtree by specifying start and end point only?
8
votes
1answer
551 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 ...
8
votes
1answer
2k views
Decision Tree with Tikz
I am trying to draw a decision tree. I have gotten very close to the end result with this:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{trees,shapes,snakes}
\begin{document}
...
8
votes
1answer
292 views
Same node distance between levels in a tikz tree?
I want to draw a tree using tikz, but I want the vertical distance between nodes in successive levels to be the same, regardless of the size of the node.
For example:
\documentclass{article}
...
7
votes
2answers
176 views
How put tick and cross mark around a node in tikz?
I want to draw something like this:
This is my tikz code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{trees}
\tikzstyle{bag} = [text width=8em,
text ...
7
votes
2answers
686 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 ...
7
votes
1answer
502 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]
...
7
votes
1answer
498 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 ...
7
votes
1answer
277 views
TikZ flowchart child
Is it possible to show block C as a single block rather than having 3 blocks?
\documentclass[landscape]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
...
7
votes
1answer
1k views
LaTeX probability tree
Please could you tell me if the Probability tree posted on 2006-12-14 by Kjell Magne Fauske can be done with three branches instead of just two.
7
votes
1answer
67 views
How to align parent nodes to the left/top in a tree
I am drawing trees in LATEX. The qtree library seems to be what I need but the parent is always placed in the center of its children like this:
parent
/ \
child_1 child_2
(I'm a new ...
7
votes
1answer
331 views
Tikz arrowhead size in tree using decorations?
Tikz is weird when in comes to decorating tree edges.
I'd like to draw a tree with a snakey line with an arrow in the middle.
What sounds simple is somewhat tricky but I found a solution with a ...
7
votes
1answer
135 views
7
votes
1answer
147 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
1answer
197 views
Dashing one edge from parent in a tree: why does it work
This is related to the question How to make a connection in a tree with a dashed line?. Therein, it is asked how one can make one connection between a parent node and a child dashed.
The final ...
7
votes
1answer
220 views
How to get, both fork down and right in a TikZ tree or diagram
I need your help with a diagram, where I want to place both fork down and right to organize my concept map.
If someone have a better solution, please give me some advice.
Here“s the code:
...
6
votes
2answers
2k 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:
...
6
votes
2answers
248 views
Tree in tikz, with triangles standing for sub-trees
I need to draw a tree in tikz similar to this one:
What I CAN'T DO is drawing the dashed triangle leaves (standing for unspecified subtrees).
I think I can manage to draw the legend by myself, and ...
6
votes
1answer
201 views
Changing the indentation of a Tikz tree
I've drawn a directory listing style tree using code similar to that found in Drawing a directory listing a la the tree command in TikZ. I'll repeat it here for clarity
...
6
votes
2answers
89 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 ...
6
votes
1answer
234 views
How to draw the structure with rectangles inside
I wish to draw the flow like in the picture using the code below, however, I found it is very hard to locate the rectangles by using Coordinate. Is there any better way to do this?
Here is the code ...
6
votes
1answer
389 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 ...
6
votes
1answer
1k views
Horizontal hierarchy tree in tikz-qtree: bad layout for longer node-names
I'm trying to set a number of hierarchy trees directly in LaTeX and found tikz-qtree quite helpful for this task.
Since the descriptions for the nodes and children are rather long words, the layout ...
6
votes
1answer
824 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 ...
