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
1answer
17 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
32 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
22 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
36 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
43 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
27 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
19 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
53 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
23 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
52 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
230 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
27 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
102 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
60 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
78 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
56 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
70 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
355 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
113 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
37 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
167 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
83 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
67 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
32 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
58 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
43 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 ...
1
vote
1answer
248 views

draw a 2 or 3period binomial tree

I want to draw a 2 or 3period binomial tree. I can't design as picture. The first model Which I have tried, code is given below. Where "Text" is not aligning as like picture. "\vspace" or "Itemize" ...
2
votes
2answers
62 views

Problem in formatting binary trees

I am trying to create a binary search tree in LaTeX. There are two nodes that overlap "blocking" each other. Does anyone have any experience with this and know how to fix it? I will show my code ...
2
votes
0answers
41 views

Skip generation in a tikz tree

\documentclass[tikz]{standalone} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture} [ grow cyclic, level 1/.style={level distance=32mm, sibling angle=60}, level 2/.style={...
5
votes
1answer
117 views

TikZ Qtree subcaptions

I'm using the TikZ Qtree package for making syntactic tree diagrams. Am wondering how to add subcaptions for individual node labels, such as shown in attached photo, as well as formating them (...
0
votes
2answers
81 views

Game tree with Forest - circle at node not joined to edges

Using the techniques demonstrated by @marmot (thank you!) at this question, I've produced the following game tree: MWE: \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amssymb} \...
3
votes
1answer
190 views

My string is too long for my node. I need more space

((I was supported from @Skillmon. He is the owner of this code.)) I have a forest tree with a page break. My string is too long for my node. The horizontal line must be longer. In the past i used ...
1
vote
1answer
34 views

Drawing a tree and two subtrees with Tikz.

The idea is to have to trees that are linked by an edge "a", it is then removed and you relabel the two subtrees. It does not have to be exactly like that. The subtrees can be different. What matters ...
1
vote
1answer
48 views

My if condition does not work. Any idea why?

I have just one question. My if condition does not work. I dont know why. Here is the if condition: \ifthenelse{\boolean{somevariable}}{split dir tree auto,}{} %IF ABFRAGE FUNKTIONIERT NICHT I set \...
3
votes
1answer
105 views

TikZ: path-style syntax upside-down tree for adpositional grammars

I would like to reproduce in TikZ the following adpositional path-like adpositional tree, that I am able to draw in full only by hand. See here: First MWE: my minimal working example (MWE) using tikz-...
1
vote
2answers
72 views

tikz trees vertical space and “hanging” branches

I'm trying to create a slide with beamer. Here it is: \documentclass[t]{beamer} % \usepackage{tikz} % \usetikzlibrary{trees} % \setbeamertemplate{navigation symbols}{} % \setbeamertemplate{footline}...
2
votes
0answers
72 views

How to get limited multidominance in a forest tree

I would like to have forest trees that allow a very limited kind of multidominance, as shown in the picture below: The basic idea is that the terminal node a is centred between and dominated by both ...
2
votes
0answers
19 views

`No shape named` error with a prefixed `pic` and a tree with a child [duplicate]

If I try to define a tree, with a child, inside a pic and later use this pic with a prefix, I get an error. \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure} \begin{...
4
votes
1answer
65 views

labeling the nodes in the tree diagram

I am trying to labeling the nodes in the below diagram such that I just define the red(as x) and blue(as y) and the child node are named according to their path (e.g $-x^{2}y$ is two times moving to ...
0
votes
0answers
36 views

How to draw tree scheme? [duplicate]

I am writing the report for my lesson with the details like that. I would like to draw by tikz or anything else? I really have no idea. I've taken a look but I didn't find out anything that could ...
6
votes
2answers
456 views

Tree edges different coloring

I want to make tree with each node has valency of three. I got the below code online somewhere. The first level has valency three however second and third level has valency four, and I also want to ...
3
votes
1answer
69 views

Graph: Create root with more than 5 children and different sizes and colours

I have the following dataset: dataset = ["A": 5, "B": 10, "C": 25: "D" 3, ..., "Z": 36] I am trying to create a graph that looks like a mind map in which each data ("A", ..., "Z") in dataset is a ...
4
votes
1answer
121 views

Drawing a TikZ Graph

I'd like to try and include this graph in a Beamer presented, and would like to draw it using TikZ instead of including a PDF (for a number of reasons). I honestly have no idea how to get started and ...
7
votes
3answers
225 views

Dyck paths behaving as nodes

I am sort of having two main issues with Dyck paths. I'm trying to get to the image on the left (which I edited it with Paint), and what I currently have is the image on the right. I believe that what ...
0
votes
1answer
155 views

Using native Tikz tree or forest?

I just have a very philosophical(?) question. At this time i am well in drawing pictures with tikz. Now i have to make some tree-like diagramms and ask myself which "package" i should use for this? In ...
2
votes
1answer
55 views

Adding a line in a diagram using tikzpicture

Currently my diagram looks like this: Using the following code: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{center} \begin{tikzpicture}[level 1/....
8
votes
1answer
630 views

How to draw language family tree in LaTeX

I have been attempting to draw this language family tree into LaTeX: I have tried using the tikz package as well as the forest package, but to no avail. I do not need the colours in the tree, nor do ...