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

learn more… | top users | synonyms

1
vote
2answers
36 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} ...
5
votes
2answers
124 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} ...
2
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
490 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
335 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
797 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
53 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
135 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 ...
2
votes
1answer
80 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
58 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
49 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
148 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
67 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} ...
1
vote
0answers
76 views

TikZ align nodes with different heights

iam trying to make a treeview 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 look ...
10
votes
4answers
444 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
votes
1answer
67 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 ...
3
votes
2answers
106 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
146 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
96 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
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} ...
11
votes
2answers
109 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
235 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
478 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
183 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
83 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
38 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
301 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. ...
5
votes
2answers
164 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
149 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
249 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
113 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
77 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
75 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
80 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
126 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
136 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 ...
6
votes
2answers
3k views

I'm getting the error: ! Paragraph ended before \@@label was complete

I've scoured this forum and it looks to me like I'm setting up the tree correctly, but I'm still getting this error, I have \usepackage{tikz} \usepackage{tikz-qtree} in the header. Here is the ...
1
vote
3answers
191 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
5answers
236 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 Or ...
5
votes
1answer
280 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
311 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
119 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, ...
8
votes
2answers
911 views

More efficient way to draw movement arrow to roof in tikz-qtree

When drawing syntactic representations in linguistics, one often uses a triangle to represent a unit whose internal structure is irrelevant. This can be accomplished with the tikz-qtree command ...
7
votes
1answer
166 views

** ERROR ** DVI stack exceeded limit. with tikz-qtrees in xelatex

I've got a snippet of tikz-qtree which causes ** ERROR ** DVI stack exceeded limit. when compiling with xelatex, but works fine with pdflatex. But I need xelatex because I've got a lot of unicode ...
6
votes
1answer
163 views

aligning several trees to the baseline

I want to have the following trees aligned to the baseline. There is a problem which is probably due to the "g" in some of the trees. How do I get these trees aligned? I tried \strut, but this somehow ...
2
votes
1answer
196 views

problem with tikz-qtree

When I type set this example, I get I, love, my , country as four different nodes. I know I am not able to get a syntax for enclosing MULTIPLE words together for tikz-qtree. I tried to look ...
5
votes
1answer
160 views

Arrow disappearing

For some reason the arrow between S/V/NP and V'V is not drawn. I have no idea why ... \documentclass{article} \usepackage{tikz-qtree} \tikzset{every roof node/.append style={inner sep=0.1pt,text ...
1
vote
1answer
429 views

Vertical distance in tikz-qtree nodes

I have put together a language tree using the following code (MWE): \documentclass[b5paper,11pt,twoside,one column,openright,draft]{memoir} \usepackage{rotating} \usepackage{tikz-qtree} ...