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

learn more… | top users | synonyms

1
vote
0answers
37 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
60 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
120 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
76 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
75 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
23 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} ...
10
votes
2answers
81 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
148 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
165 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
58 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
31 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
234 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
150 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
115 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
204 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
99 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 ...
3
votes
1answer
67 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, ...
1
vote
2answers
64 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
65 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
103 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
108 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
140 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
232 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
188 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
101 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
77 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
88 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
149 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, ...
2
votes
2answers
112 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
127 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
309 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
345 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?
3
votes
1answer
70 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
668 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 ...
9
votes
3answers
457 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
175 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> | ...
2
votes
2answers
326 views

Straight and non-straight parent-child connections in tikz-qtree

I want to acheive something of this sort, (without the bounding boxes): Here, the first child has a straight line from the parent, and the following ones are diagonal. What tikzset settings will ...
2
votes
2answers
202 views

Centering vertically inside a block with figures

I want to center vertically different height figures inside the block they reside in. I use the 'tikz-qtree' for the trees, and I want the '5' tree and the right arrow aligned vertically. ...
5
votes
5answers
216 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 ...
3
votes
1answer
348 views

Align leaves of a tree

I have the following tree in which the left-most leave is out of sync: \documentclass{minimal} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{level 1+/.style={level ...
4
votes
1answer
141 views

Vertical left branch in qtree

Let's consider a really simple tree like the following : \documentclass[12pt]{beamer} \usepackage{qtree, tikz-qtree, tikz} \begin{document} \begin{frame}{Title} \begin{tikzpicture} \Tree [.XP ...
6
votes
3answers
262 views

reducing white space below tikz-qtree tree

I am including syntactic trees in my dissertation. Below each tree there is a tremendous amount of white space, which will cause the university's editorial office to scream and howl and moan, then ...
3
votes
1answer
104 views

Having nodes at the baseline and in mid-air with tikz-qtree

I want to draw the following tree: What I have so far is the following, but this code puts all nodes onto the baseline. I would like to keep T° and Foc° up. Is there a way to achieve this? ...
6
votes
1answer
158 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 ...
3
votes
1answer
307 views

Drawing arrows to nodes in trees

I try to draw rhe following three figures. The left is just a sequence of symbols NP V NP AP, the middle one is a unary branching tree and the right one is a binary brancing tree. I want to place a V ...
9
votes
2answers
4k views

How can I produce this tree diagram in LaTeX?

I want to create the tree diagram shown below in TeX code (with the Level 1... level 3 by the side of the tree diagram). Also, I would like to know how to just put bullet points under a box. For ...
10
votes
4answers
392 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 ...
2
votes
1answer
184 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 ...
4
votes
2answers
239 views

Progressive tikz picture in beamer

I have the following slide in my beamer presentation : \documentclass[11pt]{beamer} \usepackage{ulem} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \usetikzlibrary{positioning} ...
1
vote
1answer
109 views

How to Create an un-ordered tree in LaTeX?

Is there a way to create a tree in LaTeX without using any "ordering" ? So far, all the examples I came across are structured in this way child{ node [arn_n] {20} child{ ...