The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1answer
410 views

Using the package tikz to create a diagram

I have been trying for ages without and prevail to design this diagram. It is my first time trying to use this package. Could someone help me please with this? Thanks :) This is what I have so far: \...
5
votes
2answers
870 views

Resizing qtree to fit pagewidth

I'm trying to learn qtree but I still couldn't figure out how to resize to fit the page width. I would like to avoid cutting the tree. Here is my MWE: \documentclass[a4paper]{article} \usepackage[...
1
vote
0answers
20 views

Unrecognized Command in pst-asr? [duplicate]

I'm trying to do autosegmental representation using pst-asr, but I am getting an unrecognized command error on \asr. All I've done is use the sample code from the documentation, but it still won't ...
2
votes
2answers
127 views

wiggly lines in syntactic trees

in reference to this post, I have a follow-up question. What I need to do is basically something like the following: That's my attempt: \documentclass[12pt]{article} \usepackage[linguistics]{forest}...
2
votes
1answer
302 views

Animation of growing tree with forest package

I would like to "animate" a growing tree. This means that the nodes and edges in trees (a)-(c) should be aligned like the final tree. Unfortunately I couldn't figure out how to do this with the ...
5
votes
2answers
513 views

Drawing a k-ary tree using TikZ without overlap

I'm trying to draw a k-ary tree using tikz. Unfortunately I couldn't manage to avoid the nodes from overlapping. I also tried setting level/.style={sibling distance=30mm/#1}, growth parent anchor=...
6
votes
3answers
1k views

Draw lines on top of tikz forest

I am trying to illustrate DFS with tikz like http://www.cse.unsw.edu.au/~billw/Justsearch1.gif does. I have come up with \documentclass[border=10pt]{standalone} \usepackage{forest} \begin{document}...
1
vote
2answers
339 views

How do I draw Phrase Structure Trees in the Style of Heim & Kratzer (1998)?

I'm trying to figure out how to draw simple syntactic trees like the ones here, found in Heim & Kratzer's "Semantics & Generative Grammar." I do not want to include labels such as NP, VP, etc.,...
3
votes
2answers
3k views

Forest trees fitting on page

My forest looks like this but it does not fit on a page, this is my first time using this package. I am looking for suggestions to fit this into a page, hopefully they will not be too intensive ...
2
votes
3answers
495 views

Tikz forest alignment issue

What do I need to change in the following code, in order to bring A at the same level as B? I need the branches where I have placed them, as I have space problem, and don't want them overlapping, but ...
1
vote
1answer
136 views

How to align the second level of tree diagram?

How can I fix this? \documentclass[margin=5mm]{standalone} \usepackage[utf8]{inputenc} \usepackage[edges]{forest} \begin{document} \begin{forest} for tree={ l sep=1cm, child ...
3
votes
1answer
2k views

How can I reproduce this simple tree diagram?

I would like to create this simple tree diagram in LYX. I tried using forest but I did not figure out how to add text to the different levels and display percentages.
5
votes
2answers
692 views

squiggly trees in latex

I need to draws trees, in which one of the branches is squiggly, as showed in the screenshots below. Does anybody know how I can do that? adapted from: Svenonius, P. (2015). Spanning. Ms., University ...
3
votes
2answers
229 views

How to add an enumerate list to this tree diagram?

So I am trying to add a list of the form 1. 2. 3. under each subject in this tree diagram: My problem is not in making the list itself, but rather in typing under the subjects. I tried both \...
3
votes
2answers
793 views

How can i make this tree diagram with labels on edges and vertices?

I would like to understand how to add labels to edges and vertices and how to make an invisible vertex such that an edge can start or end in it, but the vertex itself is not visible. I'm interested ...
-1
votes
3answers
177 views

A Figure in beamer

Can anyone please tell how can I produce the following figure in beamer :
3
votes
1answer
261 views

Tree in forest using the style fairly nice empty nodes on

I am using the fairly nice empty nodes-style from this question: Decrease distance between nodes in tree using Forest to make a tree with empty nodes that is smaller than what using nice empty nodes ...
3
votes
2answers
446 views

How to get the top of a tree to align with the example number and its bottom with the example text?

I am trying to get the example number to align with the top of the tree and any additional text to align with the bottom of the tree, but I seem to be able to do only one of those. This code: \...
6
votes
1answer
132 views

Trees in context

Excuse me for my english, is not my language. I have a document in LaTeX, the relevant code is \documentclass[a4 paper, 12pt]{article} \usepackage{tikz-qtree} \usepackage{tikz} \usepackage{pgf} \...
8
votes
5answers
838 views

Tree, then arrow, then tree

I'm trying to show a transition between two trees. Right now I'm using minipages, but the spacing is all off: The trees should be closer, and ideally the arrow should be longer. Finally, for extra ...
3
votes
5answers
545 views

Line break with equations in game tree labels produced with TikZ

I use this manual for help with the drawing of game trees using TikZ (http://www.sfu.ca/~haiyunc/notes/Game_Trees_with_TikZ.pdf). However, I have a challenge I cannot seem to overcome. Some of my end-...
5
votes
2answers
2k views

Specify where and how edge connects to child (tikz)

I have the following tikz tree: I'd like to change where the edge meets the child to where I placed the red dotes. Also, I'd like to have bend edges. I've tried [bend left] but it didn't change ...
9
votes
4answers
668 views

Is there a better way of setting this tree?

I created a tree with the help of cases environments. The MWE is this: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \...
1
vote
2answers
224 views

Set fork and stop text overlapping

I'm having a bit of trouble with a diagram. I can't figure out how to get the fork from the second node to the 6th node at the same level and have the text not overlapping. \documentclass[a4paper,...
5
votes
2answers
846 views

Probability tree is colliding

I need to make a probability tree with 3 outcomes per event. Here is the code I am using: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{fullpage} \usepackage{amsmath} \usepackage{...
1
vote
1answer
333 views

How to add one more leave to my tree graph?

\documentclass{article} \usepackage{qtree} \begin{document} \Tree [.X leaf_1 [.Y leaf_2 [.Z leaf_3 last !{\qbalance} ] ] ] \end{document} I would like to add one more leave and node under leaf_1.How ...
1
vote
1answer
443 views

Prooftrees logic tree preamble for an example

The following example is out of the documentation of prooftrees (I suppose that an updated version of TeX Live is needed to make use of that package). The problem is that the documentation's .tex file ...
2
votes
1answer
187 views

How to a draw a tree with n edges and show count of edges at each level?

I am trying to draw a combinatorics tree starting with n_1 edges at level 1, n_2 edges at level 2, ... , n_k edges at level k. Something like this: I found a binary tree code from this site: ...
1
vote
2answers
223 views

Write same vertex labels with TikZ

I am writing an article on graph coloring and trying to make this type of labeled tree in TikZ. (See the attached Figure) The problem is that I have to use same color label (English letter) for many ...
2
votes
1answer
379 views

Add an Ellipsis at the end of the tree with forest

I have an tree and I need to make it so it feels like it's infinite. I need to draw an ellipsis at the end of each branch. I would like the ellipsis to be vertical oriented if possible (not a big deal)...
3
votes
0answers
529 views

Draw and-or trees' arc with tikz tree library

I'm trying to get a similar result of this question: Drawing AND/OR trees in Tikz. However, I'm trying the trees library from tikz and was trying to get the automatic arc that is produced with the ...
0
votes
1answer
121 views

Tikz Tree with added notes

I need to add notes where "Write Text Here" is. I do not want it to be part of the node. Is there a way to add notes next to a node. Below is my code; Thank you \tikzstyle{every node}=[draw=white,...
0
votes
1answer
1k views

Depth labels in Recursion Tree using Forest

I have a recursion tree very similar to the one below built using the Forest package. The only problem is that I do not know how to add labels to the right hand side for each depth of the tree. In ...
0
votes
2answers
562 views

How do I typeset this parsing tree for propositional logic formula with forest or something else?

The following parsing tree is from Mathematical Logic published in 2007 and written by Ian Chiswell & Wilfrid Hodges. It looks like a forest tree, but I guess it could be typeset better by another ...
0
votes
0answers
195 views

Operad theory, trees and an identity

I am trying to achieve the operad insertion shown on Wikipedia here. I can't figure out how to put a \circ sign between first two and an equal to sign between the others as shown on Wikipedia. Also I ...
2
votes
1answer
562 views

saving horizontal space in tree diagram

About a week ago @cfr already provided a very decent solution for saving vertical space in my tree diagram. Unfortunately my initial situation has changed now and I am facing a horizontal tree which ...
18
votes
1answer
1k views

How to improve my semantic tableau?

I have to typeset some semantic tableaux in my document, looking similar to the example underneath. My first idea was to use tikz for this, so I created the following monster: \documentclass[convert]...
6
votes
2answers
639 views

Saving vertical space in tree diagram

I have many nodes on one tier. Thus I use the grow east option already. But this is not enough... I would like to save a bit more vertical space for instance through pulling two of the branches a ...
1
vote
1answer
255 views

How can I make this tree shrink to fit standard page?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3....
2
votes
1answer
291 views

how to draw skewed (unbalanced) tree with tikz-qtree?

\begin{figure}[H] \centering \begin{tikzpicture}[scale=0.7] \Tree [.Appl [.DP ] [.V [.DP ] [.v ] ]] \end{tikzpicture} \end{figure} is giving me the above picture: But, what I really want is left ...
2
votes
1answer
326 views

Improving tree diagram

Does anyone have an idea how to improve this diagram? I don't know, but it doesn't really blows my mind, yet. For instance, I am not able to manage a good-looking line length and positioning where ...
4
votes
1answer
1k views

How to draw big circles around selected nodes of a tree with tikz?

I have drawn the following tree using tikz with the following code. My question is: How can I draw one big circle enclosing all the „A“ nodes, one for all „B“ nodes and so on (maybe with different ...
1
vote
1answer
319 views

How can I make horizontal direction for last node using Tree

I am using tikz to draw my tree. I want to adjust the location of last nodes as expected figure(last figure). Second, I want to locate the tree in centering on page. Could you help me to fix the latex ...
1
vote
0answers
76 views

How to prune nodes in a tree using graph syntax

I want to indicate that nodes have been removed from a tree. Lets say the code looks like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \usetikzlibrary{graphdrawing} \...
31
votes
3answers
4k views

Write trees in LaTeX

I think this would be a good question how to bring a customized flowchart (your own) in MS Word to LaTeX. Well, I have attached a World file, and I am trying to convert that in LaTex. The Save as "...
7
votes
2answers
607 views

nice empty nodes broken by forest 2.0?

I've been using the "nice empty nodes" style from the forest manual for trees for quite a while now. Today I updated the package, and now it throws an error (though the output still seems to work). ...
4
votes
1answer
995 views

TikZ/PGF error when using forest

I am trying to make a linguistics tree using the forest package, as in the second example in this thread. I was able to generate the tree for the most part, but I cannot draw the triangle for some ...
-1
votes
2answers
451 views

How can I reproduce this tree diagram?

I want to reproduce the tree diagram shown below. My major problem is how to put text (Yes/No/Exposure...) next to the lines.
2
votes
1answer
464 views

How do I concisely typeset propositional proof trees?

I want to draw things like and optionally I don't need to typeset proof trees as in the second picture, but it would be nice to know how to typeset it if anyone could do it without a sweat. But, I ...
4
votes
3answers
796 views

Multilevel hierachical tree/taxonomy with linebreaks and “empty items” in Tikz

I would like to include graphics like the following in my document. Since this is just one example and there will be different models, I can't just include it, but will rather need to be able to build ...