Skip to main content

Questions tagged [trees]

{trees} is for questions about drawing or constructing tree {diagrams} (for example, family trees).

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

Ternary inferences in bussproofs or another prooftree package?

I'm wondering if you can do ternary inferences in bussproofs? If not, are there any other proof tree packages where you can do ternary inferences? It might be that I have to start drawing proof trees ...
JoD17's user avatar
  • 1
2 votes
1 answer
47 views

How to make tikz trees with children that grow down then right?

by default tikz grows trees in a centered manner, such that children grow as: o / \ o o / \ / \ o o o o How can I grow the trees such that they grow down, then right? Such that:...
Reginald's user avatar
1 vote
1 answer
42 views

Connecting two trees with a line, with tikz

I have two trees one next to the other. Some of the nodes should be connected. The code for connection nodes is breaking compilation, and I don't get any lines connecting the nodes between the trees. \...
mm6643's user avatar
  • 25
-1 votes
1 answer
47 views

Black dots as nodes in a tree

I want to draw a tree like this one and the nodes should be black dots \begin{forest} [[[][]][[][]]] \end{forest} How can I do that?
VD3's user avatar
  • 69
2 votes
2 answers
47 views

forest - Centering root node tree using folder for an organigram (organisational chart)

This is my last resort trying to understand the best way to center the root node on an organigram I made. The problem is caused - I think - by the use of folder that is required for this. Without the ...
Stephen Whitmarsh's user avatar
3 votes
0 answers
49 views

What causes calign=fixed edge angles to behave inconsistently when grow is not equal to 270?

