Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-trees]

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

1
vote
2answers
66 views

Tikz - Decision tree

I'm a complete newbie to Tikz and I want to create a decision tree similar to the image below (which I did in Paint). Does anybody know how I can do this in Latex? My attempt still is far away from ...
1
vote
1answer
37 views

Lines connected the cells in organisation chart hard to be adjusted

I am working with preparation of proposal and currently deal with some issue in organisation chart in Latex. \usepackage[margin=3cm]{geometry} \usepackage[paper=portrait,pagesize]{typearea} \...
3
votes
1answer
74 views

Figure won't accept linewidth as argument

\documentclass[11pt,a4paper,bibtotoc,idxtotoc,headsepline,footsepline,footexclude,BCOR12mm,DIV13]{scrbook} \usepackage{subfigure} \usepackage{pgfplots} \usepackage{tikz-qtree} \usepackage{subcaption}...
0
votes
1answer
26 views

How to draw hierarchical overlapping models

I am trying to draw hierarchical models with overlapping nodes. I am able to use Use tikz to draw a hierarchical model (mult-level model from statistics) to make hierarchical models, but I am not able ...
2
votes
1answer
28 views

Depth first step by step construction on forest tree

Currently using forest to display Tableaux trees on beamer. For some cases i want a depth first step by step animation for the construction of the tree. The idea is to start with the root visible, ...
0
votes
0answers
46 views

How can I make the diagram similar to the attached in LaTeX? [duplicate]

I want to make a detailed timeline of life events in a similar fashion of the attached photo, can someone share code?
1
vote
2answers
60 views

tikzcd : how to extended triangle with more arrows?

I have the following code which produces the attached triangle picture. Does anyone know how to produce a directed edge from S_0, down and to the right, ending at D_0b? Also, join vertexes S_1 and ...
5
votes
2answers
109 views

TIKZ - changing one block into parallel multiple blocks

I have the following code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usepackage{textcomp} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, ...
8
votes
2answers
378 views

Alignment of various blocks in tikz

As you can see the left side of the 3 lower blocks are moved to the right while keeping their right sides aligned with the right side of the first block. I'm using the following code: \documentclass[...
4
votes
2answers
123 views

draw dynamic circle around node and edges

