Questions tagged [trees]

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

2
votes
0answers
293 views

{genealogytree} Multiple Family Trees (with Unions)

In the last few weeks, I've been working on the "genealogytree" package to draw my family trees. Although I have read the manual up and down, I am unfortunately not able to merge my family trees from ...
2
votes
2answers
61 views

Horizontal tree arrows not aligned properly

I have taken some code from multiple places and pasted them together in order to show the structure of a folder and its underlying folders. I got it working, however the last arrow (from month to day) ...
4
votes
3answers
678 views

TikZ - Game theory tree with continuum of moves (depicted as a gray triangle)

In extensive form games (game trees), we usually draw a (gray) triangle in the background of the player's branch (strategy) to denote that the player has a continuum of actions available at that node. ...
0
votes
0answers
111 views

File name 'istgame.sty' not found

I have been trying to use your package istgame, but i keep on receiving the following error: LateX Error: File 'istgame.sty' not found. Would you know how to troubleshoot this? Thanks
1
vote
1answer
61 views

prooftrees.sty: How can I number individual expressions rather than whole lines?

Using prooftrees.sty (https://ctan.org/pkg/prooftrees), is there an option or hack to obtain a line numbering scheme different from the default one? I would like to format truth trees that match the ...
2
votes
3answers
200 views

Equations using Tree Diagrams

I would like to write an equation over binary trees. Here is the code I have so far: ` \[ \begin{array}{lcr} \sum(-1)^{p+qr} \begin{tikzpicture}[scale = 0.8] \node[circle] at (1,-1) {$\...
5
votes
1answer
120 views

Hide parts of tree with genealogytree

When dealing with a very large tree using genealogytree, I would like to isolate some parts; not just highlight, but isolate, meaning excluding everything else. The tree is already coded so I would ...
-1
votes
1answer
223 views

How to turn this tree image into a LaTeX tree diagram?

I am wondering if it is possible to turn this image into a LaTeX tree diagram? Not sure how to do it...thank you very much for your help in advanced!
2
votes
0answers
71 views

Reflection of genealogy trees

Is it possible to reflect around a vertical axis the structure of a genealogytree? Text should not be reflected. For example, in the tree below, the A column should be to the right, the "B's third" to ...
2
votes
2answers
282 views

How to make circles in qtree tikz (specifically root)

I am trying to make trees with tikz-qtree. I want every node that "splits" to be a black circle, specifically I want the root to be one. I don't find how am I able to do that. \documentclass[a4paper, ...
0
votes
1answer
179 views

Scaling a tree (forest package)

Hello, I am trying to figure out how to scale the tree on the left because it is a little bit disproportionate compared to the table. I am looking for a code that can solve it. Can anyone help me? ...
4
votes
1answer
182 views

Table right of horizontal forest

I'm trying to make a table just right of my forest corresponding to the last link in my forrest. My forest looks like this: \documentclass[12pt,a4paper,twoside]{report} \usepackage{forest} \begin{...
0
votes
1answer
171 views

Enlarge a tree (lyx and forest package)

I am using Lyx and the forest package to create a very complicated tree. I've just finished it and it's good but when I generate the pdf, the result is too small. I need a code to enlarge the tree (...
1
vote
2answers
1k views

Drawing a game tree on Tikz

I need to draw the following game tree on tikz. It's a bayesian game. Sorry for the pic, I made it on Paint. So basically there are 2 players G and T, N is the nature that gives a chance for each ...
0
votes
1answer
164 views

Positioning of child nodes (forest, beamer)

I already found this post on how to do the thing I want to achieve, but this uses tikz and I'm using the forest package. Is forest based on tikz? How can I do this with forest? My Problem is I have ...
1
vote
1answer
76 views

Search animation in tree (LaTeX Beamer, package forest)

Is it possible to animate a tree over multiple slides without writing the explicit code for each slide? This is what I want to achive, but with less code (basically I'm searching for the string "...
4
votes
1answer
224 views

forest: Draw a roof over multiple children in forest?

I often want to draw schematic trees like the following. These don't work with the current roof option in forest because I often need the roof to extend over multiple nodes. It looks like the ...
3
votes
2answers
491 views

Forest tree - how to draw nodes with double border?

I'm looking for something like this (finite automat). I want to draw a specific node as endnode, that means this node should have two circles as border. I'm using forest to draw my trees Currently I'...
0
votes
0answers
69 views

LaTeX beamer create Tries and PATRICIA Trees [duplicate]

Already checked this post to see how to draw a simple tree in LaTeX, however, I would like to generate Tries with LaTeX and since those kind of trees have the keys on their edges instead of in the ...
0
votes
3answers
246 views

how to make the up-down Arrows in latex [duplicate]

How to make the below arrows in latex The suggested duplicate is a vertical tree and I don't need that I just need a horizontal two arrows
1
vote
1answer
211 views

Add level and balance in search tree in TiKZ

I have the following AVL search tree: \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ > = stealth, % arrow head style ...
4
votes
2answers
357 views

Is there a way to automatically draw curved edges using tikz's algorithmic graph drawing?

I can easily draw automatically-laid out trees in tikz, but with straight edges between nodes. I'd like for edges to be automatically curved similar to this tree drawing software: https://mindnode.com....
1
vote
0answers
176 views

Decision tree with clusters of nodes [duplicate]

I'd like to draw the following tree on LaTeX: Basically it's a two-stage game with two players. Players play simultaneously on stage 1, then if they made the same decision on stage 1, stage 2 takes ...
2
votes
1answer
202 views

Converting a genealogy tree to forest

I had a problem with my genealogy tree (can be found here). Someone suggested to me in the comments to use forest package. I tried to convert it however I don't know if it is possible to apply the ...
2
votes
1answer
302 views

genealogytree increase leveling or make content more readable

I am using genealogytree for a different purpose than genealogy because it produces good looking trees. My problem is that when I have many nodes at the same level it becomes so small to read. I am ...
3
votes
2answers
589 views

How to align my tree using forest?

I am trying to make a tree using forest. It is within minipage environment. But the tree does not aligns with the center of the page. Moreover I would like it if the subsequent levels too were ...
4
votes
1answer
158 views

Use a symbol in a node as anchor

Is it possible to use a symbol in a node as an anchor? I want to draw lines from the \circ symbol in a parent to the childs. I want to do something like for tree={parent anchor=\circ, child anchor=...
1
vote
1answer
160 views

Decision tree formatting

How can I make the following decision tree legible? The code is below: \begin{forest} for tree={l sep+=.8cm,s sep+=.5cm,shape=rectangle, rounded corners, draw, align=center, top color=white, ...
1
vote
0answers
62 views

Centering three children of different widths in Forest [closed]

I'm new to forest and trying to figure out some of the finer details. I have a tree where the root node has three children. I would like the root node to be centered above the middle child. Here is ...
1
vote
2answers
224 views

in-order traversal in forest binary-tree

I am trying to adapt information from Draw lines on top of tikz forest to visualise an in-order traversal of a binary tree. I tried defining an in-order traversal, modelled after the \forest@node@@...
3
votes
2answers
833 views

Latex and Game Theory: Combining an Extensive and Normal Form for a Three Players Game

I am having trouble on editing my Latex code to produce a figure (game) using the Tikz package. I am trying to produce a three players game combining an extensive form (for player 3) and two ...
3
votes
1answer
122 views

Tree graphic using tikz

I want to mimic the tree of the picture, but i can not understand from tikz manual how to do some things: aligned lines (the should not start from the upper center of the node point) perfectly ...
4
votes
1answer
103 views

Shorter trees with horizontal terminal nodes and empty nodes (with forest)

I'm submitting a computational paper to an ACL-style journal. I need trees that have horizontally-aligned terminal nodes and no node labels (parser doesn't provide them). This question relates to this ...
4
votes
1answer
147 views

Forest tree not symmetric

I'm new to the forest package and created a tree with a node between two nodes, that is not centered. In the picture, it's the ZS(A; C) below root. This is the code: \documentclass{standalone} \...
0
votes
1answer
420 views

How to draw a block diagram with TiKz?

Can you help me about drawing a block diagram with TiKz, I want draw it similar to this
1
vote
1answer
138 views

Creating a specific kind of tree diagram

I'm trying to create a tree diagram for logic. I've used syntax trees before to do normal truth trees for logic. The trees I'm trying to create, however, don't look like syntax trees. They look like ...
1
vote
1answer
74 views

How to get different edge styles in the same tree

I'm using forest to make a tree with the forked edges option. I would like to be able to combine this with sn edges. Here's my MWE: \documentclass[landscape]{article} \usepackage[edges,linguistics]{...
1
vote
1answer
108 views

Quadratic Sequence tree branching node help

I want to make something like this. I tried using tree diagrams and got this code, \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[table]{xcolor} \usepackage{mathtools} \usepackage{...
1
vote
1answer
294 views

Undefined control sequence. \end{tableau}

Why the error. TeXStudio. \documentclass[12pt]{article} \usepackage{pstricks} %\usepackage{ot-tableau} %\usepackage{ytableau} \usepackage{forest} \usepackage[tableaux]{prooftrees} \begin{...
4
votes
2answers
295 views

Forest tree converging

I'm trying to make a tree of a corporate structure starting at some owner, and ending with a single company. This means that all lines start at a single node, and all ends at a single node. This ...
0
votes
1answer
232 views

Building taxonomies in Latex

I need to draw the following structure in Latex: Information systems Data management systems Database design Relational DB Graph-based DB ...
0
votes
0answers
42 views

How to get the following planar binary trees diagram in Latex? [duplicate]

I want to get the above diagram in Latex, but I don't know how to edit it. Any help will be appreciated. I know I had better post my effort here, but I really can not get it by tikz. I find an example ...
1
vote
2answers
540 views

The way to list subsets of the set {1, 2, 3, 4, 5} with forest or tree package

I want to list the number of subsets of the set {1, 2, 3, 4, 5}. I tried with forest package. \documentclass[border=3mm]{standalone} \usepackage{amsmath} \usepackage{forest} \begin{...
5
votes
0answers
73 views

How can I get correct spacing when reusing Forest trees and when calign is center (default), last etc.?

Forest allows me to reuse (part of) a tree in another tree. However, when calign has certain values, including the default center, this does strange things to the spacing of some nodes. How can this ...
3
votes
2answers
238 views

How to create board game search tree?

How can I create a visualization for the search tree in a game where I don't want to see only the nodes, but the board configuration at each step? Any code help for this image for example would be ...
2
votes
2answers
396 views

how can i make plane/binary trees with dots?

I have been creating binary and plane trees using the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,chains,fit,shapes,calc} \begin{tikzpicture} \node[...
3
votes
1answer
91 views

Phonological Trees: Consonant Gemination in tikz-qtree

I am new at this. I am making phonological trees. I have the following code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{tipa} \begin{document} \begin{...
0
votes
2answers
545 views

how to make tree structure in latex

I want to make tree strucrure. I seacrch a lot, but found other structure's solution. But did not solution find fortree. Suggest me tutorial or give me solution here. Help me!
5
votes
2answers
159 views

Forest for linguistics: changing the exit location of an arrow

I am a novice, with a hopefully simple question about arrows in a linguistics tree using Forest. The following hopefully minimal example yields an arrow whose tail is centered under the roof (the ...
3
votes
2answers
618 views

LaTeX: how to make a horizontal tree that is closed at the end (forest)

I have created the following horizontal tree in LaTeX, using the forest package. \forestset{ L1/.style={draw=black,}, L2/.style={,edge={,line width=0.8pt}}, } \begin{forest} for tree={ ...