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
0answers
31 views

how can I draw a compact resolution tree with annotation in latex?

I'd like to draw a resolution tree for a research paper: similar to the following resolution proof which each node might have extra annotations inside brackets[]. I found some posts like this but I ...
1
vote
2answers
62 views

Binomial trees using forest package

I need to draw a 3-period tree with different elements at each stage, for example: the upper path: (12)(12) ---> () the lower path: (13)(12) ---> (123) how can I draw such a tree? Edit: ...
2
votes
1answer
29 views

add text on the edge of line in proof tree

How can I do this in latex ? This is what I've tried, \documentclass{amsart} \usepackage{forest} \begin{document} \begin{forest} [$(\lnot \,A \to (B \to \lnot C)$ [$\lnot \, A$...
2
votes
1answer
41 views

Drawing a frame around a part of a syntactic tree using the `xytree` package

I am trying to make a box around a part of a syntactic tree, using the xytree package. I am aware that we can do it, using the qtree package which has the \qframesubtree command. But, I would like to ...
0
votes
1answer
38 views

Library graphs - mixture between layered layout and tree - How to do?

the creation of a graph with some specific attributes is for me not possible. Maybe you have some helpfully ideas how to realize?! The attributes of the graphs in 1. and 2. have to be "mixed", while ...
2
votes
2answers
43 views

Display count of leaves(depth) at each level in tree

