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

learn more… | top users | synonyms

1
vote
1answer
64 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
46 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
48 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 ...
5
votes
3answers
55 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
46 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
232 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
55 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
120 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
139 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 ...
4
votes
1answer
69 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
52 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
171 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
71 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
83 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 ...
-1
votes
1answer
68 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
156 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} ...
3
votes
2answers
118 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
102 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
120 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
192 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
251 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
90 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
39 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
327 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
168 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
157 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
263 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
117 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
84 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
77 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
86 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
129 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
145 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
214 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
297 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
360 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
125 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
89 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 ...
3
votes
1answer
100 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 ...
5
votes
1answer
213 views

tikz-qtree does not work with node

I am trying to create a tree using the tikz-qtree package. But I keep getting the following error. ! Paragraph ended before \@@@@litlabel was complete. Here is my tex-file: \documentclass[a4paper, ...
3
votes
2answers
123 views

How to elongate the branches attached to one specific node?

I'd like to make longer only two immediate branches attached to the VP node (red ones in the picture) without altering the height of the other branches above and below. Any idea? Thanks! ...
2
votes
1answer
144 views

gb4e item numbers with tikz-qtree trees

I am using gb4e for numbered examples in my dissertation, since most of my examples are interlinear glosses. I am also including syntax trees, using tikz-qtree. One problem, though, is how to keep ...
4
votes
1answer
382 views

How to change the color of subtrees in tikz-qtree?

Is there an elegant way to color subtrees in tikz-qtree, without going through each of the respective nodes and edges by hand? The following code example shows the ugly way: ...
6
votes
2answers
385 views

How to add text around/below a node using tikz-qtree?

I read many examples in tikz-qtree, but I didn't find one which illustrates how to add text around/below a node using qtree. Anyone knows how to draw the following tree using tikz-qtree?
4
votes
1answer
74 views

qtree with fullstop

I want to draw a constituent tree for a sentence ending with a full stop, but this gives errors in qtree. This is the example without a full stop. Now I want to add a full stop to the end, which is ...
7
votes
1answer
706 views

tikz complex mindmap of all disciplines and subdisciplines of knowledge

just started using LaTex yesterday and I am stuck on my very ambitious diagram of all disciplines of knowledge. Problems (some simple, some probably more complicated): change the page size to even ...
10
votes
4answers
493 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!
2
votes
1answer
192 views

Regular Expression AST with forest or qtree

I would like to represent an abstract syntax tree over a regular expression. Preferable in the form of the following tree: <regexp> | ...