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

learn more… | top users | synonyms

3
votes
1answer
179 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 ...
3
votes
1answer
720 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 ...
3
votes
2answers
3k views

Fit flowchart into one page

I am trying to create a flowchart using TikZ and i have few difficulties... My flowchart doesn't fit into one A4 page The text Yes \ No is on the line and not on the side of it. The size of decision ...
3
votes
1answer
167 views

Close a cycle in a TikZ graph with a loop

Consider the following simple flow diagram. I like using the graph drawing library in TikZ for its simplicity and semantics: \documentclass{standalone} \usepackage{tikz} ...
3
votes
2answers
65 views

TikZ tree (not aligned text at a given level of the tree because use exponent)

I have a tree (see example) for which the text at level 1 is not aligned since one of the text uses some math expression with an exponent (i.e., $\mathtt{int}^2$). Any idea how to get all the texts ...
3
votes
1answer
196 views

How to draw AVL rectangle represention in TikZ?

I am trying to represent AVL's in an old way that I was taught and found more intuitive to display in comparison to most common books nowadays. The raw images with the features I am interested in are ...
3
votes
1answer
245 views

tikz trees - children attached to wrong node

Consider \usetikzlibrary{calc,decorations.pathreplacing,shapes.symbols} \begin{tikzpicture} \node [shape=cloud,aspect=2,draw] {\strut} [level distance=6em,sibling distance=1.5em,grow=45] child ...
3
votes
2answers
908 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} ...
3
votes
1answer
379 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} ...
3
votes
2answers
1k views

TeX memory size error when using TikZ foreach children in trees

Nearly Identical: How to expand TeX's “main memory size”? (pgfplots memory overload) I'm getting the same error as the other question, but the answer there is not handling my issue. I believe the ...
3
votes
1answer
47 views

Incompatibility of calc and some styles for forest

I got a cool solution for integrating a tabular-like object into a forest figure (Relating tree nodes in forest to content in a table) but this is incompatible with another cool solution for fixing ...
3
votes
2answers
143 views

Problems with \newgeometry by using landscape and minipage

I try to rotate a tikz-tree and a table which are in a minipage environment by using \landscape because the tree besides the table is to wide. Now, the tree and the table are not centered. The last ...
3
votes
1answer
289 views

flow chart page size issue

I have been doing this since from last month. I want to draw this flow chart using \documentclass[a4paper,11pt]{report} but if I use above configuration (which I want to use) the flow chart does ...
3
votes
1answer
229 views

Drawing arrows to nodes in trees

I try to draw rhe following three figures. The left is just a sequence of symbols NP V NP AP, the middle one is a unary branching tree and the right one is a binary brancing tree. I want to place a V ...
3
votes
1answer
72 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 ...
3
votes
1answer
357 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 ...
3
votes
1answer
388 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 ...
3
votes
1answer
36 views

Showing Tikz tree nodes after each other (using bracketing format of \Tree)

I want to display a tikz tree node by node. First A, then A and B and in the end all nodes. Note that I need to do it with the presented format: \Tree [. \node{A};] since trees are automatically ...
3
votes
1answer
46 views

tikz Controlling the position of prongs of underbrackets in an equation

I would like to make a two (or more) pronged underbracket (or overbracket). In particular, I would like to control the: number of prongs. position of the prongs by specifying to which characters in ...
3
votes
2answers
59 views

Getting non-sense edges in my tree, or, how to get labels on edges

I have the following code. If I remove the edge commands, everything is fine. I suppose the problem is that my nodes have the same contents, but I can't avoid this obviously. Bad code: ...
3
votes
1answer
416 views

Inserting floating text near decision tree arrows

How do I insert Yes and No beside the solid arrows? I tried putting node [near end, right] {Yes} after each node and child declaration but this just messes up the flow of the decision tree. Code ...
3
votes
1answer
322 views

Tikz example doesn't compile

I tested this example (from tikz package) example's link and my IDE TexMaker with MiKTeX returns an error ! Package pgfkeys Error: I do not know the key '/tikz/edge from parent fork dow I aalo ...
3
votes
1answer
74 views

Labels above tikz tree forks

