Questions tagged [trees]

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

595 questions
30
votes
8 answers

Typesetting genealogical trees

I looking for a simple way to typeset a genealogical tree in LaTeX. In particular, I'm interested in typesetting a so-called "Ahnentafel", that is a tree that shows me, my parents, my grandparents, my great-grandparents etc. In other words, it is a…
oz1cz
  • 1,556
21
votes
3 answers

How do I draw a B+ tree in latex?

Is there some way to draw a B+ tree in latex? It would look something like the picture below (ignoring the animations) Animation linked here: https://i.stack.imgur.com/JRcmY.gif Screenshot of the start of the animation:
12
votes
1 answer

Drawing binary trees with LaTeX labels

Is there some good tool for drawing binary trees with labels that are rendered by latex? I would need to have the tree node placement done automatically for me, because there are too many labels to calculate their placing manually. To be more…
10
votes
1 answer

How to draw a tree diagram where its rectangular nodes have a floating numbering label each?

This is a graph someone send me in Word: Ignoring the Hebrew text, how can I produce such a graph in LaTeX (I actually use LyX, but I suppose it won't help me so much)? If there's an elegant and easy way to add the numbering as well, that will be…
Amir Rachum
  • 4,333
  • 6
  • 30
  • 37
10
votes
2 answers

How to make a tree more compact?

I'm using the qtree package, and I've made a tree that stretches far too much, and as a result, won't fit on the page. Here is my code: \Tree [.1/1 [.1/2 [.1/3 [.1/4 [.1/5 1/6 2/9 ] [.2/7 3/11 3/10 ] ] [.2/5 [.3/8 4/11 7/12 ] [.3/7 5/12 4/9 ]…
user3626
9
votes
2 answers

Drawing Unrooted Tree

I would like to draw unrooted trees like: I can create one using the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node at (0,3) {$T_1$}; \draw (-2,0) -- node[above] {$B_1$} (0,0); \draw (0,0) --…
havij
  • 299
7
votes
2 answers

Recursion Tree in LaTeX

How can the following recursion tree be drawn in LaTeX? I have tried using TikZ pictures for this, but I continue to get errors in the code. Please suggest an easier code for the same.
Neha
  • 119
7
votes
1 answer

Dependency trees with crossings and dotted lines

For a presentation I need to refer to a paper which uses a certain kind of dependency tree: Since I wanted to build some examples on my own, I'd be glad to rebuild this. I've tried several linguistic tree packages (qtree, xytree, tkiz, parsetree,…
beyeran
  • 359
5
votes
2 answers

How can I draw a simple factor tree like this?

I am trying to draw a factor tree for my elementary students like this. What are the possible ways / packages to do it efficiently?
5
votes
1 answer

Trees and arrows

I need to draw an arrow, using \draw[semithick,->] (t)..controls +(south west:5) and +(south:5) .. (wh);. I want the arrow to connect e3 at the bottom of the following tree to the single e3 occurring higher up in it: …
user65526
  • 845
5
votes
2 answers

Prune a branch in a tree

I would like to prune (for indication) some branches of this minimax tree. I'd like to have a cross line over each branch that would be pruned in the final tree. I cannot seem to be able to do it with synttree package in an obvious way. Can somebody…
jtimz
  • 297
4
votes
1 answer

Package for energy budget trees

Is there a package that can typeset trees used for energy budgets? The image is an extract from Dynamic Energy and Mass Budgets in Biological Systems by B.Kooijman which is easily identifiable as having been typeset using LaTeX. Unfortunately I…
yannisl
  • 117,160
2
votes
2 answers

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…
Den
  • 35
  • 3
2
votes
1 answer

Binomial tree using matrices?

I have the following code for a particular group, now I wish to show the matrix representations for each permutation in the same manner as: \documentclass[11pt]{article} \usepackage{forest} \begin{document} \textit{Generator…
Math
  • 765
2
votes
2 answers

Special characters in parsetree

I am using the parsetree package, which according to this documentation can have special characters like parentheses in leaf nodes when not using shortcuts like ".N.". However even if I follow these rules, I still cannot get my special characters to…
1
2 3