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

learn more… | top users | synonyms

3
votes
1answer
61 views

How to draw an unrooted phylogenetic tree?

I have a problem! I want to draw an unrooted phylogenetic tree like this one: (Image taken from commons.wikimedia) I've tried with the package newicktree, but without success! Anyone can help me ...
6
votes
2answers
150 views

Decision Tree with Labels on Both Sides of Line

I am trying to generate a decision tree similar to this scanned example: Notice that some branches have text on the top as well as the bottom. I have not figured out how to do this. I can get text ...
1
vote
3answers
46 views

Adding Short Lines Across Decision Tree Branch

I am creating decision trees using the 'forest' package and would like to add short lines across a branch to indicate that the decision is sub-optimal. Can this be done in 'forest'? I am attaching a ...
7
votes
2answers
174 views

Adding Triangles to LaTeX Decision Trees

I am using the 'forest' package in LaTeX in order to create decision trees with multiple decisions. I've got it mostly how I want it, except for two things: I'd like the circles at the leaves of the ...
4
votes
1answer
123 views

Trees and fitting trees underneath them

Questions How can I fit a tree in the blank space under where I have marked Tree 2 in the photo (directly underneath Tree 1, but to the right of \Rightarrow)? How can I caption Tree 1 and Tree 2 ...
0
votes
1answer
92 views

Drawing node arrows

I'm not sure how the node function works for use in trees such as the one drawn by Gonzalo Medina in this post: Trees and arrows I'd like to be able to create arrows going from different nodes to ...
5
votes
1answer
95 views

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 ...
1
vote
0answers
13 views

Strikeout and qtree [duplicate]

I cannot get strikeout to apply inside a tikzpicture. In the example below, strikeout only applies to"Hello World" at the beginning, but not in the tree. How can I solve this problem? ...
1
vote
1answer
40 views

Extending the branches of a tree with binary branches

In the following tree, how can I introduce further and further binary branches between S and VP? \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} ...
2
votes
3answers
39 views

Positioning of trees

Consider \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \begin{document} X + Y $\Rightarrow$ \begin{tikzpicture} \Tree [.X X Y ] \end{tikzpicture} ...
1
vote
1answer
37 views

Fitting items next to trees on the page

I want to be able to put items to the left or right of the tree structure in the following example. How can I do that? At the moment each tree occupies a line. \documentclass[12pt,a4paper]{article} ...
2
votes
1answer
94 views

Drawing a tree diagram

How do I draw the tree diagram below in Latex? I also want to label the branches the way they are in the figure. Here's my preamble: \documentclass[11pt,reqno]{amsart} % Packages ...
2
votes
1answer
90 views

Family Tree gone “wrong”

Trying to make a simple tree, but when I finished I realized I'd gone about it totally the wrong way... Would appreciate some help trying to make this the "correct" way. Oh, and also to circle the ...
2
votes
2answers
110 views

Drawing graph decomposition as a tree

Let's say I have a triangle like this which is easily generated by pgf. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ vertex/.style={circle, draw=blue!60, ...
6
votes
1answer
215 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
0
votes
2answers
55 views

Dependency tree graph with extra arrows

I built the tree (black components) using the Stanford Parser. However, it doesn't make its graphs exportable, so I had to take a screenshot. Then to that graph I had to add the two new colorful rows ...
1
vote
2answers
61 views

qtree spacing and alignment

