Questions tagged [tikz-trees]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

Draw arrays tree with tikz

I am trying to draw different kinds of recursive calls where arrays are sorted/manipulated etc. So I need to draw trees where the nodes can contain a sequence of elements. Currently I am just drawing ...
user avatar
  • 103
2 votes
1 answer
74 views

Drawing subgroup lattice of G in Tikz

Since I am new to tikz I have made an attempt to draw the subgroup lattice in G, but struggling to make it work. what I have tried \begin{figure} \begin{tikzpicture}[node distance=2cm] \title{...
user avatar
1 vote
0 answers
35 views

Help with a tree-like design in overleaf

I want to design a similar tree to this without the allocation choices as I have other treatments. I tried to search maybe for game trees that could help, but nothing was similar enough, maybe except ...
user avatar
1 vote
1 answer
58 views

With Tikz Tree how can I make two nodes grow up while the rest grow down?

This is my first use of Tikz. I have a Tikz Tree using this code \documentclass{standalone} \usepackage{tikz-qtree} \begin{document} \tikzset{every tree node/.style={minimum width=2em,draw,circle}, ...
user avatar
  • 113
1 vote
2 answers
67 views

Draw a diagram with different shapes with TikZ

How one can draw a diagram like this in Latex: I already know how to draw transition states and things like this using \usetikzlibrary{automata, arrows.meta, positioning} but I don't know how to draw ...
user avatar
1 vote
1 answer
32 views

My tikzpicture won't work

I'm pretty new to LaTex and I'm currently trying to draw an image using the tikzpicture package. However, everytime I go to compile my document, it won't work and it times out! Could you guys give me ...
user avatar
1 vote
1 answer
33 views

Drawing dashed edges in a binary tree and adding new edges between different nodes

I would like to add extra edges between nodes that aren't specifically related as child and parents in a binary tree and also to change the styling of the edges. Currently I have the following code: \...
user avatar
  • 265
0 votes
0 answers
32 views

How to add optional arguments to tikz command

I used the code for adding overlay animations on tikz-qtree diagrams, suggested by Ignasi (tex.SE answer here). With this code, I can create the following animations: \documentclass{beamer} \...
user avatar
  • 323
1 vote
2 answers
74 views

Tikz Forest - How to have a custom placement for a child node?

I would like to change the position of a specific child node in a diagram using the forest package. I would like to have a diagram organized as follows, with a child node located directly to the left/...
user avatar
  • 427
0 votes
1 answer
23 views

Opaque fill color on child in Tikz tree. How to keep text not opaque?

I am creating a hierachical tikz diagram with nodes and childs. I want to emphasize one path in particular and color this one with an opaque color. The problem is that the text then is also opaque. I ...
user avatar
  • 287
2 votes
1 answer
62 views

Sizes of rectangles in hierarchiecal tikz picture

I am trying to create a hierarchical diagram with multiple levels using Tikz' child function. However, it looks bad as the sizes of boxes differ (even after adjusting number of lines artificially). ...
user avatar
  • 287
0 votes
0 answers
14 views

Tikz WBS Diagram Node Overlapping

Using the example provided by TikZ for the WBS diagram I modified it to represent my own data. However, now the boxes are overlapping and I don't know why. Code: \usepackage{tikz} \usetikzlibrary{...
user avatar
1 vote
0 answers
27 views

Draw an arrow in a syntactic tree (tikzpicture) [duplicate]

How could I draw an arrow to the right of the dotted circle and write some text after it, e.g. -> /a/? \documentclass[a4paper,12pt]{beamer} \usepackage{tikz-qtree} \begin{document} \begin{...
user avatar
  • 33
2 votes
1 answer
39 views

Draw a circle in a syntactic tree (tikzpicture)

How could I draw a circle that contains both phi and T? \begin{tikzpicture}[scale=0.6] \tikzset{sibling distance=5em} \node (top) {} child[blue] {node {$\phi$}} child [blue] {node {} child [blue]{...
user avatar
  • 33
3 votes
1 answer
118 views

How to make a vertical organizational chart with Tikz?

I'm trying to create a vertical organizational chart with Tikz and the trees library. However, the lines connecting the different elements between them are not displayed as I would like. Indeed, I ...
user avatar
  • 427
1 vote
1 answer
39 views

How to add text above the lines nodes in LaTeX

I have following code and I try to add text above the edges, but don't how to do it \begin{tikzpicture}[every tree node/.style={draw,circle},sibling distance=30pt, level distance=50pt] \tikzset{edge ...
user avatar
0 votes
1 answer
51 views

Tikz: how to set exact position of node

I have made following tikz picture: \begin{figure}[h] \centering \begin{center} \begin{tikzpicture}[->, >=stealth', auto, semithick, node distance=3cm] \tikzstyle{every state}=[fill=...
user avatar
0 votes
0 answers
30 views

Color of tikz node is not working

I have the following graph, I aim to have the labels in black color to be orange color. In Overleaf, it's completely normal and the texts are in orange, but when I insert the very same code it shows ...
user avatar
3 votes
1 answer
81 views

Forest latex how to go to next line in node child

I am just experiencing with forest, and I'd like to have a responsive child, and not to be in one line as shown in the figure below: I'd like to split the text of all child of 1 level. I already ...
user avatar
2 votes
2 answers
92 views

Align two TikZ trees next to each other and respecting each others bounding boxes

I'm trying to align two TikZ nodes next to each other (second node is right of first node). I've achieved this, but the second node is floating inside the first nodes box, what I want to prevent. \...
user avatar
  • 747
2 votes
2 answers
73 views

Alignment of text nodes placed above paths and other issues in tikz qtree

I'm trying to set up a template for rendering decision trees using tikz-qtree. Here's what I ended up with : \documentclass[border = 0.2cm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes, ...
user avatar
  • 29
0 votes
0 answers
40 views

Creating taxonomy diagrams that could include long text

I am now writing a survey paper and I would like to create a taxonomy that organizes the previous works. I checked out the https://texample.net/tikz/examples/feature/trees/ but the provided templates ...
user avatar
  • 275
1 vote
1 answer
51 views

Help with tikzpicture for WBS (Work Breakdown structure)

i need your help to boost my master thesis WBS This is the code: \usepackage{tikz} \usetikzlibrary{arrows,shapes,positioning,shadows,trees} \tikzset{ basic/.style = {draw, text width=2cm, drop ...
user avatar
2 votes
1 answer
44 views

How can I bundle a person's info in a macro with genealogytree

I would like to wrap each person's name and other information in a macro, and then use that macro in a genealogytree. This is to reduce clutter in the tree itself so as to make it easier to read and ...
user avatar
  • 1,894
4 votes
1 answer
60 views

How do I make the graph edges in TikZ trees rounded? (preserving the clean syntax)

I am a beginner in TikZ and I tried to search for a solution to the best of my ability, but it's just too obscure of a topic to have a proper answer yet. To start off, this is my code: \begin{...
user avatar
  • 43
0 votes
1 answer
58 views

Drawing simple pointed annotations to number sections

I would like to draw the following diagram on latex without diving into many low-level tikz commands and details. Is there any specific name for those types of diagrams? This one looks fantastic ...
user avatar
  • 160
0 votes
1 answer
51 views

Horizontal Tree Diagram with nodes on left and right [duplicate]

I am trying to draw a tree horizontal tree diagram with one node's level, this tree has 13 nodes so I want to make use of the space by spanning nodes on both sides (left and right) instead of the ...
user avatar
  • 85
3 votes
2 answers
197 views

Problem with binary tree

I am drawing AVL trees using tikz. I have this code: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{center} \begin{tikzpicture} \node[circle,draw](z)...
user avatar
1 vote
0 answers
40 views

How to draw a graph for source code? [duplicate]

I have to draw a graph like the following or similar: I have already explored tikz and forest package and have not came anything like this. Can anyone please provide me any pointer or package name ...
user avatar
  • 355
4 votes
1 answer
36 views

Tikz colour only the one branch of tree

Here is my tree: \begin{figure}[H] \centering \begin{tikzpicture}[ grow=right, edge from parent/.style={draw, -latex}, level distance=20mm, ...
user avatar
  • 145
0 votes
1 answer
44 views

Exogenous Boxes in a Forest Tree

I want to include an arrow that connects PPP (no edge) to Pros. How could I do it? Is it possible to have an arrow between a box that does not descend from the main root and another box below? Could I ...
user avatar
0 votes
3 answers
87 views

Changing the length of the arrows in a tree

I want to shorten the arrows connecting each box in the following graph to fit within a page. Could you please help me? \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{shadows, ...
user avatar
0 votes
2 answers
69 views

Who knows how can I correctly draw the arrows?

I am drawing the scheme and use the Tikz library as following: \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} So, my code which has to draw the arrow between nodes is following: \...
user avatar
1 vote
1 answer
72 views

How to change tikz-qtree tree edge angle

I am looking to make a tree where the angle of the edge to children is the same at every level. I am aware that this might cause nodes to overlap. I want something that looks like this: But ...
user avatar
  • 121
1 vote
1 answer
46 views

Creating a Box which is not descendant or the first node

Is it possible to create a box at the same level as the Children or Grandchildren but not a descendant from the first node (oil wealth)? Think of an isolated box called 'ABC', which does not have an ...
user avatar
4 votes
1 answer
71 views

Using pgfmath in draw options

I would like to set draw options in tikz depending on some pgfmath calculations. More specifically, I would like to draw or not draw an edge depending on some value in an array. This works fine if ...
user avatar
0 votes
2 answers
71 views

Moving a box in a forest tree diagram to the middle [closed]

Could you help me place the grandchild and grand-grandchild in the middle of the diagram? How could I do it? I also notice that when I try to add a fourth grandchild or child, the graph does not fit ...
user avatar
0 votes
2 answers
150 views

Tikz tree does not show (in Springer Nature template)

The LaTeX code of the tree works in other templates, but when copied to the Springer Nature template, it shows errors. Here is my code: \RequirePackage{tikz} \documentclass[default,iicol]{...
user avatar
  • 87
0 votes
1 answer
99 views

Causal diagram with many grandchildren and great-grandchildren

Causal Diagram with a Common Grandchild How do I add a grand grandchild to the bottom? What about if I want to add 3 grand-grandchild and then one common grand-grand-grandchild as you did above? ...
user avatar
1 vote
1 answer
47 views

Tree-like Graph drawing with probabilities

As the title says, I'm having trouble drawing tree-like graph in LaTeX. Using TexSE I found the library “Tikz” and I tried to cook up something without success. A little part of the gigantic (sigh!) ...
user avatar
0 votes
1 answer
65 views

Tikz tree - text rotated 90 degrees on vertical lines

I've been trying to make a probability tree, and I think I've almost got it looking quite nice, however the labels on the vertical lines going downwards are sloped with the line, resulting in the text ...
user avatar
1 vote
2 answers
186 views

Causal Diagram with a Common Grandchild

I want to make the following diagram type, but with a vertical orientation (Common Grandchild Horizontal): Specifically, I want the 3 children from my diagram to end up having a common grandchild. So ...
user avatar
1 vote
2 answers
112 views

How to design a game in a tree?

Could anybody help me to design a game like the following? Do these ellipsoids that contain the vertices which belong to every player depict the information structures? I thought they were designed ...
user avatar
  • 143
1 vote
1 answer
96 views

Nested use of `\pgfmathparse` for graph drawing

I am using the trees tikzlibrary combined with some pgfmath commands to draw the ternary tree below: To each vertex u_i, a certain v_i is associated. So far, all of these v_i's are labelled with v_1, ...
user avatar
2 votes
1 answer
61 views

Align edge path for childrens in forest

I am trying to align the edge path of my taxonomy using forest. I've looked at a lot of examples and documentation, without finding it. My knowledge in tikz is still very limited. MWE Here is a MWE. ...
user avatar
  • 23
2 votes
1 answer
156 views

90 degree arrow in tikz workflow

I would be appreciated if someone set the arrows correctly. many thanks in advance. \documentclass{article} \usepackage{tikz, ulem} \usetikzlibrary{shapes,shadows,arrows,positioning} \begin{document} ...
user avatar
1 vote
3 answers
133 views

Constructing a tree in Latex using tikz

I'm trying to do this one, but I have no idea how to do the overlapping lines, or the second image. \begin{tikzpicture}[nodes={draw, circle}, -] \node {A} child {node {B}} child {node {C}} ...
user avatar
1 vote
1 answer
59 views

Draw edge from edge between parent and child node to new node using TikZ

I am trying to draw an edge which starts from the edge between nodes A and B in the picture below to a new node J as shown below. I am able to draw an edge from the edge between B and C to a new node ...
user avatar
0 votes
2 answers
168 views

Drawing Latex tree and make arrows in it and change the spaces

I am currently typing a lecture note. Today, I have to make a tree in Latex. Style/application: text boxes and \tiksstyle Title: Types of equations Types of textboxes: border is black border is ...
user avatar
1 vote
1 answer
150 views

Does anyone know how to create this binary tree with linked structure?

I already visit too many pages and I have not found any similar to draw or draw
user avatar

1
2 3 4 5
23