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 [tikz-qtree]

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

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,...
5
votes
2answers
155 views

Derivation tree not rendering

I'm trying to draw a derivation tree for a simple grammar using tikz-qtree. Here is my current code: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,calc} \usepackage{...
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
40 views

Tree inside a world in modal logic

I want to draw a tree inside a world that is also in a diagram of modal logic. Here are the packages I use: \documentclass[article, 11pt]{memoir} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc}...
4
votes
3answers
337 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
87 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
163 views

Drawing movement arrows and roofs with tikz-qtree

I'm trying to draw movement arrows in the following tree (it works with the \qtree package) : \Tree [.CP [\qroof{which book on syntax}.DP ] [.C' [.C will ] [.TP [\qroof{The students}.DP ] [.T' [.<...
5
votes
1answer
122 views

TikZ Qtree subcaptions

I'm using the TikZ Qtree package for making syntactic tree diagrams. Am wondering how to add subcaptions for individual node labels, such as shown in attached photo, as well as formating them (...
3
votes
1answer
60 views

Why does the node style newcommand not work in tikz-qtree?

To reuse the labeled node style in tikz-qtree, I have defined \newcommand{\lnode}[3]{\node [label = {#1} : {$#2$}] {#3};}. However, \lnode does not work as in \Tree [.\lnode{above}{[1,5]}{$x$} .... ...
3
votes
1answer
47 views

How to connect to the north anchors of triangular (leaf) nodes in tikz-qtree?

How to make the edges from x (resp. y) to connect to the north anchors of the triangular leaf nodes A and B (resp. C)? Note that this should not change the edge style between x and y. Therefore, the ...
1
vote
0answers
67 views

tikz-qtree: adjust sibling distance for only one part of a tree

Is it possible to adjust sibling distance for only one part of a tree using tikz? For instance, if I want to make 6 and 7 farther apart in the following, but leave 3 and 4 alone, is there a way to do ...
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?
1
vote
0answers
44 views

Affecting left edges and right edges separately in a binary tree via tikz-qtree

I want to use tikz-qtree to make a binary tree where left edges are red and labelled 0 while right edges are black and labelled 1. The following is the way I am currently doing it: \documentclass{...
3
votes
2answers
85 views

tikz-qtree cannot display part of child nodes

When I was creating a large tree using tikz-qtree, I found that part of child nodes cannot be displayed. Here is my code: \documentclass{article} \usepackage[active,tightpage]{preview} \...
12
votes
3answers
1k views

How to draw a tree diagram with 90º degrees branches

I'm trying to replicate the following tree in LaTeX: I'm having problems, because (1) I never drew a tree diagram with 90º degrees branches, like this, and (2) I never drew a tree diagram together ...
2
votes
1answer
68 views

Aligning gb4e examples with tikz-qtree

I would like to fit multiple tree structures onto one and the same page (preferably next to each other), while also numbering them with gb4e so I can refer to them later on. Although this seems to ...
1
vote
1answer
223 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 (...
4
votes
2answers
68 views

fit and/or backgrounds does not work as expected in tikz-qtree

I am drawing a tree using tikz-qtree and want to draw backgrounds for two groups of nodes: the left group consisting of l, l1, l2 and the right group consisting of r, rl, l3, l4, l5. However, as shown ...
2
votes
1answer
53 views

Tikz-qtree tree edges that split

I have the following qtree, and cannot figure out why the edges to the leaves start as a single edge then split into two. I am trying to make a binary tree with all the leaves aligned to the bottom, ...
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 ...
4
votes
1answer
115 views

Tikz-qtree: How to make \edge[roof] width narrower?

Is there a (relatively) simple way to make the width of \edge[roof] narrower when using tikz-qtree? For comparison, I'd like to make it fit closer to the text, like pst-jtree's vartri. Here's a ...
2
votes
1answer
37 views

Force horizontal alignment of nodes to not be affected by lower levels in tikz qtree

I'm trying to create a large hierarchy and have encountered the following problem: Since some of the labels are quite wide, they make nodes in upper levels move out of the way. This means that the ...
4
votes
3answers
251 views

Align levels in a tree using tikz-qtree

I'd like all levels in my tree diagram to be aligned vertically. The problem is that some branches 'skip' a level. Specifically, all x's and all C's should be next to each other (the rest is fine as ...
2
votes
2answers
272 views

How to make circles in qtree tikz (specifically root)

I am trying to make trees with tikz-qtree. I want every node that "splits" to be a black circle, specifically I want the root to be one. I don't find how am I able to do that. \documentclass[a4paper, ...
2
votes
1answer
250 views

“Emergency Stop” when building simple qtree [duplicate]

Latex fails building the following code with error "Emergency stop." \documentclass{article} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \Tree [.a [.b ...
0
votes
1answer
116 views

Straight diagonal rule by using Tikz and Tree diagrams [duplicate]

My code are follows: \documentclass[10pt]{book} \usepackage[T1]{fontenc} \usepackage{newtxmath,newtxtext} \usepackage{linguex}% \usepackage{tikz}% \usetikzlibrary{decorations.text,calc,arrows.meta}% \...
3
votes
1answer
82 views

How to specify branch positions in tikz-qtree?

Using tikz-qtree, both branches are from 'S.south' (left figure). How to specify these branch positions manually (or automatically) as in the right figure? \documentclass{standalone} \...
4
votes
1answer
167 views

Help in Tree diagram using Tikz package

My requirement is as follow: I've achieved this by using the below tag: \documentclass[10pt]{book} \usepackage[T1]{fontenc} \usepackage{times} \usepackage{linguex}% \usepackage{tikz}% \...
2
votes
1answer
130 views

single-line strikethrough in tikz syntactic tree

Minimally, I have the following code: \documentclass[8pt]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \begin{document} \ex. \begin{tikzpicture}[baseline] \Tree[.CP Op$_c$ [.C' [....
1
vote
0answers
44 views

Error using Tikz and Tikz-qtree with Acrobat Distiller

My tag follows: \documentclass{book} \usepackage{linguex}% \usepackage{tikz}% \usetikzlibrary{decorations.text,calc,arrows.meta}% \usepackage{tikz-qtree}% \usepackage{adjustbox}%% \usepackage{...
3
votes
1answer
89 views

How to combine bottom-aligned and up-aligned trees?

I have a sentence with two possible meanings - so, two possible syntactic trees. I read the documentation of tikz-qtree and learned how to do upside-down trees. but I can't find a way to combine the ...
0
votes
1answer
47 views

gb4e label appears under image when I reduce its size, I want it to be above

I've created a syntactic tree using TikZ, and it works well, also when placed inside an {exe} of gb4e, for example the following code: \begin{exe} \ex\label{ex54} \Tree [.TP$_1$ [.DP$_1$ \edge[roof]; ...
1
vote
1answer
320 views

Changing the style of all edges in tikz-qtree

How can I change the style of all the edges in code below like the red one? I tried adding every edge/.style={..} but it doesn't work. \documentclass{article} \usepackage{tikz-qtree} \begin{document}...
2
votes
1answer
177 views

changing the style of a single branch in tikz-qtree

How can I change the color and style (like dashed or dotted) of only one branch, say the one between parent and grand-parent of a and b? \documentclass{article} \usepackage{tikz-qtree} \begin{...
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 ...
5
votes
1answer
130 views

reducing space in the tikz-qtree package

I have the following code to construct a tree using the tikz-qtree package but the tree is too wide and also long. How can I fix it so that it reduces overall and is compact ? Also, I am using tikz-...
3
votes
1answer
142 views

tikz-qtree nodes added and removed in beamer with \only

I'm trying to add and remove nodes in a tikz-qtree through the use of \only in beamer. And it gives weird results. If I don't use \only I see the figure that I want. \documentclass{beamer} \...
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 ...
5
votes
1answer
148 views

Tikz-Qtree How to Change Position where Edge Connects to Node

I am trying to produce a binary tree using Tikz-qtree, however I am trying to figure out a way to shift my leaf node so that the top of the triangle connects to the edge. I tried using yshift on the ...
6
votes
2answers
369 views

Strikethrough lines on a phonological tree

I am wondering how I can add some strikethrough lines on a phonological tree. Here is my code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{tipa} \begin{document} \...
3
votes
1answer
88 views

Phonological Trees: Consonant Gemination in tikz-qtree

I am new at this. I am making phonological trees. I have the following code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{tipa} \begin{document} \begin{...
3
votes
1answer
118 views

Drawing pq-trees with all the numbers at the bottom

I need to draw PQ-trees in LaTeX. Make all the numbers in the same level at the bottom like the figure above. Thank you ! I put my existing latex code here: \documentclass[tikz,convert=false]{...
7
votes
1answer
291 views

Table of content as right side growing tree

How to prepare table of contents as follows: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{grow'=right,level distance=32pt} \...
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} \...
2
votes
2answers
125 views

Implementing a tabular within a forest node produces two bracket failures

i'm currently using the forest-usepackage in order to build up a family tree. I'd like to implement a table within a forest node. As long as i don't hit the 100 failure mark the code will be compiled ...
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} \...
1
vote
1answer
104 views

tikz-qtree inside gb4e example not centered when bidi is loaded

I am using tikz-qtree to draw syntax trees that go inside of gb4e examples. I was very happy that I was able to get them to center by following this answer: Centering trees However, I then decided ...
0
votes
1answer
527 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 ...
2
votes
2answers
251 views

How to center AVMs with subscripts in trees?

I would like to make trees with daughters that are AVMs with subscripts. The subscripts cause the AVMs to slide off to one side. How can I prevent this? Here is my code: \documentclass{article} \...