How do I add the red circle as shown in below image but with dashed line circle. I want it to follow the path structure. So far, this is my code: \begin{forest} [$root : s_0$ [$a: s_*$ [$d: s_*$] [$...
1
vote
1answer
28 views

arrow across two tree Tikz

How do i add the dash line between two tree as in image below, \begin{center} \begin{tabular}{p{4cm}p{4cm}} \tikzset{my dbl/.style={double,double distance=2pt}} \centering \begin{forest} for tree={...
2
votes
2answers
41 views

Double line edge using TikZ

How do I draw such tree like this where the some of the edges are double lines using TikZ or any other package? Here is the code: \Tree [.root [.a (i want here to have double edge line)b [.b c ] ] ...
4
votes
1answer
62 views

Work Breakdown with Tikz

Im trying to create a Work Breakdown structure with tikz. I would like to have Instead I have the following: Here's my code: \documentclass[tikz,border=10pt]{standalone}\usepackage{tikz} \...
7
votes
2answers
106 views

Decision tree nodes overlapping with Tikz

Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the ...
2
votes
1answer
32 views

Creating boxes around items in Tikz matrix

I have the following Tikz picture: \begin{center} \begin{tikzpicture}[>=stealth,sloped] \matrix (tree) [% matrix of nodes, minimum size=1cm, column ...
1
vote
1answer
37 views

Placing a symbol with Tikz

I would like to use the tree symbol from the tikzsymbols package. I am using the \Summertree[3.38]; function in the Tikz environement (the 3.38 is the scale making the heigh of the tree equal to 1). ...
4
votes
1answer
110 views

How to scale a TikZ image which is within a figure environment

I have the following code : \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,shadows,arrows} \tikzset{ treenode/.style = {shape=rectangle, rounded corners, ...
0
votes
0answers
56 views

Convert XML to Tikz

Is there already a tool, that can convert a XML file to a Tikz-tree? <node id="1" time="0"> <info1> <info1a="1"/> </info1> <info2> <info2a="0"/...
7
votes
3answers
258 views

Overlapping nodes in a decision tree

I have the following decision tree taken from this example with little modification. When I added two sub-nodes to the second right node, the inner left and inner right nodes have been overlapped. How ...
1
vote
2answers
38 views

Drawing node within node (Tikz)

I don't get any error for the compiling, but I don't get what I expected either, which was for my second node to show up with the same set of numbers as my first node. Can someone please let me know ...
-2
votes
2answers
88 views

Simple Tikz graph with colors [duplicate]

In my LATEX document, I would like to have the following graph: Is there a way I can put these colors next to the vertices without the vertex numbers disappear? I don't want to use online drawing ...
1
vote
1answer
22 views

Tree node alignment wrong

I am having a mental block and I hope someone can help. I am trying to draw the following tree and have two problems: The subtree that is rooted at the left-most "doc" should be rooted at node &...
1
vote
1answer
37 views

Remove circles & add colors to elements of Tree

Question: I am looking for the image added below. And i want to add different colors to every nodes. This what I have done so far: \documentclass{article} \usepackage{forest} \begin{document} ...
4
votes
0answers
24 views

Edge of prooftree takes on style of other edge if move by is used twice

I use the package prooftrees, which is based on the TikZ forest. As I have to draw proofs with many branches, I want some nodes to be lower, which is supported by the "move by" option. However, if I ...
3
votes
1answer
53 views

Tikz: right bended rectangle information set

I have this code \documentclass[10pt]{article} \begin{document} \tikzset{ solid node/.style={circle,draw,inner sep=1.5,fill=black}, hollow node/.style={circle,draw,inner sep=1.5} } \begin{...
3
votes
2answers
60 views

I need help with tikz tree node and label, offsets and inclination

I need to draw something like this: My problem are the black dots position i.e. nodes S and M and the labels position, also the number labels does not look good too. The X node is beside Coke node ...
2
votes
2answers
46 views

Create multiple path style from parent to children in a TikZtree

I now how to create a diagram like this: After that, I succeed in creating the path from the root to its children so it looks like this: Now, I'm trying to make it look like this: I created this ...
1
vote
1answer
22 views

Compiling problem, connecting nodes thru edges is not working

I am having an issue when trying to connect the edges of some nodes (I am doing this on overleaf). If I only choose one of the nodes at the top and connect the edges with the nodes I intend to use on ...
0
votes
1answer
56 views

Filetree with pagebreak works but just with one Filetree

I found a latex code (file tree with page break, the owner/creator of this code (pagebreak+filetree) is Sašo Živanović). I want to use this code for a documentation. I want to have several different ...
2
votes
1answer
25 views

Latex tikzpicture add labels to hierarchy branches

I have a hierarchy: \begin{figure}[!h] \begin{center} \resizebox{\textwidth}{!}{% \begin{tikzpicture}[level 1/.style={sibling distance=7cm}, level 2/.style={sibling distance=2cm}, level 3/.style={...
1
vote
1answer
61 views

Creating tree of trees in TikZ

I would like to create a tree in TikZ whose nodes are trees themselves. I have the following piece of code: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \tikzset{% ...
4
votes
3answers
245 views

TikZtree with asymmetric siblings

Is there a way to define a (binary) tree in TikZ in which the slopes of the two lines of the siblings are different. I want to generate a tree with the following appearance without positioning each ...
2
votes
1answer
34 views

Create separate double arrows as edge of a tree

I'd like to create a tree with edges made from two separate arrows as shown in picture: But I don't know how to change the edge to 'two separate arrows for each edge' Currently, I could only do the ...
3
votes
2answers
121 views

forest tree nodes

I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0 nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). ...
2
votes
1answer
75 views

Making tree structure using tikz

I want to make a tree structure by tikz. I am not a professional latex user and I am just trying to combine examples to make it work but first I would like that the edges have direction and then T 3 ...
1
vote
2answers
47 views

Tikz - Vertical Position Unchanged

I would like to have the graph \begin{itemize} \item $ \tikz { \node (a) at (-0.3,-2) [] {U}; \node (b) at (1,-2) [] {V}; \node (c) at (2,-2) [] {W}; \draw (a) edge[left,->] node[above] {$a_1$} ...
3
votes
1answer
83 views

trees with straight spines, and not too much vertical space?

I want to be able to typeset syntactic trees in a way that will achieve the following: straight spine when there is no label on the nonterminal node obtuse angle at each (binary) branch (so the tree ...
3
votes
1answer
57 views

How do I get these specific pathlines to nodes?

I have four nodes, one parent and three children. I am trying to link with these specific arrow paths: I have only just started working with the tikz package and my code so far looks like: \...
2
votes
1answer
72 views

Making figures in Latex

Im trying to get help making the following figure in latex: I know I have to use the tickz package. My document is as follows: \documentclass{article} \usepackage[utf8]{inputenc} \title{Decision ...
4
votes
2answers
525 views

Drawing family tree with `genealogytree`

I'm trying to create a version of the image below using the genealogytree package: I've got most of the way there except for the fact that the "brother" and one of the "cousin" boxes overlap: Here's ...
3
votes
1answer
177 views

How to make such flow diagram in TikZ?

I am new to Latex. Can anyone help me to draw the diagram in the attached picture in TikZ? I am sorry for not adding a wml package but I tried TikZ package but I am not able to deal with it. Here ...
2
votes
1answer
101 views

Is it possible to replicate this exact jpg image?

My question is about creating this exact tree in latex. i am trying several methods, but with no results.. my code is as below \documentclass[a4paper,12pt,twosided]{book} \usepackage[utf8]{...
3
votes
2answers
39 views

How do I make the nodes look in the tree look more evenly spread out and balance the edge length?

How do I make the edges in the tree have same length and have some good symmetry? It looks kinda ugly. It needs to look more symmetric. Is there a simple way to achieve this goal? \begin{figure}[h] ...
2
votes
1answer
178 views

Tree with two roots

I want to put the root certs, under ca root, (but not in the same tree). Here is my mwe \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \setlength{\parindent}{0pt} \...
2
votes
1answer
57 views

TikZ: flipping shape without moving anchors

When drawing game trees in TikZ, I use upwards-pointing triangle to denote the maximizing player 1 and downwards-pointing triangle for the minimizing player 2. However, my current solution doesnt make ...
6
votes
2answers
86 views

Aligning two diagrams in tikz environment

I have created to diagrams separately using TikZ package and now I want to make them left-right shown in one figure with a caption. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
1answer
137 views

changing `sibling distance` and `level distance` in the middle

I have the following decision tree I am trying to fit in one page. The output looks like the following. The MWE follows. Note that as the tree grows to the fourth bottom node doses given it has 4 ...
4
votes
1answer
36 views

How to display the tree-node one by one in Beamer with Tikz?

It's the demo code and the slide: \documentclass[11pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usetheme{default} %\usepackage{listings} \usepackage{tikz} \begin{document} \...
1
vote
1answer
79 views

Change the color of a tikz tree to blue

\begin{center} \begin{tikzpicture}[ level 1/.style={sibling distance=40mm}, edge from parent/.style={->,draw}, >=latex] \node[root] {Compresseur} child {node[level 2] (c2) {Compresseur ...
3
votes
1answer
60 views

How do I draw a bar under a node in tikz?

I have the following tikz template (in the file template.tex), where I define a tikzpicture \def\mysearchtree{ \begin{tikzpicture}[-, >=stealth', level/.style={sibling distance = 4cm/##1, level ...