{tikz-qtree} concerns drawing of tree diagrams using the TikZ-qtree package

learn more… | top users | synonyms

2
votes
1answer
29 views

is there a possibility to rotate text in a tree (tikz)?

Is there a possibility to make my tree a bit more well-arragend? At the moment I think, there is a lot of mess and you do not get which description refers to wich line and so on. I hope you understand ...
5
votes
3answers
94 views

Macro for creating trees for B-series as math symbols

I am writing a paper on numerical solutions for ODEs. For the representations of B-series I want to use binary tree-like symbols. I know how to produce them with TiKZ; however, just as in the given ...
4
votes
2answers
48 views

Adding information between and after nodes

I'm trying to compose a semantic tableaux for three days and I can not seem to figure out the last few missing pieces. Below is my, perhaps not the most elegant, code that I have come up with so far. ...
1
vote
1answer
45 views

Tikz-qtree: Drawing arrows from different words under a roof

I want to draw arrows from different words under a roof. In my example "Mary saw who" is under the roof, and I want I an arrow from "Mary" and another arrow from "who" pointing to "Mary" and "who" ...
3
votes
2answers
212 views

How can I add the line above this tree?

I want to add a line 1st toss, 2nd toss, 3nd toss and outcome like this picture I tried \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} ...
2
votes
1answer
81 views

Line break in qtree edge labels

I am using tikz-qtree to create a (horizontal) game tree. While I have managed to create line breaks in the node labels, this does not seem to work for the edge labels, see MWE below. My questions ...
3
votes
1answer
56 views

Straightening the edges in tikz-qtree

