{tikz-trees} is for questions addressing issues related to trees in {tikz-pgf}.
7
votes
1answer
63 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 ...
3
votes
1answer
47 views
Vertical path to node in TikZ trees
How can I set the path between two specific nodes to "vertical" rather than "direct"?
Currently my tree looks like this:
\begin{tikzpicture}[level distance=1.5cm,
every ...
4
votes
1answer
84 views
Multi-rooted Tree-like Structures and Nodes with Multiple Parents in LaTeX
The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate:
Multiple roots &
Nodes with multiple parents
in a tree in LaTeX?
6
votes
2answers
82 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 ...
3
votes
4answers
142 views
What is a more efficient way to draw this tree?
I have drawn the following tree in TikZ. What I don't like about it is
that I have to manually adjust the sibling distance for each level; and
the syntax is too cumbersome.
It has been suggested ...
4
votes
1answer
57 views
Right shift of a node in a tree
I want to shift a node to the right because it coincides with another node:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[sibling ...
1
vote
2answers
95 views
Create a syntax tree with LaTeX
Is is possible to create this tree with LaTeX ?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}
\node {E}
child { node {F} }
...
0
votes
0answers
37 views
How to draw \leadsto line? [duplicate]
I wish to replace straight line with the \leadsto line. I tried \draw[leadsto] (s2)--(s3);
however it can not work.
Below is my code
\documentclass[tikz]{standalone}
\usepackage{tikz}
...
4
votes
1answer
100 views
How to get text above fork style edges in a TikZ tree
I'm new to TikZ and have a problem with a decision tree. In the example below I would like to have text above the horizontal line of an edge.
Something like:
Check
A
|
...
7
votes
1answer
141 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 ...
4
votes
1answer
157 views
Using beamer overlays with forest generated trees
I am using the forest package from Sašo Živanović in order to create a wide tree on a beamer slide.
Previously, I was using qtree. But due to the easier way of arranging nodes automatically with ...
2
votes
2answers
117 views
Drawing tree like structure
I have to draw the following figure. What I have now is uggly. Somehow the structure should be more balanced. Is there a way to do this with tikz-qtree? The point is that it is multiple dominance and ...
5
votes
1answer
87 views
Opacity in PDF not rendered the same between Adobe Reader and TeXworks
When producing a PDF from the following example using pdflatex, I get different results between Adobe Reader and TeXworks. I think this is a bug in the way that Reader handles opacity/transparency.
...
1
vote
2answers
95 views
[Tikz-]Qtree: force direction of single child to left or right?
I'm trying to draw a tree that has internal nodes with only one child, but which must be oriented.
/
\
/\
\
/\
Instead of the typical qtree where said children just "hang":
...
10
votes
2answers
173 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 ...
2
votes
1answer
140 views
Bringing the nodes of a TikZ decision tree closer to each other vertically
I am currently working on creating a decision tree for a journal publication and need to save space.
As of right now, my decision tree looks like
Although this is nice, I would like to "compress" ...
4
votes
0answers
51 views
Recursive Stern-Brocot tree definition
I am trying to build a Stern-Brocot tree (enumeration of rationals).
The result is nearly acceptable, but I am still dissatisfied with the following points.
The edge from the parents goes to the ...
10
votes
3answers
187 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:
...
5
votes
1answer
86 views
Crossed hierarchy
I appreciate it if you let me know the most elegant way to draw a crossed hierarchy such as the followings:
X
/\
Y Z
/\/\
p q t
q has two parents Y and Z.
3
votes
1answer
114 views
Uncover parts of a tree in TikZ
I'm trying to apply Daniel's method to uncover the bottom right part of the tree in the following MWE. However, when I pass the option [visible on=<2->] to one of the children, it appears to ...
0
votes
0answers
161 views
LaTeX Hierarchy Chart
I'm trying to create a chart in LaTeX. I found a couple of packages that do similar things but none that really provides what I want. Since my chart is really not that complex I hope someone out here ...
2
votes
1answer
64 views
Can't part siblings in a tikz tree picture
I'm having some trouble parting siblings in a tree drawn by tikz. I'm making a parsing tree for an assignment. I have already made the tree, but there is some overlapping. I tried to use the
...
7
votes
1answer
272 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}
...
0
votes
1answer
64 views
newtxmath and tikz in collision [closed]
When I try to draw a Feynman diagram with superscripts, if I use newtxmath, the superscripts on the particles (like \mu^{-}) won't show. Here's the mwe:
%&latex
...
7
votes
2answers
172 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 ...
0
votes
1answer
60 views
the problem about putting one picture on the left and another on the right
I wish to put two graph together, one is on the left side, the other is one the right side.
I use "minipage". However, using the below code, the first graph is on the top of the second graph. May ...
4
votes
1answer
119 views
how to add dotted line and arc line?
I wish to add dotted line connecting two nodes and an arc line as described in the photo.
Here is my code:
\documentclass[tikz]{standalone}
\usetikzlibrary{
shapes.geometric,
positioning,
...
3
votes
1answer
54 views
How to adust the location of the inner component in the Outer component constructed by “fit”?
I use "fit" to make two small rectangles inside a bigger rectangle. And then add some words at the top of the bigger one, which causes a large blank space at the bottom of the bigger rectangle as ...
0
votes
0answers
87 views
How to add slash to the line and locate words? [closed]
I wish to draw the graph like in the picture, however, there are three problems here,
1. how to add the words "OnMess" and "h" on top of the rectangles
2. how to add the word "ac" above the line ...
5
votes
2answers
198 views
how to draw the complex work flow using tikz 2.0
I wish to draw a complex work flow using tikz 2.0 because I tried to update the tikz to 2.1, there are many problems. The work work flow is described as follows:
I have tried to draw it by locating ...
3
votes
1answer
83 views
How to check tikz version using \listfiles Command
I tried to the following code to get the version information about TikZ using \listfiles command. However, there is an error says File amsmath.sty not Found, may someone help me?
...
0
votes
0answers
44 views
Arrow between nodes at same level [closed]
How to place an arrow between two nodes at the same level of a tikz tree?
I have used the following command on all nodes at the same level:
child {node (labelnode<number>) ...
1
vote
1answer
127 views
Arrows in TikZ tree
I've been trying to create a tree consisting out of parents and nodes connected with arrows. I have created almost what I had in mind, except from that the arrows point the wrong direction.
could ...
6
votes
1answer
231 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 ...
4
votes
2answers
105 views
How to split a node content/right align in tikz tree?
This is my code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{trees}
\tikzstyle{bag} = [text width=8em, text centered]
\begin{document}
...
3
votes
1answer
106 views
How specify tree levels nodes sizes?
I am working on a TikZ tree following the tutorial called A Lecture Map for Johannes from the TikZ manual. I am having trouble to get nodes from deeper level smaller than ones of previous level. I am ...
4
votes
1answer
251 views
Drawing a tree with text on the edge concisely using TikZ
I am new to TikZ and am trying to draw a tree with text only on the edge (action/line). I have managed to do it as seen below but I was hoping there was a more concise/legible way.
...
11
votes
1answer
264 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}
...
6
votes
2answers
246 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 ...
9
votes
2answers
239 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 ...
6
votes
1answer
199 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
...
7
votes
1answer
219 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:
...
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 ...
0
votes
0answers
145 views
Tree node that's fills subnodes, and edge style [closed]
as you see in title I want to ask you 2 questions:
How to make tree node that will fit all their subnodes?
How to set edge style to none?
It would be awesome if it could by achieved by typing:
...
12
votes
1answer
365 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] ...
0
votes
0answers
235 views
Example template for a hierarchy diagram [duplicate]
I wanted to draw a tree diagram so that i can put citations beside the node texts. Is there an example in code?
3
votes
2answers
229 views
Tikz, Tree without overlaps
I'm trying to get a nice tree without the overlaps, can anyone help me to improve my code?
\documentclass{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
...
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}
...
2
votes
1answer
149 views
Connecting two nodes in tree rectangular
I want to draw a tree like this:
The closest I could get to this was the following code:
\documentclass{minimal}
\usepackage{tikz-qtree}
\begin{document}
\begin{tikzpicture}
\tikzset{level ...
5
votes
1answer
109 views
Getting vdots in graph tree
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{tikz}
\tikzstyle{vertex}=[auto=left,circle,fill=black!25,minimum size=20pt,inner sep=0pt]
\begin{document}
\begin{tikzpicture}
...
