Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

include a tree diagram (qtree) in a figure environment

I have the following WME it works fine but when I uncomment out the lines to put it in a figure environment it will not compile. \documentclass{book} \usepackage{tkz-euclide} \usepackage{tikz-qtree} \...
Paul A's user avatar
  • 1,117
5 votes
3 answers
227 views

Drawing partial trees of different sizes side-by-side

There exists an elaborate thread about how to draw rooted trees in LaTeX, e.g. for use in natural language applications. There exist packages other than TikZ to do this, like qtree or forest. However, ...
Mew's user avatar
  • 843
1 vote
1 answer
108 views

How to draw a curve to indicate syntactic domain in the qtree?

How to draw a curved line in the qtree and add a description like the following picture? \Tree [.n,v,aP [.n,v,a ] [.$\sqrt{P}$ [.$\sqrt{\alpha}$ ] [.$\sqrt{\beta}$ ] ] ] Thanks!
user296028's user avatar
4 votes
2 answers
234 views

Argument splitting using low-level Expl3 syntax

Using egreg's answer here I tried to create my own advanced command with key=value-style optional argument splitting, which was successful. Now how can I integrate the splitting of the mandatory ...
Vincent Krebs's user avatar
4 votes
1 answer
617 views

Problems with Springer Nature Template and qtree

I have a problem regarding the package qtree in combination with the Springer Nature Template. Once I put my paper in this template, the trees appear in a weird shape: the nodes appear separated, the ...
crealp's user avatar
  • 97
1 vote
1 answer
132 views

How to change the color of a subtree in qtree?

I was wondering if there is a way to change the color of a subtree with qtree. I saw there is a post that you can do this in forest, but I don't know if there is a way to do it on qtree or tikz-qtree. ...
crealp's user avatar
  • 97
2 votes
1 answer
55 views

Can I 'decorate' a simple `qtree`?

