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.

learn more… | top users | synonyms

1
vote
0answers
98 views

How to draw phylogenetic tree?

I'm using Mac OSX Mavericks and have downloaded LaTex. I am currently learning how to draw phylogenetic tree. Can someone teach me? I have copied a sample of code for the phylogenetic tree. it uses ...
2
votes
1answer
52 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 ...
5
votes
1answer
182 views

Tree with six or more children

I'm using qtree and a tree with five children works perfectly: \documentclass{standalone} \usepackage{qtree} \begin{document} \Tree[.n 1 2 3 4 5 ] \end{document} But when I add another node: ...
1
vote
2answers
97 views

tikz-qtree: Beginners Problems

Hello im not a Linguist and have some trouble with trees. \begin{tikzpicture}[grow'=up] \Tree [.a [.b [.c [.d e]] [.f g] ...
2
votes
1answer
120 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> | ...
4
votes
1answer
118 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
106 views

store duplicated qtree subtrees for convenience

I am making a tree that reflects a number of different sequential choices. The lower parts of the tree will be repeated, so I'd like to store them in some shorter definition earlier on to make it ...
9
votes
2answers
2k 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 ...
8
votes
2answers
189 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 ...
0
votes
2answers
141 views

Fit qtree into a A4 page

I have a pretty complicated qtree. \Tree [.expr while [.expr not [.expr ( [.expr [.ID a ] <- ...
3
votes
1answer
108 views

How to align an equation horizontally in qtree, centering one character of my equation?

I have the following code for my qtree: \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter \usepackage{qtree} \makeatother \usepackage{babel} ...
4
votes
1answer
161 views

Drawing tree in text (like inline math)

Is there a way to draw (with tikz/tikz-qtree) a tree directly in the text, like the inline math command? For a small tree with 2 or 3 nodes? Thanks!
5
votes
1answer
202 views

Linguex errors: “missing $ or } inserted” errors with qtree and glossed examples

this is my first question and I'm quite new to this. I have started using the linguex package and it works with all my examples except those including trees (drawn using qtree) or those with glosses. ...
7
votes
1answer
319 views

How to align parent nodes to the left/top in a tree

I am drawing trees in LATEX. The qtree library seems to be what I need but the parent is always placed in the center of its children like this: parent / \ child_1 child_2 (I'm a new ...
8
votes
1answer
1k views

Multi-rooted Tree-like Structures and Nodes with Multiple Parents in LaTeX

The qtree package seems to facilitate the drawing of simple trees only. Is there a way to incorporate: Multiple roots & Nodes with multiple parents in a tree in LaTeX?
1
vote
1answer
115 views

Tree with more levels

I'm working with the package qtree and I'd loved to make more levels. My code is: \begin{frame}[t]{\secname} \Tree [.{L} [.{L1} {\textit{Lag}: \\ ${\textstyle x=y$ \\ \small{C}} ] ...
5
votes
2answers
121 views

How can I use the same parameter for \Tree and \exi

The qtree package permits drawing syntactic trees with a syntax like this: \ex. \Tree [.S [.NP This ] [.VP [.V is ] [.NP an example ]]] The linguex package typesets bracketed expressions with a ...
0
votes
1answer
379 views

Is it possible to draw resolution proof tree in beamer

How to draw a resolution tree such as the example here
2
votes
2answers
349 views

How to position qtrees

Suppose, I have 2 qtrees, that I want to put below each other: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree,tikz-qtree-compat} \usetikzlibrary{positioning} \begin{document} ...
2
votes
1answer
509 views

How do I add a caption to a diagram generated with qtree?

I have a diagram that I created with qtree, but would like to add a caption to it. How can this be done?
4
votes
2answers
500 views

Restoring qtree spacing in tikz-qtree

Is it somehow possible to achieve the same node spacing in tikz-qtree as in the original qtree package? Compare the two: qtree: tikz-qtree: The spacing between nodes in one level should be the ...
2
votes
1answer
141 views

Why aren't qtrees aligned horizontally if they are at the end of a theorem with qed symbol enabled?

\documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage{qtree} \declaretheorem[name=Example,qed=\ensuremath{\triangleleft}]{example} ...
3
votes
1answer
112 views

qtree items do not have the same baseline

I drew a tree with the qtree package. However, this tree has no consistent baseline. Screenshot: MWE: \documentclass{scrreprt} \usepackage{qtree} \begin{document} \Tree[.table ...
14
votes
1answer
435 views

Is it possible to emulate qtree with forest?

This question was actually asked by Alan Munn in a comment to How do I create a LCM tree diagram?. I repeat (and self-answer) it here because the answer is too long to fit the margin :-) qtree is a ...
7
votes
1answer
202 views

Is it possible to use {tikz-qtree} along with {qtree}?

I've already drawn too many trees with qtree, but I've discovered that I'll need tree-dvips to draw movements, and this package is incompatible with pdf. I saw that it's quite simple to draw syntactic ...
2
votes
0answers
2k views

How can I install the qtree package? [closed]

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 ...
2
votes
1answer
76 views

xepersian and qtree incompatibility?

I am a linguist and want to display trees. I tried the the following code. \documentclass{article} \usepackage{xepersian} \usepackage{qtree} \begin{document} \begin{latin} gshjgsdjgsad ...
4
votes
2answers
446 views

Aligned columns in qtree?

I am currently taking a sentential logic class and we've just begun the chapter on truth-trees, so I've been looking into how to generate truth-trees with the qtree package. I think I've been able to ...
5
votes
1answer
366 views

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 ...
6
votes
1answer
826 views

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.
7
votes
2answers
870 views

Making node's fonts larger when using the qtree package

I'm using the qtree package in LaTeX, but the tree nodes have very small text. I'm also using \scalebox to scale down the tree since it does not fit in the page. Is there a way to increase the size ...
1
vote
1answer
928 views

Trying to Install qtree

I copied the qtree.sty file to my /usr/share/texmf-texlive/tex/latex directory (pretty much everywhere there, in graphics/ , base/ even in qtree/) but when I run Lyx and insert the following command ...
3
votes
1answer
541 views

Graph-like structures with Qtree

The Qtree package is "a LaTeX package for drawing tree diagrams." Is it possible to draw simple graph-like diagrams with it, similar to the one depicted below? If not, should I resort to TikZ-qtree? ...