I am drawing a tree like given below. The MWE for it is below: \documentclass[]{article} \usepackage{forest} \title{} \author{} \begin{document} \date{} \begin{forest} [n ...
4
votes
1answer
125 views

prooftrees.sty - why are line numbers overlapping and how to avoid?

Why are the "6" and "7" overlapping here and how can I avoid it? \documentclass[border=10pt]{standalone} \usepackage{prooftrees} \begin{document} \begin{prooftree}{} [A [A [A [...
4
votes
1answer
78 views

prooftrees tree nodes on different line

While trying to write a tableaux proof tree with prooftrees, I had some difficulty with putting single and branching nodes on the same line. \documentclass{article} \usepackage{prooftrees} \begin{...
2
votes
2answers
122 views

Adding a symbol to the top of a vertex in a connected tree

I have a code for a tree \[ \xymatrix@-1.25pc{ *={\bullet} & &*={\bullet} & \frm{}\\ &*={\bullet}\ar@{-}[lu] \ar@{-}[ru]& & } \] which will produce this as ...
5
votes
2answers
44 views

Shift children and subtrees horizontally in forest

I am trying to draw a tree diagram with forest package. In order to have the diagram fitting within the page margins, I moved down the subtree of NastranBulkData object, as you can see from the image. ...
0
votes
1answer
39 views

Making a directory tree with custom symbols (symbol for MATLAB file)

I am trying to draw a directory tree. As the tree should visualize the structure of a MATLAB framework, i would love to represent the matlab files with the corresponding icon, e.g. I found the ...
1
vote
1answer
45 views

How to start Decision Tree with a split?

I am trying to draw a simple decision tree like in Figure 1 of https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/j.1365-2656.2008.01390.x Unfortunately whatever I try, I cant adjust the ...
2
votes
1answer
450 views

How to add text next to nodes and prune (cut) parts of a tree?

I am having problems with how to align text next to nodes and also how to prune a tree. So far I have the following code and please ignore mistakes, I am not familiar with TikZ or LaTeX. \usepackage{...
2
votes
2answers
53 views

Tikz: tree and reverse tree combined together

I need to reproduce the following image in tikz: I started by drawing the upper part: the "normal" tree. I used forest to do this. But, I have no idea on how to do the lower part...the "reversed ...
2
votes
0answers
281 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 ...
5
votes
1answer
60 views

Is there a way to factorize the tree decoration of several trees?

I have a LaTeX document with several trees made with the forest package and would like to define a decoration style for these trees in a way that avoids code duplication. In other words, I would like ...
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 "...
1
vote
0answers
64 views

No ordinary family tree. Howto insert Son/Daughter in Law?

With the tree above in mind, i am trying to get something like this: So far little luck, this is where i am now: I also tried forest, but still can't get the job done. \documentclass{article} \...
4
votes
3answers
132 views

How to include horizontal arrows in between nodes in TiKz

I’ve been attempting to recreate this language tree, and attempted to do it in TiKz, but I’m open to other solutions. However, I’m not sure how to approach the horizontal arrows which are located in ...
3
votes
1answer
35 views

Tree diagram has lopsided branch

I'm attempting to draw a tree diagram using the forest package that shows the morphological derivation of a word. However, when I align the terminal nodes, the highest branch looks lopsided. This is ...
2
votes
1answer
34 views

Align text and bottom of forest tree

How can I align text around forest tree's bottom node? Fox \begin{forest} [PAST [jumped]] \end{forest} over fence Or are there more cleaner ways to insert text above words?
2
votes
1answer
62 views

How can I insert a tree diagram into text?

I've made a tree diagram using the forest package. To prevent the diagram stretching beyond the page I've placed it in a box. How can I place this box within the text such that Latex can determine its ...
4
votes
2answers
91 views

Tree in Diagram not centered

while the diagram seems to be centered (as seen by the caption), the tree inside is not. The narrower the tree, the farther to the right it is positioned. Any thoughts? Here's my code \...
0
votes
1answer
43 views

How to draw hierarchical overlapping models

I am trying to draw hierarchical models with overlapping nodes. I am able to use Use tikz to draw a hierarchical model (mult-level model from statistics) to make hierarchical models, but I am not able ...
3
votes
1answer
40 views

Depth first step by step construction on forest tree

Currently using forest to display Tableaux trees on beamer. For some cases i want a depth first step by step animation for the construction of the tree. The idea is to start with the root visible, ...
1
vote
1answer
47 views

Draw a particular hierarchy tree diagram with a connector of the before to last level to the last one

I use the code found here To draw a hierarchy tree diagram \documentclass[tikz,border=10pt]{standalone} \usepackage[edges]{forest} \usetikzlibrary{arrows.meta} \begin{document} \begin{forest} for ...
7
votes
2answers
229 views

Decision tree nodes overlapping with Tikz

Does anyone know how to prevent the branches of a decision tree from converging on each other? This is with Tikz - I've tried tweaking the sibling distance and things like that, but two of the ...
8
votes
4answers
1k views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
4
votes
2answers
1k views

Restoring qtree spacing in tikz-qtree

Is it somehow possible to achieve the same node spacing in tikz-qtree as in the original qtree package? Compare the two: qtree: tikz-qtree: The spacing between nodes in one level should be the same....
3
votes
1answer
160 views

How do you use environments that have the same name within a single LaTeX document?

I'm trying to typeset some proof tree exercises. But I need to use the prooftree environment from the bussproofs package, as well as the prooftree environment from the prooftrees package. Is there a ...
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-...
4
votes
3answers
738 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. ...
4
votes
3answers
525 views

Label Imperfect Information dashed line in tree

I am trying to add two labels, one over each of the two dash lines. Each time I add some variation in code at the place I created the lines, the corresponding label shows up at the top of the figure. ...
1
vote
2answers
2k 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 ...
5
votes
5answers
843 views

How do I make trees with straight skeletons or spines?

I'm a new/beginner LaTeX user, and I would like to make syntactic trees with straight spines, somewhat like the ones here: http://tanvirdhaka.blogspot.com/2010/01/phrase-structure-grammar.html Can ...
1
vote
2answers
336 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.,...
2
votes
2answers
218 views

Simple trees for mathematics

I have to draw many simple trees similar to the ones depicted for instance at page 128 or 133 of this beautiful book by Cheng and Lauda. I used to have some knowledge of the package forest, but ...
2
votes
1answer
78 views

Create separate double arrows as edge of a tree

I'd like to create a tree with edges made from two separate arrows as shown in picture: But I don't know how to change the edge to 'two separate arrows for each edge' Currently, I could only do the ...
2
votes
2answers
155 views

forest tree nodes

I'd like to clean up my tree by drawing an edge between parent nodes. In the following, I'd like to have the 0 nodes (which are children now) adjacent to the numbered nodes (ie on the "parent" level). ...
8
votes
4answers
5k views

TikZ - game tree representation with continuum of moves

I have been using TikZ to draw game-trees for my game-theory lectures (mostly using the automata package) but I could not figure out how to draw an arc across the edges the leave a given node. When we ...
3
votes
1answer
39 views

Adding coordinates to forest edge path

I've got: I'd like something like: Code: \documentclass{article} \usepackage{tikz} \usepackage{forest} \begin{document} \begin{forest} for tree={rectangle,rounded corners,draw, l sep=20pt, if ...
3
votes
1answer
98 views

trees with straight spines, and not too much vertical space?

I want to be able to typeset syntactic trees in a way that will achieve the following: straight spine when there is no label on the nonterminal node obtuse angle at each (binary) branch (so the tree ...
4
votes
1answer
189 views

How to add multi-line text below a node in a tree in forest

I want to make a tree which has bulleted lists centered below the child nodes, like so: I've searched on TeX SE and found questions which describe putting labels below nodes, but it doesn't quite ...
14
votes
4answers
3k views

How to draw syntactical trees with parallel leaves for a natural language?

I need to draw syntactical trees for a natural language. The problem is that I need all the leaves to be parallel. How the other nodes are sorted in relation to the other at the same depth is not ...
1
vote
1answer
177 views

Improving a decision tree drawn with TikZ / forest

I'm trying to create a decision tree in TeX, currently using the forest package, which uses TikZ under the hood. TikZ is black magic to me, and as a result so's the forest package, but I found a very ...
201
votes
17answers
37k views

How can we draw a Christmas tree with decorations, using TikZ?

I would like to use TikZ for drawing a christmas tree. Here's a start, I used the lindenmayersystems library for drawing a tree: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
3
votes
1answer
82 views

Drawing a centrally aligned tree using LaTeX

I am trying to draw a tree in LaTeX via following code. It works; however, it is always aligned to the left. How I can make it aligned to the centre? \usepackage[T1]{fontenc} \usepackage[utf8]{...
0
votes
1answer
26 views

Labels are missing in the Tree

In the following tree, the labels are concatenated to their parent node. For example in the first branch of the tree from left, I would like to have "the" as a leaf, but it sticks to D (its parent). ...
3
votes
1answer
48 views

Help with branches

I'm trying to do something like this, but I doon't know how to creat [+silábico] or organize "NUC" in an equal high. Thanks!! Here is what I used: (I've tried "[{[-silábico]},before drawing Vocálico={...
4
votes
1answer
77 views

How to position a single child node so it is in the same level with parent using forest?

Here is my tree diagram built using forest package. How to move the node in the red pen to the position of the blue pen? Here is my code. \begin{forest} for tree={calign=last}, [HEAD ...