Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qtree]

a package offering support for drawing tree diagrams, and is especially suitable for linguistics use. It allows trees to be specified in a simple bracket notation, automatically calculates branch sizes, and supports both DVI/PostScript and PDF output by use of pict2e facilities.

0
votes
1answer
17 views

How do I put labels on this tree?

I want to put labels on this tree as shown in square brackets. I have a working code which generates this tree. \usepackage{tikz-qtree} \tikzset{every tree node/.style={minimum width=2em,draw,...
2
votes
2answers
41 views

Double line edge using TikZ

How do I draw such tree like this where the some of the edges are double lines using TikZ or any other package? Here is the code: \Tree [.root [.a (i want here to have double edge line)b [.b c ] ] ...
4
votes
2answers
74 views

Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)

I'm new here and I only recently started to use LaTeX. This is what I'm trying to achieve: Notice the vertical lines and the oblique lines. Vertical lines represent headedness. This is what I'm ...
0
votes
0answers
56 views

When I add tikz package, I get Too many }'s. \end{figure} error

I really need help. I am writing my thesis now. The coding that I'm writing now looks like below: \documentclass[oneside,12pt,a4paper]{book} \usepackage{UTMThesis, enumerate, amsfonts, amsmath, ...
4
votes
3answers
335 views

Draw triangle with text in vertices/edges

I'm trying to reproduce the following: I tried to use tikzpicture and made something "by hand" (even knowing that that wasn't the better way), but I was not able to find a way to have the exactly ...
4
votes
4answers
86 views

Crossing branches in tikz-qtree

I'm translating a manual of syntax and they have some examples of non-valid structures. The first one I was able to reproduce, but not the second. This is what I'm trying to reproduce: My current ...
3
votes
1answer
29 views

Is there a way to remove extra space when using qtree?

Is there a way to remove the extra space in the example below? (That is, to make the square brackets smaller but in such a way that the whole tree still falls within the brackets) Here is the code: \...
2
votes
2answers
206 views

Simple trees for mathematics

I have to draw many simple trees similar to the ones depicted for instance at page 128 or 133 of this beautiful book by Cheng and Lauda. I used to have some knowledge of the package forest, but ...
1
vote
1answer
98 views

!\qsetw command compulsory in complex LF trees?

I've been working with a Latex tutorial by a semanticist and I have been really struggling with the code for this LF representation (using qtree). I studied the example code for a complex tree super ...
2
votes
2answers
59 views

visually distinguish right and left children

I'm using the qtree package to render small inline trees in my document. The tree nodes in my case are limited to 0 or 2 child nodes. I'd like to visually distinguish the right and left branches ...
1
vote
0answers
45 views

Capacity exceeded error while using tikz package

Whenever I'm using tikz package as shown below it is showing that "!Tex capacity exceeded. What to do?
3
votes
1answer
62 views

why do I have a Missing $ inserted error in this document

Can someone help me understand this error message and how to fix it? I don't understand why it thinks it needs to insert a $. The error message is given below. \documentclass{article} \usepackage{...
1
vote
1answer
29 views

no output from qtree [duplicate]

