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

learn more… | top users | synonyms

4
votes
1answer
21 views

On this tikz-qtree when I color the nodes the parent node gets covered. How to fix it?

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usetikzlibrary{trees} % this is to allow the fork right path \pagecolor{olive!50!yellow!50!white} \begin{document} ...
2
votes
1answer
38 views

Writing a macro for an edge label in tikz-qtree

I'm attempting to make my code more readable by replacing a long bit of text I intend to use several times with a macro. Before I use the macro, I have the following code: \documentclass{minimal} ...
1
vote
2answers
92 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 ...
10
votes
4answers
619 views

Need help with making Logic Trees in qtree/tikz-qtree (i.e. aligning, numbering lines)

I would like to make something similar to the logic tree below. I've tried using tikz-qtree, but I can't figure out how to number every line in the tree. I did however find something else doable in ...
1
vote
0answers
55 views

tikz-qtree is all messed up

I'm new to latex and I'm using Lyx to write my documents. Recently I needed to add binary trees to my document, and after some googling I found I could add the tikz-qtree package in order to draw ...
2
votes
1answer
54 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
64 views

How can I adjust the position of a hierarchical tree

I am using tikz-qtree to draw a hierarchical tree. However, the position of the tree out of the page. Could you help me to adjust the tree to center of page? Thank you My current code that manually ...
2
votes
1answer
44 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 ...
3
votes
2answers
814 views

Drawing a tree with bottom-aligned leaves

I'd like to align all leaves of a tree at the bottom, so what I'd like to achieve should look like: p / \ / /\ c d e What I've tried so far (using tikz-qtree) results in: p / \ ...
5
votes
2answers
823 views

How to draw custom nodes attached to tikz-qtree?

I want to draw a tree which is similar to the Merge sort recursion tree in this Tikz sample from TeXample.net: However, I don't want to draw all the + and = signs, I just want two columns: one from ...
5
votes
3answers
110 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 ...
6
votes
4answers
204 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 ...
4
votes
2answers
214 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 ...
4
votes
2answers
56 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
72 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
223 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} ...
10
votes
2answers
477 views

How can I align captions with each level of a tree drawn with tikz-qtree?

I have drawn a binary tree using the TikZ-qtree package. 1) I now would like to align captions on the right of tree with each of its level---and I would like the placement to be automatic (ideally I ...
2
votes
1answer
129 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
66 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
232 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
86 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
197 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
80 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
72 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 ...
1
vote
2answers
96 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
318 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} ...
3
votes
1answer
1k views

can't get multiple lines with tikz-qtree package

I am using the following code to draw a fairly simple tree. The problem is that the line break commands are being ignored although I have found a number of examples on the net that show that they ...
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 ...
10
votes
4answers
512 views

Mendelian Inheritence Chart

I would like to be able to create a simple chart that depicts Mendelian Inheritence, like this one: I'm not too picky about how it looks, as long as it depicts it accurately. Thanks!
7
votes
2answers
378 views

Automatic connection of text points in tikz-qtree

I have to draw pictures like the following a lot: I want to use tikz-qtree, since I have a lot of trees and this package simplifies things considerably. Right now I use the following code, since it ...
7
votes
3answers
1k views

How do I skip a level with tikz-qtree?

I'm trying to draw a tree, but I can't get it to skip one level. This is my code. \documentclass[border=1cm]{standalone} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} [every tree ...
2
votes
1answer
73 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: ...
4
votes
1answer
172 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 ...
3
votes
1answer
993 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} ...
5
votes
1answer
296 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
82 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} ...
4
votes
2answers
458 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
138 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} ...
4
votes
2answers
295 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 ...
6
votes
3answers
337 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} ...
5
votes
2answers
144 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
356 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 ...
8
votes
2answers
527 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 ...
4
votes
3answers
585 views

Alter only one branch properties

I have a diagram in tikz-qtree like figure A, but I'd like something like figure B. Is it possible, to alter the properties of only one branch? (these figures were made with Dia and arrows are not ...
3
votes
2answers
361 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 ...
1
vote
1answer
214 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 ] ] ...
15
votes
2answers
2k views

macro for empty nodes in tikz-qtree

I'm trying to define a macro for writing empty nodes in a binary tree using tikz-qtree. Referring to the code below, I want the string \missing in my code to be replaced by \edge[draw=none]; {} as-is ...
1
vote
1answer
56 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
1k 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. ...