I have the following qtree \begin{center} \Tree[.{\tiny \ttfamily \itseries educated at}{\tiny \ttfamily ( Bush, University of Texas at Austin)} [. [. ...
1
vote
1answer
58 views

implement a tree that will fit on two column page structure and permit multiline nodes

I have a paper formatted like this one, i.e. two columns of text per page. I've been trying to make a tree structure to fit inside of one column, but so far I've been unable to make it work. There ...
1
vote
0answers
24 views

What am I doing wrong with the qtree function? [duplicate]

I have been trying to figure out what is wrong with my code, but no matter what I do it does not compile. \documentclass[12pt]{report} \usepackage{tikz-qtree, qtree, graphicx} ...
4
votes
1answer
28 views

How can I set a style in `\forestset` which requires delayed calculations with the results of node walks?

What is the correct way to wrap the specification for the tree below into the my binomial style defined in \forestset and why? The following code works fine: ...
4
votes
2answers
63 views

Tree diagram got cut off

After compiling the code for a tree diagram, some parts of the right hand side of the tree got cut off. I've already used \centering function but this does not fix the problem.I'm not sure how to ...
6
votes
4answers
186 views

How to use Tikz and macros to very efficiently draw recombining binomial trees when taking notes during class

For a class in derivatives pricing I would like to find a way to quickly and efficiently draw recombining binomial trees. The class involved quite a few of those trees and it would be immensely ...
5
votes
2answers
190 views

How to colour branch/edge on a tree using tikz?

I have created a tree diagram using tikz on Latex. However I'm not sure how to go about highlighting/adding colour to a branch. For instance, looking at the tree that I've illustrated, I want to ...
5
votes
2answers
99 views

Obtain a TikZ tree from a Lua table/string

Let's consider I have a database where with appropriate passages I obtain the a string that describes a layered tree. Consider the following listing: % !TEX encoding = UTF-8 % !TEX program = ...
3
votes
4answers
166 views

How to draw trees

I'd like to know how to draw these trees: I really have no idea. I've taken a look but I didn't find out anything that could help me (to draw these trees in particular). So I hope you can help me. ...
8
votes
2answers
144 views

Drawing a tikz tree above a tikz-dependency tree with same leaves

I would like to achieve the following goal: I have two different kind of trees that I would like to merge : \documentclass{article} \usepackage{color,graphicx} \usepackage{tikz} ...
0
votes
1answer
138 views

How to display contents of a tree grid in a latex table

I am working on displaying a nested bill of material in tree grid in a latex document. Is there a package available that can help with this? A short example of my current table \begin{table}[h] ...
4
votes
2answers
105 views

How to add a numbered label to syntax tree?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} baseline, for tree={parent anchor=south, child anchor=north, align=center, l sep+=0em, s sep+=4em} [T$'$ ...
3
votes
1answer
432 views

Package pgf Error: No shape named is known

I have encountered a problem Package pgf Error: No shape named is known but, I do not know what's wrong with it and how to fix it? Can anybody help me? My code is as follows: ...
4
votes
1answer
75 views

How to obtain the same-sized-boxes?

I want all the rectangle have the same size. What should I do? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{tikz-qtree} \tikzset{edge from parent/.style= {draw, ...
2
votes
2answers
67 views

How can I put something under something in a Tree?

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{grow'=right,level distance=32pt} \tikzset{execute at begin node=\strut} ...
0
votes
0answers
27 views

For a tree, I want add labels for every line of children [duplicate]

I have asked the same question about four or five hours ago. @Jason Zentz has given me a link. But the tree linked gowns down. It is a little different from mine. I tried many time to solve the ...
1
vote
3answers
165 views

Syntactic tree with tikz-qtree and annotations and labels over multiple lines [duplicate]

I am going mad trying to draw syntactic trees using the tikz-qtree package. Here is what I have come up with: \begin{figure} \centering \begin{tikzpicture}[every node/.style={align=center},level ...
5
votes
1answer
264 views

Tikz Graph without using a tikz document class

The following solution is absolutely perfect for my purposes, but I noticed that it requires \documentclass[tikz,border=5]{standalone}. Is there a way to get the same result with a standard ...
1
vote
1answer
78 views

Producing “infinite” tree using qtree

I'm trying to produce a tree with infinite branches in each levels means from each 'stage' there are three branches without text and three dots in the end of each branch. Alas, When I try to run the ...
9
votes
2answers
129 views

Maps between rooted trees using forest (and TiKz)

I had to draw rooted (upward oriented) trees (with leaves). I found the package forest useful, although most likely the work-arounds I employed are not really optimal in any proper sense. An example ...
5
votes
2answers
209 views

Draw a tree with tikz

I have some problems I am not able to fix with this tree in tikz: 1. how can I avoid the empty space near the root? 2. how can I write a text on branches? I used "edge from parent" but does not work ...
1
vote
0answers
26 views

How to create a horizontal tree using braces [duplicate]

I want to create a horizontal tree-like structure using braces, as in: Please forgive my lack of creativity. I tried using an equation, for example \begin{equation*} \text{Animals} \left\{ ...
5
votes
2answers
508 views

How can I draw a circle around an entire tree in forest?

For some reason that I cannot discern, using tikz={\node [draw,circle,fit to tree]{};} to draw a circle around nodes in a tree works as expected if the nodes are embedded in a larger tree. However, ...
2
votes
2answers
160 views

How to combine a top-down and bottom-up binary tree in one picture?

I want to draw a binary tree like the one in the picture below. Unfortunately, I do not have any clue, whatsoever, on how to draw two trees from top and bottom to match their leaves. Any help would be ...
1
vote
0answers
104 views

TikZ-style tree nodes with paragraphs?

This may seem like a strange question, but is it possible to create tree edges connecting paragraphs? I've seen examples of TikZ being able to create trees with images and text nodes, but I'm not sure ...
2
votes
3answers
208 views

Strange graph in tikz

I want to make a strange graph in tikz. This graph has some nodes inside the nodes... like this figure: I tried this: \newcommand{\twonodes}[2]{% \begin{tikzpicture}[node distance=0.7cm] ...
1
vote
1answer
122 views

Split nodes' label between multiple lines in pstricks tree

With pst-node and pst-tree, is it possible to display node's label on multiple lines? With TikZ, it is very easy, you simply put a line break at the appropriate place in the node's label { first line ...
1
vote
1answer
165 views

auto adjust node position in a binary tree

I'm trying to draw a binary tree using tikz. I use shift option to define the relative position of child nodes. But as the tree grows, the nodes start to overlap if I use a fixed shift. I'm able to ...
1
vote
2answers
75 views

list/tree with arrows from main word

Can anybody help me to do something like this in LaTeX? Thank you!
1
vote
1answer
53 views

Why am I having this problem with exam class and the package newicktree?

I'm having trouble getting phylogenetic trees to display correctly within the solution environment of the exam class. For some reason, they are positioned way far to the right (running off the page) ...
4
votes
2answers
410 views

Latex Binomial tree (space and overlapping)

I encounter the following problem: I want to fit a (vertical) binomial tree but the siblings from the third level overlap (no matter how I adjust the distances they either overlap with each other or ...
1
vote
0answers
210 views

How to draw phylogenetic tree? [closed]

I'm using Mac OSX Mavericks and have downloaded LaTex. I am currently learning how to draw phylogenetic tree. Can someone teach me? I have copied a sample of code for the phylogenetic tree. it uses ...
2
votes
1answer
96 views

Typesetting Dependency Grammar trees with discontinuous constituents

I managed to typeset simple Dependency Grammar trees (Typesetting Dependency Grammar trees), but now want to have non projective graphs. The solution with forest is the following: ...
6
votes
3answers
212 views

Typesetting Dependency Grammar trees

I try to typeset dependency trees: Is there a package that does this? It should be compatible with xelatex, i.e. not be based on pstricks. I could not find anything with google or on CTAN. If ...