My first experiment with qtree puzzled me: why is the first tree output (it is copied from the manual) and the second not? \documentclass[msmallroyalvopaper ]{memoir} \usepackage{qtree} \begin{...
1
vote
1answer
220 views

trees dashed lines

I would like reproduce the following tree in a mathematical text. But for copyright reasons, I cannot use includegraphics{} and I must draw this figure in latex. What do you advise me ? What is the (...
3
votes
1answer
50 views

How do I make a straight skeleton with qtree?

I have the following tree: \documentclass{article} \usepackage{qtree} \begin{document} \Tree [.A [.a ] [.B [.A ] [.a ] ] ] \end{document} and I would like the A -> B -> A skeleton to be a ...
1
vote
2answers
215 views

How do I connect two trees with qtree?

I would like to take the following code that I created and do something along the lines in http://alpage.inria.fr/~clerger/tutorial/tag_example.png for the middle two trees where dotted lines are ...
0
votes
1answer
108 views

Beautifying binary tree in qtree

I'm using qtree to draw beutiful trees. Except that my tree is not compact and beautiful as expected. More specifically, I would expect the nodes at the same depth to be at the same level. Of course ...
2
votes
1answer
90 views

Hashtag label with tikzpicture

I'm trying to compile the tree below and its working. The problem is that whenever I change the label of DP or LP to \#P (i.e. \node(\#P) {\#P}; \#), I get the following error message: ! Missing \...
0
votes
0answers
64 views

LaTeX beamer create Tries and PATRICIA Trees [duplicate]

Already checked this post to see how to draw a simple tree in LaTeX, however, I would like to generate Tries with LaTeX and since those kind of trees have the keys on their edges instead of in the ...
2
votes
1answer
285 views

How do I make the arrows on qtrees and imported images compatible with the same compiler?

The problem is that the images I have imported in the document will not compile ('no bounding box' error message comes out next to the image command) when I make the arrows on qtree by using [tree-...
1
vote
1answer
107 views

How do you change the number of the glossed example in linguex?

I minimally use the following packages: \documentclass[8pt]{article} \usepackage{qtree} \usepackage{linguex} \begin{document} \begin{enumerate} \qtreecenterfalse \item [(2)]\Tree [.BeP \phantom{DP} [...
1
vote
0answers
51 views

parcolumns and qtree

I need to create two columns with different widths. I am trying to use the parcolumns package, but I can't make it work properly. Here is the code and the result: \documentclass[12pt]{amsart} \...
2
votes
2answers
171 views

Edge-less leaf (terminal nodes) in qtree/tikz-qtree

I am taking a Syntax course currently and I would like my homework to conform to my professor's convention of leaving out edges between each token and its category label (as he says that edges ...
2
votes
0answers
65 views

Grouping trees and graphs with nodes

I would like to draw a tree as in the picture: Could you help me please? What I have so far: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{tikz} \...
0
votes
1answer
229 views

Building taxonomies in Latex

I need to draw the following structure in Latex: Information systems Data management systems Database design Relational DB Graph-based DB ...
1
vote
2answers
135 views

Boxing labels across branches in LaTeX trees

I have inserted a tree diagram in a LaTeX document which I have drawn using the qtree package: ... \usepackage[noload]{qtree} ... \begin{document} ... \Tree [.{A} [.{B} {C} {D} ] [.{B'} {D'} ] ] ... \...
3
votes
2answers
225 views

How to create board game search tree?

How can I create a visualization for the search tree in a game where I don't want to see only the nodes, but the board configuration at each step? Any code help for this image for example would be ...
-1
votes
1answer
662 views

How can i build the tree diagram? [closed]

I want as in the picture
4
votes
1answer
532 views

How to conveniently draw a background rectangle for each node over all its children in tikz trees?

I have drawn a tree using tikz-qtree and want to draw a background rectangle for each node over its (direct) children. Now I use \node when drawing the tree and then manually add the background ...
2
votes
2answers
396 views

Forest for linguistics - proportional alignment like in qtree

I'm new to forest. Is there a style (or a modification of what's below) which produces the alignment of empty terminal nodes F3 and F4 in Tree A just like in Tree B? \documentclass{standalone} \...
4
votes
2answers
1k views

qtree and tikz-qtree

I need to use tikz-qtree instead of qtree, but I noticed that trees are annoyingly uneven. Compare the following tree created with tikz-qtree: % !TEX TS-program = latex \documentclass[11pt]{article} \...
0
votes
1answer
112 views

Is it possible to use adjustbox and qtree in the same document?

Using the packages adjustbox and qtree simultaneously causes the error: Package graphics Error: Division by 0. \includegraphics[width=0.3\textwidth]{myimage.bmp} Minimal working example: \...
0
votes
1answer
525 views

Which is the best package for drawing rooted trees and how do you use it? [closed]

Which package is easy to use: forest, qtree or some other package, for drawing rooted trees like in the picture below? (I need to be able to draw the trees, draw trees with cuts, use the trees in ...
4
votes
2answers
228 views

How to set the fontsize in a Qtree script?

I'm looking for a way to make the main font bigger than the default size (just biiiiig all the way). I'm a total LateX noob and already tried and failed anything I found online. (e.g. the posts ...
3
votes
1answer
296 views

Most of the tree disappears when it's too big

I'm trying to draw suffix trees in latex for a report. Since I'm programming trees I just print them in qtree format from my code so that I don't have to bother making them manually. For small trees ...
5
votes
2answers
777 views

Resizing qtree to fit pagewidth

I'm trying to learn qtree but I still couldn't figure out how to resize to fit the page width. I would like to avoid cutting the tree. Here is my MWE: \documentclass[a4paper]{article} \usepackage[...
2
votes
1answer
278 views

Making tree diagram fit multiple per row

I have the following code: \documentclass[10pt]{article} \usepackage{fullpage,amsmath,amssymb,amsfonts,nicefrac, amsthm,calc} \usepackage{caption} \usepackage{listings} \usepackage{qtree} \begin{...
4
votes
1answer
237 views

qtree - reduce spacing between lines in multiline node label with avm

I'm trying to build a syntax tree in qtree, which has AVMs with their category above as nodes. The way I tried to do this is by using a multiline node label, with the category on the first line and ...
2
votes
2answers
70 views

Custom Commands behaving oddly in qtree Tree

Why are the two trees different? \documentclass[tikz,12pt,letterpaper]{article} \usepackage{qtree} \newcommand{\en}{\phantom{1}} \begin{document} Using phantom: \Tree[.50 [.25 [.12 \phantom{1} ...
3
votes
1answer
2k views

How can I reproduce this simple tree diagram?

I would like to create this simple tree diagram in LYX. I tried using forest but I did not figure out how to add text to the different levels and display percentages.
0
votes
0answers
209 views

qtree and booklet packages

I am using the booklet package, and I would like to draw syntactic trees with the qtree package. However it seems the two packages are in conflict: just by stating the qtree package cut the whole page ...
-1
votes
2answers
421 views

How can I reproduce this tree diagram?

I want to reproduce the tree diagram shown below. My major problem is how to put text (Yes/No/Exposure...) next to the lines.
5
votes
3answers
340 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 ...
2
votes
1answer
967 views

“\Tree” doesn't work even with qtree package

ERROR: Undefined control sequence. --- TeX said --- l.59 \Tree [.SD [.D El][.SN [.N gato][.SP [.P con][.SN [.N botas]]]]] --- HELP --- TeX encountered an unknown command name. You probably ...
2
votes
1answer
1k 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
2answers
551 views

beamer - uncovering parts of qtree syntax tree

I am using qtree to draw syntax trees in beamer (in the presence of xeCJK for Chinese language support, though I don't think that affects this question). I am able to reveal different levels of the ...
2
votes
2answers
2k 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.
4
votes
1answer
214 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 ...
2
votes
1answer
148 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
2answers
716 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 ...