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.

The qtree package consists of QobiTree, a package of tree-drawing macros written by Jeff Siskind, and a front end that allows trees to be specified in bracket notation, using whitespace to separate tokens. Tree nodes can have labels of any size or complexity, and are automatically arranged on the page, usually with quite good results. Provisions exist for fine-tuning the default layout. The front end also centers trees (by default) and provides some other nice features.

118 questions
7
votes
1 answer

How do I draw a tree upside down in qtree?

How do I draw a tree upside down in qtree? So root at the bottom and leaves at the top.
Zi Wang
  • 73
  • 1
  • 4
5
votes
0 answers

How can I install the qtree package?

I want to draw trees in my document. After downloading the qtree.sty file and place it input the working folder, but when I add this: \usepackage{qtree}, LaTeX still complaint: ! LaTeX Error: File `pict2e.sty' not found. But I do not know where to…
5
votes
1 answer

qtree: missing { inserted

\documentclass{standalone} \usepackage{qtree} \begin{document} \Tree [.A [.B [.D a] a [.E b]] [.C [.D c] b [.D c]] [.B [.D b]] ] \end{document} Trying to…
Ilonpilaaja
  • 1,335
3
votes
1 answer

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{qtree} \begin{document} \[ \neg x_1 \wedge \neg x_2…
2
votes
1 answer

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 image. Note that the left ([.+ 1 [.+ 2 3 ] ])…
2
votes
1 answer

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 this works great. (The usual "banana" example…
MJ Galram
  • 275
  • 2
  • 7
1
vote
1 answer

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 other node at the same level is made of text,…
Guilhem
  • 11
1
vote
1 answer

no output from qtree

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{document} text - this works: \Tree [.DP my pony…
user855443
  • 1,120
1
vote
2 answers

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'} ] ] ... \end{document} This is what the output looks…
poxx
  • 329
1
vote
2 answers

Fit qtree into a A4 page

I have a pretty complicated qtree. \Tree [.expr while [.expr not [.expr ( [.expr [.ID a ] <- [.expr [.ID z ] <- [.expr 0 ] ] ] ) ] ].expr …
0
votes
1 answer

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{Tries} [.\text{Doesn't…