I would like to understand what causes the following behaviour in forest. MWE [Note that most of the code isn't code necessary to reproduce the problem but rather annotations I've added in an attempt ...
cfr's user avatar
  • 207k
2 votes
1 answer
59 views

How to adjust parent anchors so that they don't touch

I want to make my tree look like the default tree in the forest documentation, like below: As you can see, there is some spacing between the edges, and their endpoints are not connected to each other. ...
l0uis's user avatar
  • 23
1 vote
1 answer
49 views

Empty nodes with vertical edges in forest?

I have a tree preamble that generates trees with fixed angles, empty nodes, and centered middle nodes in ternary branching environments. I'd like to modify it to always give empty nodes vertical edges,...
argo's user avatar
  • 63
1 vote
1 answer
41 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
5 votes
2 answers
191 views

forest: Even horizontal distribution of all nodes on the same level

In the following tree, some nodes have multiple parents (which technically violates the tree definition). Therefore, to create the tree in the forest package, I manually added the edges from children ...
Zhorrid's user avatar
  • 101
5 votes
3 answers
918 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
2 votes
2 answers
88 views

Plotting tree diagrams

I am trying to learn to plot tree diagrams. Particulary I am interested in the type of diagrams I drew. Here is the code I made so far: \documentclass{article} \usepackage{tikz} \usepackage[...
Den's user avatar
  • 37
2 votes
2 answers
69 views

Adding additional directed arcs in a graph (tikz picture)

I need have all rectangles representing the nodes to be of the same size or at least the same size at each level. have additional directed arcs: in particular, I need a directed arc from (1,3) to (1,...
Vika's user avatar
  • 457
3 votes
1 answer
104 views

Latex Forest Package Reduce the length of lines betwen nodes?

By using Forest package i am try to create red-black tree. In some point in my presentation i need to shorten the lines between the nodes which are red, but the parents are black. \documentclass{...
İbrahim Uğur ABA's user avatar
-3 votes
1 answer
81 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
2 votes
1 answer
104 views

degryuter template : forest trees and langsci-avm matrixes do not display

I am having some issues with the degruyter latex template for articles. Everything works, except for syntactic trees and lfg AVMs. I am compiling with xelatex and I am using the forest and langsci-avm ...
Silué Lacina's user avatar
3 votes
1 answer
108 views

Format particular terminal nodes and remove lines between them and their parents using forest

When using the forest package to draw linguistic syntax trees, how can one prevent lines being drawn between particular terminal nodes and their parents, while still maintaining them as separate "...
Kyle F. Hartzenberg's user avatar
6 votes
3 answers
428 views

How to fix this TikZ picture making arrows depart from the center of their table cells

I'm trying to represent in LaTeX a binary tree implementing a map data structure. Someone told me TikZ was the best tool for that, but I'm failing to achieve my goal. I find TikZ... overhelming? After ...
Federico Prat's user avatar
3 votes
2 answers
247 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
617 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
1 answer
61 views

complex tree/forest scenario-tree [closed]

I have tried to play around with different tree-structures and looked through some threads here but i cant even get close to what i want: The difficulties: how to draw the "generator" term....
karl henriksson's user avatar
2 votes
1 answer
159 views

Tree in slide with pause for each node

I have a slide with some text and I want to add a tree under them. something like the gif below. The pause for each node is really not important but if possible, it will be much better. and is there ...
Erfan Riahi's user avatar
3 votes
1 answer
134 views

shaped node in tree

I want to create this tree that each node have its own shape. for example each nodes be circle and leaves be square. this code perfectly work but I want to use tree in my code. \begin{tikzpicture} ...
Erfan Riahi's user avatar
1 vote
2 answers
112 views

Tree with multiline text in node and "X" on some text

I am looking to replicate in TeX this tree diagram I made in PowerPoint. What makes it harder than you basic tree is the multiline labels at terminal nodes, the Xs on some terminal node labels and the ...
Marti's user avatar
  • 45
2 votes
1 answer
289 views

LaTeX istgame draw game tree with continuum of branches and discrete moves

I want to draw the following game tree in LaTeX and hopefully istgame as that is what I am using for other drawings. I have no problems drawing the sectors using istgame such as the top two circles (I ...
yxz's user avatar
  • 23
1 vote
1 answer
90 views

How do I insert blank leaves on a probability tree diagram using TikZ?

I have the below code that generates a basic probability tree. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ grow=right, level distance=3cm, level 1/.style = {...
DiamondPenguin's user avatar
1 vote
0 answers
93 views

Tikz tree family tree spacing and lines

I'm stuck on the problem of making a family tree which has parents linked by a line with children centered underneath, with some spouses having their parentage also indicated. I've tried two methods, ...
alice19's user avatar
  • 746
0 votes
1 answer
43 views

Draw tree of coloured rectangled fixed-length bit-strings

I have previously asked in this forum on drawing a chain of coloured bit-strings rectangles. I ended up using this code: \begin{tikzpicture}[ node distance = 1 pt, start chain = going right, mpnv/....
user1868607's user avatar
5 votes
1 answer
84 views

Forest: increasing horizontal separation by level bottom-up

I used qtree for a while and although there's not much that it can do that forest can't, there is one effect that qtree has by default that I quite like, which is that it automatically increases the ...
argo's user avatar
  • 63
3 votes
1 answer
132 views

Forest: insert folder subtrees into arbitrary nodes

I'm trying to build a tree that grows horizontally and which gives the possibility to introduce lists with a "folder" aspect in such a way as to specify a series of topics related to that ...
Datboi's user avatar
  • 85
7 votes
1 answer
158 views

Branches above each other in a phylogenetic tree

I have created the following phylogenetic tree of the Semitic languages: With the following code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{forest} \begin{...
Carlo Meloni's user avatar
2 votes
1 answer
63 views

Forest package - Drop nodes to lowest possible layer

I have the following forest code: \documentclass{article} \usepackage[linguistics]{forest} \begin{document} \begin{forest} for tree={ if n children=0{ font=\scshape, ...
Mew's user avatar
  • 843
5 votes
3 answers
237 views

Drawing partial trees of different sizes side-by-side

There exists an elaborate thread about how to draw rooted trees in LaTeX, e.g. for use in natural language applications. There exist packages other than TikZ to do this, like qtree or forest. However, ...
Mew's user avatar
  • 843
0 votes
1 answer
140 views

Permutation tree diagram

I need to draw a diagram that looks something like this. I found that the qtree package wouldn't let me create trees without labels for the nodes, and with tikz it seems possible but manually spacing ...
Aric's user avatar
  • 101
0 votes
0 answers
359 views

How to draw the taxonomy tree diagram in latex using forest package? [duplicate]

I'm trying to draw the following taxonomy tree diagram. I'm somewhat familiar with latex but completely new to forest package. I have gone through the answers to this question. However there is no ...
nlproc's user avatar
  • 9
3 votes
1 answer
77 views

Height / Bottom alignement of nodes in forest environment

I have a problem with the configuration of the height of the nodes in the forest environment. As you can see, the middle child is not aligned at the bottom with the rest of the child nodes. This is ...
Squared2's user avatar
1 vote
1 answer
98 views

How to format (move and scale) only node label in forest decision tree

Since my real tree is too wide, I want to move and resize the node label -X_0+X_1>0 so that the red box at the end gets smaller because it dynamically adjusts its size to the nodes. The arrows and ...
vielfarbig's user avatar
1 vote
1 answer
65 views

How do I make this forest tree shorter without making it wider by adjusting the angles?

I'm having some trouble with this forest tree, my goal is to get it shorter without making it any wider, by adjusting the angles under CP and VP to be wider. When I try using the calign=fixed angles, ...
vmariani's user avatar
1 vote
0 answers
29 views

Same style for child as parent in tree

I am trying to create a tree in which the child nodes have the same appearance as their parent but I keep getting an unknown error when adding a child and attempting to use the same style: \...
Junglemath's user avatar
2 votes
1 answer
200 views

How do I move an entire forest tree to the left?

I'm looking for a way to shift this entire tree to the left, so it can fit on the page with the wider spacing I'm looking for. The white space on the left is there whenever I have the arrow drawn. \...
vmariani's user avatar
3 votes
1 answer
278 views

Drawing binary trees with LaTeX labels and distinct terminator

I created some code based on an answer here: Drawing binary trees with LaTeX labels. \documentclass[tikz,border=5]{standalone} \usetikzlibrary{graphs,graphdrawing,graphs.standard,arrows.meta} \...
Jim's user avatar
  • 165
2 votes
1 answer
49 views

Draw continuous line in tree

I have written a tree with Tikz. The code is below \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{trees} \makeatletter \date{} \author{} \makeatother \begin{document} \title{} \...
Alain Bertrand's user avatar
3 votes
1 answer
124 views

join 2 genealogy trees on 2 different points

The following LaTeX document contains two genealogy trees joined on Matilde Oltre. Now I would like to join Vittorio Moletti with Modesta Oltre (Matilde's sister) as a couple, having Rina Moletti and ...
Germano Massullo's user avatar
0 votes
1 answer
141 views

overlapping genealogy trees

I am trying to join two genealogy trees, but they are overlapping. \documentclass{article} \usepackage[paperwidth=500mm,paperheight=500mm]{geometry} \usepackage[all]{genealogytree} \begin{document} ...
Germano Massullo's user avatar
1 vote
1 answer
44 views

Forest: change depth of a sibling

\usepackage[linguistics]{forest} \begin{document} \begin{forest} [A[B[C]][D]] \end{forest} \end{document} Here A has two children: B and D. I would like to place D just right of C. How do I ...
Terrarium's user avatar
  • 518
0 votes
1 answer
99 views

How to plot a horizontal tree with edges having adjustable length and ending with nuts?

I want to plot trees like these: These trees appear in the theory of branching chains in modern probability. But I have no idea how to realize it via latex. Could anyone help on it? Here are my ...
Dreamer's user avatar
  • 119
0 votes
1 answer
178 views

Aligning heaps in Fibonacci heaps

I'm trying to align various heaps to make a Fibonnaci heap. I'm using the package tikz, and also using the instruction begin{scope} after begin{tikzpicture} to align various heaps. I managed to align ...
Pablo's user avatar
  • 77
1 vote
1 answer
143 views

How to change the color of a subtree in qtree?

I was wondering if there is a way to change the color of a subtree with qtree. I saw there is a post that you can do this in forest, but I don't know if there is a way to do it on qtree or tikz-qtree. ...
crealp's user avatar
  • 97
-1 votes
1 answer
66 views

Decorated trees using forest package

Using the package "forest", firstly i would like to draw the following tree (where terminal vertices could be either a dot or a letter), i could write a tree where all vertices are dots or ...
Jean-David Jcq's user avatar
1 vote
1 answer
127 views

Adding text to arrows in Tree

I am currently working on the following chart: What I am trying to do is to include 'Yes'and 'No' in their respective arrows rather than in its own box. This I what I have achieved so far: \...
user avatar

1
2 3 4 5
13