I have a tree, which turns out to be a ternary tree. Here is the code \begin{tikzpicture} \tikzset{level distance=18pt,edge from parent/.style={draw, edge from parent path={(\tikzparentnode) -- ...
3
votes
2answers
132 views

qtree - labeling levels of a tree

In either tikz-qtree or qtree, is it possible to label or number different levels of a (vertical) tree? Such labels could be at the right or the left side of the whole tree.
1
vote
1answer
76 views

How to break line inside a node on tikz-qtree?

I would break the line on the node. With the code that I embed, I cannot have the result: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} %-----questo è il pacchetto interessante ...
1
vote
1answer
144 views

drawing game trees: forest or qtree? [duplicate]

I hope this question actually is in order since it does not seem to have a "correct" answer: I am about to get into drawing game-theoretic trees and while I am familiar with LaTeX in general, I am ...
2
votes
1answer
66 views

customize edges in tikz-qtree

Considering the following code, \documentclass{beamer} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{frame} \begin{tikzpicture} \tikzset{level 1/.style={level ...
4
votes
1answer
67 views

“Kinks” in long tikz-qtree branches

I'm new to tikz-qtree, and can't find an automatic way to do something that qtree did very nicely. With qtree, if you don't have a label for a single intermediate node, you get a straight line from ...
6
votes
4answers
148 views

How to skip intermediate nodes in Latex tree?

I have the following LaTeX code for a timeline (using tree), but I'd like the two empty boxes following the "no" box to disappear, and instead to just have a straight arrow to action3 -- something ...
1
vote
2answers
73 views

Trees: adjusting arrows and roofs

How can I ensure that the arrow from $t_2$ curves below "of"? How can I use \qroof{some company}.DP and yet still have the arrow pointing to it? \documentclass[12pt,a4paper]{article} ...
8
votes
2answers
300 views

Extending a tree

I am trying to extend the following tree, so that it is as in the picture: \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} ...
0
votes
0answers
23 views

2-line leaf in tikz qtree [duplicate]

How can I get two lines of leaf text in tikz-qtree? Specifically what I want is to have a word with a gloss under it. So for example, the leaf would be "Tisch" with the gloss "'table'" directly ...
2
votes
1answer
71 views

Two edges for same node and add circle to node

I have three issues with my qtree figure: How can I add more than one edges for the same child? How can I add a Circle to an edge? I can't get a clue on how to organize the nodes like the image: ...
2
votes
1answer
582 views

\documentclass{tikz-qtree} Error Two \documentclass or \documentstyle commands [closed]

Probably got some obvious error \documentclass{article} \usepackage{tikz-qtree} % <- this wont work \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage[margin=0.5in]{geometry} ...
4
votes
1answer
157 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 ...
5
votes
1answer
179 views

How to style all edges in a tikz-qtree as arrows?

I'd like the edges in my tikz-qtree to be painted as arrows (pointing to the child node). How can this be done? I found a lot of questions here about how to add addtional edges, lines or arcs, but ...
1
vote
1answer
70 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} ...
3
votes
2answers
303 views

forest “every leaf node” and “every tree node” like syntax

I was seeing around that the forest package is better at drawing trees than tikz-qtree. I want to migrate my drawings, however, I can't find a way to easily format the tree. I see that there are ways ...
4
votes
1answer
119 views

How to typeset a MinMax algorithm tree?

I want to typeset MinMax decision trees in LaTeX, just like the one in following picture: I have played around a little and achieved part of my goals: \documentclass{article} ...
3
votes
2answers
177 views

TikZ align nodes with different heights

I am trying to make a tree view with TikZ of the different hazards modes that exist with lithium-ion batteries. Now I have the problem that some nodes have a text with two lines and then it doesn't ...
0
votes
1answer
84 views

How-to-add-23-24-25 behind-22 without adding more children?

%%%use PDFLATEX \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{positioning} \tikzset{edge from parent/.style= {draw, edge from parent ...
6
votes
3answers
262 views

Autosegmental Representation in tikz-qtree

This is what I want to achieve and this: But all I've been able to make with tikz-qtree is the following: \documentclass[12pt,a4]{article} \usepackage[utf8]{inputenc} ...
4
votes
2answers
237 views

How to set distance between individual siblings in a tikz-qtree tree?

I have made this tree for my research project. I've just renamed all attributes for this question. You can see in the picture below that siblings on the top are very congested and the picture overall ...
5
votes
2answers
129 views

Defining node inside curly braces

I am trying to define a node inside a curly braces {}: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \Tree [.CP \node(y){here}; [.C$'$ C ...
1
vote
0answers
25 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} ...
11
votes
2answers
227 views

Two lines in a single node in Forest

I have recently switched from the tikz_qtree package to forest. Now I'm trying to change my trees to fit the forest coding. However, I can't find the way to let a single node contain two lines. I do ...
3
votes
2answers
297 views

Draw Tikz Tree where level distance between multi-line nodes is constant

I am drawing a tree with tikz, namely, using tikz-qtree-compat for simpler syntax. On the tree there can be nodes of different height but then branches become messy. I want to add an instruction where ...
8
votes
2answers
418 views

Drawing a frame or box around parts of a syntactic tree using tikz-qtree

I'm trying to make boxes around parts of my tree, but I find no command to do so. I have tried the qtree package, which has the !qframesubtree that can do the job, but only for complete subtrees. What ...
1
vote
1answer
164 views

Why is the tikz picture not center aligned in ieeetran

The MWE is as follows: \documentclass[journal]{IEEEtran} \usepackage{tikz-qtree} \begin{document} \begin{center} \begin{figure}[H] \begin{tikzpicture} \Tree [.* [.+ [.+ S1 S2 ] [.+ S3 S4 ] ] [.S6 ] ] ...
1
vote
1answer
47 views

Expand macro at call site only

I want to draw a tree where each edge has a certain weight visualized through both the line width as well as a label on the edge. Using TikZ, this is pretty easy: \documentclass{standalone} ...
9
votes
2answers
683 views

Draw 5 period binomial tree

I want to draw a 5 period binomial tree. I have found some code for only 3 period. I was trying to extend it to 5 period, but it turned out too messy at the end. I don't want the nodes overlapping. ...
6
votes
2answers
193 views

Overly long edge in tikz-qtree

I have this tree: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzstyle{level 1}=[sibling distance=50pt] \tikzstyle{level 2}=[sibling ...
2
votes
1answer
233 views

Horizontal tikz-qtree level distance too big while using edge style

After tweeking with tikz-qtree a lot, i ended up with the result below. But i dont know why the level distance after XML node is too long, and even when setting the level distance for said level, the ...
8
votes
3answers
337 views

How to move tree leaf nodes horizontally after automatic positioning?

I'd like to draw trees like the following: That is, I have edges which are crossing. The tree should be drawn like a regular tree (without crossings) except at the last level where the leaves can ...
3
votes
2answers
139 views

How to format a language tree?

I would like to format the a language tree with XeLaTeX. The question is how to balance it so that it fits within the page width. Monospaced font In a mono-spaced font it looks like indicated ...
4
votes
1answer
102 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
109 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} ...
1
vote
1answer
138 views

How to label arrows in tikz-qtree?

How do I label the arrows below with "1," "2," and "3"? \documentclass[a4paper,12pt]{article} \usepackage{tikz, tikz-qtree} \begin{document} \begin{tikzpicture} \begin{tikzpicture} \tikzset{every ...
1
vote
1answer
169 views

Remove white space from empty nodel label in tikz-qtree?

With empty nodes in tikz-qtree how do I remove the white space where the node label usually appears? In the following example I want to remove the white space for the node under Foot 3. ...
6
votes
1answer
227 views

Constructing a tree in LaTeX

I am having real trouble creating a tree. So far I have \documentclass{article} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture}[every tree node, level distance=1.25cm,sibling ...
1
vote
3answers
346 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
430 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 ...
2
votes
1answer
882 views

Is there a way to add a text label outside a node in tikz-qtree?

Having text labels inside nodes in trees drawn by tikz-qtree is straightforward, but is it possible to also have a label outside the node? For example, a node with letter A inside it, and letter B ...
2
votes
2answers
176 views

Tikzmark between syntactic tree and matrix?

I am trying to draw a line between the S node and the matrix, but have not been able to get it to work. What am I doing wrong? MWE: \documentclass[a4paper,12pt]{article} \usepackage{fontspec,tikz, ...
1
vote
1answer
106 views

Adjust edge endpoints depending on node label

I would like to draw a tree where the position of edge endpoints relative to the node depends on contents of the node, and may change between the parent edge and the child edges, to point out a ...
4
votes
1answer
146 views

Showing Tikz tree nodes after each other (using bracketing format of \Tree)

I want to display a tikz tree node by node. First A, then A and B and in the end all nodes. Note that I need to do it with the presented format: \Tree [. \node{A};] since trees are automatically ...