I have the following code which represents a package qtree tree: \Tree[.${((q \to (\neg r)) \land (\neg(p\lor q)))}$ [.${(q \to (\neg r))}$ [.$q$ ] [.${(\neg r)}$ $r$ ...
Fco Javier Balón's user avatar
1 vote
1 answer
39 views

Ending a tree with \ldots

I am trying to draw a simple tree in Beamer using tikz-qtree. To signal that the a branch of the tree I am drawing continues to infinity, I want one of the last node to be \ldots. However, because the ...
Guilhem's user avatar
  • 11
3 votes
2 answers
346 views

Large tree fit to page

I'm trying to accomplish drawing a tree for a tic-tac-toe game. The output of the tree will be rather large, and I would like the page to auto scale the size of the tree as it grows with appropriate ...
Ziggy's user avatar
  • 416
0 votes
1 answer
225 views

Create a stemma codicum using qtree

I've realized the following stemma codicum using forest. However, I am trying to see if it is possible to recreate the same result using qtree. So far, I have managed to create the following code but ...
Andrea 's user avatar
  • 135
2 votes
2 answers
148 views

Alignment of text nodes placed above paths and other issues in tikz qtree

I'm trying to set up a template for rendering decision trees using tikz-qtree. Here's what I ended up with : \documentclass[border = 0.2cm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes, ...
Lucas's user avatar
  • 29
2 votes
1 answer
87 views

qtree not rendering left subtree

I am using the qtree package to try to render a tree. \Tree [.+ [.+ 1 [.+ 2 3 ] ] \qroof{\Tree [.+ [.+ 2 4 ] 6 ] \qquad \Tree [.+ [.+ 3 5 ] 7 ] }.A ] The code renders the following ...
user3893568's user avatar
0 votes
1 answer
115 views

Typing Brackets '[' ']' Within a Node in Tikz Q-Tree

I am trying to make a tree with Tikz Q-Tree wherein one of the nodes/the text shown needs to read: [+past]. However, brackets are used in the construction of the tree itself, so when I include them in ...
NLing's user avatar
  • 383
2 votes
2 answers
123 views

Aligning/Justifying a decision tree

I want to make a diagram that looks exactly like this one, without the red border. I am using the qtree package to get a similar result, but I get two problems. Firstly, I am unable to make a right-...
Asi Skarp's user avatar
3 votes
1 answer
78 views

How to draw Y type tree with qtree or tikz-qtree

Is it possible to draw unlabelled tree of the below type with qtree or tikz-qtree? Any suggestion..
Sandip Samanta's user avatar
2 votes
1 answer
86 views

How to arrange the tree diagram nice way to save space?

I want to arrange the tree diagram in a nice way to save space. Here is the latex code that corresponds to the diagram. Please help me. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
relinquere's user avatar
1 vote
1 answer
599 views

How to create trees with Qtree and math symbols

Hi I am trying to create a tree with two branches R<1 , R>1, which are labeled by math symbols (indices, \leq, ...). The second branch must be developed further. This almost works \...
florin's user avatar
  • 157
3 votes
1 answer
398 views

How do I create a prooftree with aligned indices for modal logic formulas?

This is my first question on TeX.SE. I need to typeset several dozen modal logic trees; unlike typical first-order trees these require an additional index to indicate worlds in the model. Here is a ...
poot's user avatar
  • 33
1 vote
2 answers
146 views

Reducing Size of Tikz-QTree [duplicate]

Only about half of the following tree shows up on my screen, but there is a tonnnnn of white space. Is there any way for me to reduce this and change the length of some of the lines in order for it to ...
NLing's user avatar
  • 383
0 votes
0 answers
208 views

Draw a tree-graph in Latex with Tikz or qtree

Is it possible to draw tree-graphs like the image below in LaTeX? I just need an idea of ​​how to write the first two levels of the tree. I believe that from there I can continue... thanks!!!!!
daniel robledo's user avatar
2 votes
0 answers
50 views

Defining a macro for nodes in a qtree

I'm using the qtree package to make linguistic c-structure trees. Consider the following simple tree: generated by the following code: \documentclass{article} \usepackage{qtree} % shorthands for ...
flipjacob's user avatar
0 votes
0 answers
35 views

Connecting two nodes in a Tree [duplicate]

I'm trying to make a simple line connecting the same node. I'm using a simple qtree package. Here is what I have so far. \Tree [.\textit{sign} [.\textit{syn-sign} \textit{phrase} ] [.\textit{lex-sign}...
JJDoom's user avatar
  • 1
0 votes
1 answer
103 views

Changing the distance between nodes in a tree

I have used the qtree package to write the following tree: \Tree[.F [.F[0] [.F[0][0] {[x, y, z]} ] [.F[0][1] {[x, y, z]} ] {\ldots} ...
evamen's user avatar
  • 13
0 votes
1 answer
146 views

How can I fix the tree chart that goes off page in LaTeX

\documentclass[12pt, letterpaper]{article} \usepackage{qtree} \pagestyle{fancy} \begin{document} \paragraph{Question 6} \Tree[.Ad [.\text{Sees Ad} [.\text{Doesn't Try} ][.\text{...
İlker Çirkin's user avatar
1 vote
2 answers
154 views

Captioning `qtree` trees

I want to have two trees aligned side by side within a footnote, both captioned and labeled. The following reports an error and produces misalignment. \documentclass{article} \usepackage[utf8]{...
bozidarka's user avatar
  • 960
0 votes
1 answer
162 views

Trying to add labels/descriptions to syntax trees in qtree

I'm trying to add descriptions to certain nodes in a Syntax tree. I'm using qtree, but I can't seem to find a way to do this. I'm also trying to box some, but not all of the nodes in the tree. Here's ...
sebastian05's user avatar
0 votes
2 answers
230 views

Drawing Multinomial Processing Trees

I am extremely beginner at LaTeX and I want to draw a tree like the one in the picture. I previously draw trees using qtree but I never did a tree like this. I know I need to provide my own code a ...
Utku Türk's user avatar
0 votes
1 answer
137 views

Arrow with text in Qtree or tikz-qtree?

I'm using qtree and I'm having problems making the arrow with the text as in the image below Thanks ahead
Sam's user avatar
  • 1
0 votes
1 answer
315 views

How to build syntactic tree with line crossing from one phrase to another

I need to build a line from VP to PP but the order does not allow me this. I have: \Tree [.S [.VP [\qroof{\textit{dūka dīd-a}}.NP ] [.V \textit{mšūy-ā-} ] ] [.NP [.ProN \textit{-la} ] ] [.VP [.V' ] [....
Mark Rozenkrants's user avatar
0 votes
1 answer
211 views

tikz-qtree and linguex

I am using tikz-qtree and I don't seem to able to use it properly with linguex. % !TEX TS-program = xelatex \documentclass[11pt,a4paper,twoside,openright]{book} \usepackage{linguex} \usepackage{...
RobertP.'s user avatar
  • 741
5 votes
2 answers
564 views

Tree in Diagram not centered

while the diagram seems to be centered (as seen by the caption), the tree inside is not. The narrower the tree, the farther to the right it is positioned. Any thoughts? Here's my code \...
tpei's user avatar
  • 153
0 votes
1 answer
745 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,...
chelsea's user avatar
  • 235
4 votes
2 answers
2k 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 ] ] ...
user6308605's user avatar
3 votes
2 answers
265 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 ...
Scharl's user avatar
  • 33
4 votes
3 answers
1k 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 ...
Ricardo 's user avatar
4 votes
4 answers
291 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 ...
Ricardo 's user avatar
3 votes
1 answer
90 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: \...
user125234's user avatar
2 votes
2 answers
927 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 ...
Andrea Gagna's user avatar
1 vote
1 answer
439 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 ...
Feyza Nalbant's user avatar
2 votes
2 answers
103 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 ...
Jim Newton's user avatar
1 vote
0 answers
85 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?
Soumya's user avatar
  • 11
3 votes
1 answer
213 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{...
Jim Newton's user avatar
1 vote
1 answer
48 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{...
user855443's user avatar
  • 1,120
2 votes
1 answer
2k 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 (...
Zouba's user avatar
  • 153
2 votes
1 answer
75 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 ...
user2299502's user avatar
2 votes
2 answers
860 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 ...
user2299502's user avatar
0 votes
1 answer
472 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 ...
asdf's user avatar
  • 543
2 votes
1 answer
288 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 \...
user avatar
0 votes
0 answers
152 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 ...
Ian Fako's user avatar
  • 169
2 votes
1 answer
936 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-...
daniela's user avatar
  • 81