Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [tikz-trees]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

Add Equations to TikZ figure

I would like to: (A) rotate the tikz figure (B) add equations below the figure (rotated) How could I do that? I drew a sketch: CODE: \documentclass{article} \usepackage{forest} \usetikzlibrary{...
s28's user avatar
  • 13
0 votes
1 answer
31 views

TikZ Graph Too Many Lines

I created a tikz graph. There are still some unwanted lines. I get error messages when I delete them. Any recommendations? \documentclass[tikz,border=10pt]{standalone} \usepackage{forest} \...
s28's user avatar
  • 13
0 votes
0 answers
33 views

Recommendations: Present Equations using Tikz

I have 10 rather long equations and I would like to present them visually in a structured way. I thought of a taxonomy tree. Would you recommend doing something like that? Do you have done something ...
s28's user avatar
  • 13
1 vote
2 answers
78 views

Separate nodes in tikz latex

I want to draw this tree in Latex. It is a graph of a structural proof for some code. I have tried \node [draw, circle] {1} child { node [draw, circle] {2} child{ node [draw,circle]...
baristocrona's user avatar
1 vote
1 answer
33 views

I'm trying to bulid a game tree with TikZ, but the bottom node will not work. Any suggestions?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[scale=1, level distance=2.5cm, level 1/.style={sibling distance=4.5cm}, level 2/.style={...
MadeleineD's user avatar
1 vote
1 answer
37 views

Tikz-qtree lines to the right direction are not straight with multiline texts

I have this following tex document: \documentclass[10pt]{article} \ExpandArgs{c}\newcommand{new@fontshape}{anything} \usepackage{linguex} \usepackage[russian,indonesian]{babel} \usepackage[none]{...
pindakazen's user avatar
4 votes
1 answer
230 views

Decision of tree

I trying to reproduce this tree of decision and I'm having some problems. That's what I tried \documentclass{article} \usepackage{tikz,forest} \usetikzlibrary{arrows.meta} \tikzset{% common styles of ...
Dots's user avatar
  • 409
1 vote
1 answer
36 views

Draw a One-period binomial asset pricing model with continuous dividend

I've copied the code below to draw the tree above: \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[column sep=3cm, row sep=0mm, arrows={-Stealth}, cells={nodes={fill, ...
TEX-amateur's user avatar
-1 votes
1 answer
78 views

Creating a Disjoint Sets Data Structure Diagram in TikZ

I'm currently studying the CLRS textbook on algorithms and I've come across a figure representing disjoint sets as a collection of trees, where each tree represents a set. I'm looking to recreate a ...
neo's user avatar
  • 13
0 votes
3 answers
54 views

Forrest tree with nodes having text and images

Found the answers I needed here....what a prompt, helpful community! Thank you all. I am trying to recreate this plot from MS Word How does one create a node with wrapped text and an image below it? ...
Bhuvan's user avatar
  • 1
5 votes
3 answers
915 views

recreate a figure with TikZ from an entrance exam

Could anyone help me recreate this image on tikz? I don't really know where to start
Willian's user avatar
  • 59
1 vote
2 answers
68 views

Equal distances between nodes of a tree in each level

I have a tree but want that the distances between rectangles at each level to be equal (equal spaces between rectangles at each level). The idea for the tree was taken here: Adding additional directed ...
Vika's user avatar
  • 405
3 votes
3 answers
139 views

I am drawing a cycle in TikZ, need to add integer labels on the outside of each node

Here is what I have so far: \begin{tikzpicture} \tikzstyle{every node}=[draw, circle, fill=black, inner sep=0pt, minimum size=5pt] \tikzstyle{every path}=[line width=.75 pt] \foreach \s in {1,...,5} {...
PeakyBlaze7788's user avatar
3 votes
2 answers
125 views

Tree Diagram Spacing Tikz

I am having trouble fixing the spacing of my tree. Currently, I have the following code and result: \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees, arrows} \begin{document} \...
MarV's user avatar
  • 33
0 votes
2 answers
88 views

How to draw a network of nodes in latex like below?

this is the network of fifteen nodes. I don't know how to draw using latex. I tried the following code for five nodes. \begin{tikzpicture} \graph[counterclockwise=6, nodes, nodes={circle,draw, ...
Rakesh Kumar's user avatar
4 votes
4 answers
359 views

Background image behind a LaTeX/TikZ forest node

I use the forest package to draw ancestry trees. I would like to add papyrus scroll-like backgrounds to the nodes. This is the basic example: \documentclass[]{standalone} \usepackage{pgfplots} \...
lak20's user avatar
  • 85
1 vote
2 answers
53 views

How to break line in a text node in a tikz forest diagram

I need to break line in a node text in a tikz forest diagram. I tried to add \ or \newline in the node text, but that did not work. Here is the sample code: \documentclass{article} \usepackage{tikz} \...
None's user avatar
  • 319
2 votes
1 answer
90 views

Drawing a basketball using Latex

Could you help me to draw a basketball using latex. I tried this version but it doesn't seem to be working. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \shad[...
Mario Topez's user avatar
2 votes
2 answers
48 views

Level distance from edges in cyclic tree

\documentclass[png,tikz,border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{trees,decorations,shadows} % style definitions \tikzset{level 1/.style={sibling angle=90,level distance=25mm}} \...
Gqqnbig's user avatar
  • 564
0 votes
1 answer
69 views

Problem with line breaking using \\ in tikz

Here is my code, which was compiled by pdflatex. \documentclass[11pt]{article} \usepackage[a5paper,margin=5pt]{geometry} \usepackage{amsmath,amssymb} \usepackage{tikz-qtree} \begin{document} \begin{...
youthdoo's user avatar
  • 871
2 votes
3 answers
134 views

TikZ tree alignment with multiline node labels

I'm trying to create a tree structure in tikZ, it looks not too far away from what I want, but a few problems are there: The labels are multiline, which seems to somewhat break the alignment of the ...
BMBM's user avatar
  • 135
1 vote
1 answer
41 views

Limit pattern inside tikz node

I want to create a tree in tikz, where I highlight certain nodes using a pattern. However, I want to limit the pattern inside the rectangles such that the text is visible on a white background. Here ...
John Doe's user avatar
3 votes
2 answers
88 views

Add arcs to tree drawn with tikz-qtree

I want to add the green arcs, labels and boxes to this tree. (The labels will be black and red, as in the not quite minimal MWE). I don't need a programmatic solution. I can finish the job if I see ...
Ethan Bolker's user avatar
  • 9,373
2 votes
3 answers
385 views

I want help to finish the tree diagram

Question: I have been trying to complete the tree diagram which I started (see the figure). Please help. This is what I have \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{...
SandyM's user avatar
  • 2,825
10 votes
2 answers
212 views

How to make branches in a game tree parallel?

I created the following game tree: Here is my code: \documentclass[leqno, oneside, 12pt]{book} \usepackage{amsmath} \usepackage{istgame} \usepackage{caption} \usepackage{makecell} \begin{document} \...
Beerus's user avatar
  • 201
-3 votes
1 answer
78 views

Probability tree with multiple sources that highlights a specific path [closed]

I am trying to recreate a graphic using latex. I want to create a tree-like shape that also includes the events with 0 probability. It should look similar to I tried to create this using the tikz ...
SebastianP's user avatar
0 votes
1 answer
99 views

How to make a figure like this in LaTeX using tikz? [closed]

I would like to make this figure in LaTeX using tikz (the figure is from a book): I really have no idea where to start and how to do it. Thank you for your help.
User303131's user avatar
1 vote
1 answer
42 views

Increase in Node Size When Line Width Differs in Tree

In an attempt to produce the below image I have put the following code together: \documentclass[11pt]{book} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{trees,graphs,calc,arrows.meta,...
Arian's user avatar
  • 149
3 votes
2 answers
244 views

How to center a TikZ tree in a Beamer slide?

I created a tikz tree inside a Beamer slide, using the following code: \documentclass[aspectratio=54, 10pt]{beamer} \usetheme[progressbar=frametitle]{metropolis} \setbeamertemplate{frame numbering}[...
Saïd Maanan's user avatar
6 votes
3 answers
602 views

B-Tree in TikZ without root node

I'm trying to reproduce the following tree structure with Tikz: Following several questions here I got the following snippet, which almost does the job, except for the fact that I am not able to ...
VoB's user avatar
  • 163
0 votes
2 answers
124 views

Romanian vowel sound changes

I am new to LaTeX. This question is tree-related. Are there any TikZ-tree-related questions that can be combined to reproduce this following image? Original image is from Wikipedia. If it is poorly ...
A.D.H.D's user avatar
2 votes
2 answers
73 views

Recreating a Tree With Augmented Difficulty of Adding a Node Halfway Between Two Already Existing Nodes

This is a follow-up question to this, which cfr kindly provided an answer to, and by cfr's recommendation which was produced in response to a comment of mine, I propose it in the format of a new ...
Arian's user avatar
  • 149
7 votes
1 answer
127 views

Recreating a Tree With the Complication of Placing the Nodes On One Line

I am quite new to TikZ and to be honest to this site (I am writing this question with the aid of a more experienced friend), and I am trying to recreate the ensuing photo What I have put together so ...
Arian's user avatar
  • 149
1 vote
1 answer
21 views

position label tree edges using macro

In this tree I want the edge labels horizontally aligned, probably nearer the edges. The tree may not be binary. I would also like to diminish clutter and save typing by putting \edge node[auto=...
Ethan Bolker's user avatar
  • 9,373
3 votes
1 answer
73 views

tikz trees: how to move a child node of a tree to the top level?

My latex code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} \begin{document} \begin{figure} \centering \begin{tikzpicture} % draw a ...
Tianjian Qin's user avatar
2 votes
2 answers
63 views

Tikzpicture: centering transitions' label

How could I center the transitions' labels please? \documentclass[12pt]{book} \usepackage[french]{babel} \usepackage{tikz} \usepackage{graphicx} \usetikzlibrary{arrows.meta,arrows,chains,automata,...
cProg's user avatar
  • 591
0 votes
2 answers
136 views

Probability Tree [closed]

How can I make a probability tree that looks like this I've checked this LaTeX probability tree but I can't get it to work with just one child
John Smith's user avatar
2 votes
3 answers
149 views

Adding key, adjusting node shape and magnifying a tikz diagram

I wish to reproduce the diagram shown in the picture below: Below is my MWE which I developed by imitating the solution provided at Modifying a decision tree terminal nodes using `tikz`. \...
itc's user avatar
  • 657
5 votes
3 answers
273 views

I want to have exactly 12.5 mm between my figures/tikz figures. How do I do this?

For a project I am supposed to draw different graphs with edges and vertices. One of the points of the project is that the distance between the graphs should exactly be 12.5 mm, but I can't find a way ...
Lisastronomy's user avatar
0 votes
1 answer
74 views

Using TikZ to build a genealogy tree, I can not increase the space between node lines between the father and the second wife

I gave up on @thomas-f-sturm's genealogytree library because it does not support the mesh structures. I migrated to pure TikZ and PGF. I am trying to build a genealogy with paternal and maternal sides,...
Oo'-'s user avatar
  • 269
1 vote
1 answer
73 views

Latex tree diagrams with common children

I have the following tree diagram (packages specified in the heading). \usepackage{tikz} \usetikzlibrary{trees} \usepackage{tikz-cd} % Set the overall layout of the tree \tikzstyle{level 1}=[level ...
Martingalo's user avatar
1 vote
1 answer
61 views

Creating an Anagram Tree Using Multiple Tree Structures in TikZ

I have the following tikz code that draws four different trees. \begin{tikzpicture}[level distance=1.5cm, level 1/.style={sibling distance=3cm}, level 2/.style={sibling distance=1.5cm}] \node {R}...
Mark's user avatar
  • 755
1 vote
1 answer
100 views

MindMap with TikzTree with seven levels

I want to recreate a MindMap of 860 Statistical Tests (hypothesis testing) with LaTeX. So far i have found the following script: \documentclass[border=10pt,multi,tikz]{standalone} \usetikzlibrary{...
Vincent ISOZ's user avatar
0 votes
1 answer
127 views

Diagrams for partial-ordered sets

The diagram below shows the relations between the subsets of a set with three elements {x,y,z}. How can one in Tikz draw such diagrams?
Quantum Fields's user avatar
1 vote
1 answer
135 views

How can I make a diagram for a DWT in TikZ?

I would like to make a similar diagram like next figure using package tikz-cd in overleaf. I can make this: \documentclass[a4paper, 12pt, twoside]{article} % ------------ Packages ------------ % \...
Siqueira's user avatar
1 vote
1 answer
58 views

TikZ: How to place pictures / shapes at a child-node in a tree

Is it possible to place pictures at a child-node in a tree, say at "Y"? For example a rectangle or even a more complex figure from several shapes (in the original I need to draw a '...
cis's user avatar
  • 8,266
-2 votes
1 answer
123 views

Tikz: Crop the top of a tree. Snap the resuling bounding box to the tree

\documentclass{article} \usepackage{tikz} \begin{document} \tikzset{ actor/.style={ circle, draw, minimum size=10mm } } \begin{figure}[h] \centering \begin{tikzpicture}[...
user avatar
2 votes
1 answer
50 views

TikZ: avoid branch in tree

I want an optic like this, but without the crossed out branch. What do I have to do? \documentclass[border=10pt, tikz]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[sibling ...
cis's user avatar
  • 8,266
5 votes
2 answers
330 views

Multidominance tree with forest

I am curious as to whether a multidominance tree such as the one below may be drawn with \Forest: I have found evidence of this using qtree (Adding trees or terminal words to multi-dominance ...
Dr.B's user avatar
  • 51
2 votes
1 answer
88 views

Stacking multiple TikZ tree labels?

I have a question related to the labelling of TikZ circles within a forest tree. Is it possible to stack multiple labels below the circle so that they would appear under one another, like this? ...
ally69710's user avatar

1
2 3 4 5
25