Stack Exchange Network

Stack Exchange network consists of 174 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}.

0
votes
0answers
7 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
52 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
67 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
212 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
80 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
98 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
33 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
153 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
49 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
69 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
23 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
29 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
40 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
31 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
111 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
45 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
30 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
110 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
1answer
49 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
189 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
32 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
47 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
94 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-...
0
votes
0answers
16 views

how to avoid overlap of child of decision tree [duplicate]

do you guys know how to avoid this? \tikzset{every tree node/.style={minimum width=4em,draw,circle}, blank/.style={draw=none}, edge from parent/.style= {draw,edge from parent path={(\...
1
vote
2answers
69 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
59 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
62 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
28 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
385 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
66 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
99 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
215 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
134 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
53 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
361 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 ...
4
votes
1answer
93 views

{genealogytree} How to model my Cousins

I am working with the "genealogytree" package for a long time, but im struggling again about modeling my Cousins. After i got Trouble Merging my multiple (completed) Family Trees (Link) with ~150 ...
5
votes
1answer
114 views

linking cousins in a binary tree

I constructed the horizontal links between some pairs of first, second and third cousins in this binary tree by hand. I'd like a tikz solution. The particular links can be hard coded. It would be nice ...
3
votes
3answers
171 views

Horizontal tree

Can anyone help me to get this graphics in LaTeX with tools like TikZ, pstricks etc.?
7
votes
2answers
135 views

Radial node arrangement in Forest

I have a number of 'decision tree' type of charts I am trying to produce dynamically (rather than in Illustrator or OmniGraffle). Each chart contains a few hundred nodes. Because of the number of ...
2
votes
1answer
82 views

Overlapping nodes in a red-black tree in TikZ [duplicate]

I took the example of a red-black tree from the TikZ examples page and adjusted it for my own needs, but I get overlapping nodes in the bottom level of the tree: \tikzset{ treenode/.style = {...
6
votes
3answers
106 views

TikZ tree with a line crossing the edges

Does somebody help me to draw the following tree in TikZ (with different colors at leaves)? I have no idea how to draw particularly the horizontal line crossing the edges. Thank you. Best My code is ...
8
votes
3answers
338 views

Create simple list of trees in TikZ

I generated this image in Inkscape because I don't know enough TikZ to write a description of it in that language, but given the amount of examples of TikZ trees available online, it strikes me as ...
1
vote
2answers
130 views

Drawing a block diagram in Latex

I am a new user to Latex. Recently I have decided to use latex for preparing my project instead of using MS word. Can any one please help me to draw this block diagram for my project. Thanks in ...
0
votes
1answer
47 views

paussing figure of presentation beamer

I want to display the graph in beamer so that at each click of the entry we see the next step but of course in a single graph \begin{figure}[!h] \begin{center} \begin{tikzpicture}[x=1.5cm,>=latex] ...
3
votes
1answer
67 views

From tree, I cannot make arrows from each node and give the color for each floor and give a layer to that

I want to draw a tree like the below. \documentclass[article] \usepackage{tikz} \usetikzlibrary{shapes,arrows,trees} \begin{document} \begin{tikzpicture}[level distance=2cm, level 1/.style={sibling ...
1
vote
0answers
35 views

How to draw this tree?? (maybe hard) [duplicate]

I want to draw the tree like this, but it's arrow not direct to just down, and I don't know how to draw the 'box' and tint the boxs and words.
6
votes
3answers
383 views

Lost in the Forest — Merging after Branching?

Thanks to Zarko and marmot for getting me going on "forest". The next question is how do I merge after branching? The attached Fig shows what I would like to do next. To be clear, I am trying to build ...
5
votes
3answers
613 views

Lost in the Forest?

I have been modifying the famous Forest example at: How to draw a hierarchical diagram in tikz? and learning a lot -- my OverLeaf project is at: https://www.overleaf.com/17438108ktrzgqwkpgtz#/...
4
votes
2answers
101 views

Game tree in tikz - edge from parent node to label branches

I am new to LaTeX and also the forum. For my master's thesis I need a game tree. I want to label the branches with probabilites. On this forum, I found that most people would use "edge from parent ...