I have an upward-growing tree showing the flow of a proof, as follows: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \resizebox{\textwidth}{!}{% ...
3
votes
1answer
65 views

Alter location of edge in graph in tikz

So I have the following: \begin{tikzpicture}[shorten >=1pt,node distance=1.75cm,thick] \node (A) {$A$}; \node (B) [below left of=A] {$B$}; \node (C) [below right of=A] ...
3
votes
0answers
29 views

Connecting two nodes from different forest trees [duplicate]

I want to draw the following figure without pstricks: What I have is the following code: \documentclass{minimal} \usepackage{forest} \usepackage[external]{adjustbox} ...
3
votes
0answers
95 views

Tikz graphdrawing library with tree layout throws error

When I compile the following snippet \documentclass[tikz,border=0pt]{standalone} \usetikzlibrary{graphdrawing} \usetikzlibrary{graphs} \usetikzlibrary{shapes.misc} \usegdlibrary{trees} ...
3
votes
0answers
43 views

How to draw a tree with fixed node distances? [duplicate]

I am trying to build on the filesystem tree example. I have a similar requirement to display a hierarchical tree, but I'm struggling to get the tree layout right. In the example, the link between a ...
3
votes
0answers
127 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} ...
2
votes
2answers
902 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} } ...
2
votes
3answers
131 views

Strange graph in tikz

I want to make a strange graph in tikz. This graph has some nodes inside the nodes... like this figure: I tried this: \newcommand{\twonodes}[2]{% \begin{tikzpicture}[node distance=0.7cm] ...
2
votes
2answers
91 views

How to elongate the branches attached to one specific node?

I'd like to make longer only two immediate branches attached to the VP node (red ones in the picture) without altering the height of the other branches above and below. Any idea? Thanks! ...
2
votes
1answer
243 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 ...
2
votes
1answer
319 views

Draw a vertical flow chart [closed]

I would like to draw a Diagram like the one in the attached picture.
2
votes
2answers
271 views

Style inheritance in TikZ trees

As I read the rule for style inheritance in a tree (pgfmanual 18.4, page 215), the naked [rect] below should mean that the node labeled "empty" be rectangular. But it's not. What am I doing wrong? ...
2
votes
1answer
52 views

Trees with no node labels

I am trying to draw a simple figure that looks like the following, but have been unable to get it. If I get the nodes not to have any spacing, the edge lengths come out wrong, if I get them right, ...
2
votes
1answer
116 views

TikZ: Skinny ellipse around two horizontally and vertically offset nodes in a tree

As a follow up question to draw an ellipse into a Tree picture -tikz package, how would one go about making a skinnier ellipse that encircles two horizontally and vertically offset nodes in a tree? ...
2
votes
1answer
62 views

Forest package: Left-align all nodes on every level

The tree below looks exactly the way it should. But is a more elegant way to left align all nodes on every level without explicitly specifying tier on every node? This is error-prone and really ...
2
votes
1answer
425 views

Distance between tree levels in Tikz, edges and node centering

Level distance does not seem to have any effect on the 1st node's distance from its children in the MWE below (tried adding level distance and playing with its values at every level, but it works only ...
2
votes
2answers
359 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 ...
2
votes
1answer
224 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? ...
2
votes
1answer
2k 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? ...
2
votes
2answers
888 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 ...
2
votes
1answer
76 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 ...
2
votes
1answer
159 views

Trying to create a simple binomial tree in beamer

Following the example in Unknown error using tikz matrix of nodes in beamer I removed the errors I got but the tree is still not produced correctly. I am trying to reproduce in beamer what I saw in ...
2
votes
1answer
53 views

Tikz picture larger then page

I have a graph, containing a few nodes, but because of the size of it dose it extend beond the page. How can i set it to automatic scale so it will fit the page? Also what can i do to center it on the ...
2
votes
1answer
129 views

TikZ tree beside table

I would like to place a TikZ tree beside a table. The document type is apa. So the tree has four branches and therefore I want to place a 4 x 6 table to the left of the tree. The height of the ...
2
votes
1answer
152 views

PGF automatic determined vertical distance between tree nodes / level

I am trying to draw a tree overview and got an example from http://www.texample.net. But I have a problem with the vertical distance between the nodes (levels). Is there a way how tikz can ...
2
votes
1answer
519 views

Tikz-Tree: Arrow-style depending on parent node

I have drawn a tree in tikz with different styles for nodes (this simplified example has nodes with style a or b). The arrows from nodes to childs are always the same and I would like to apply ...
2
votes
2answers
880 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": ...
2
votes
1answer
782 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 ...