Questions tagged [tikz-qtree]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
69 views

How to make this type of graphs used to talk about regular rooted trees?

I have been checking different posts but I still do not fully comprehend how to make these types of graphs: I am also trying to draw these pictures, but I am not sure what tool I should use for this. ...
user avatar
0 votes
1 answer
60 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 ...
user avatar
0 votes
1 answer
36 views

Fitting a shape to nodes in a tikz-qtree

Goal: I would like to have a more systematic way to draw a shape around multiple nodes in a tikz-qtree, where the nodes are connected by edges. Currently, I manually adjust inner xsep and inner ysep ...
user avatar
  • 111
0 votes
0 answers
32 views

How to add optional arguments to tikz command

I used the code for adding overlay animations on tikz-qtree diagrams, suggested by Ignasi (tex.SE answer here). With this code, I can create the following animations: \documentclass{beamer} \...
user avatar
  • 323
1 vote
1 answer
37 views

Tikz-qtree label alignment issue

Is there anyway I can obtain that those labels get correct vertical alignment ? \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \tikzset{every tree node/.style={align=center, anchor=...
user avatar
0 votes
1 answer
28 views

tikz-qtree align leaves at bottom of first line (multi-line leaves)

I'm trying to create trees using the tikz-qtree package where some leaves have additional information. However, I want the leaves to be aligned at the base of the first line. The MWE will show the ...
user avatar
  • 323
3 votes
1 answer
115 views

Forest latex how to go to next line in node child

I am just experiencing with forest, and I'd like to have a responsive child, and not to be in one line as shown in the figure below: I'd like to split the text of all child of 1 level. I already ...
user avatar
1 vote
2 answers
40 views

How can I change `level distance` for a specific subtree of a tikz-qtree?

E.g., in the following example, I wish to set level distance=32pt just for the PP subtree. \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz, tikz-qtree} \begin{document} ...
user avatar
0 votes
1 answer
29 views

Multiple colors inside a single leaf in tikz-qtree

I have a tree from tikz-qtree that looks like this: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \tikzset{frontier/.style={distance from root=80pt}, every leaf node/.style=...
user avatar
  • 323
0 votes
2 answers
55 views

How to hide a higher node in tikz-qtree

I want to create a diagram on tikz-qtree that look something like this: Where "alt", "a", and "s" are aligned at the base, and "R", "AF", and "...
user avatar
  • 323
1 vote
1 answer
95 views

How to change tikz-qtree tree edge angle

I am looking to make a tree where the angle of the edge to children is the same at every level. I am aware that this might cause nodes to overlap. I want something that looks like this: But ...
user avatar
  • 121
2 votes
1 answer
75 views

Drawing a tree with rotated leaves using tikz-qtree

I'm trying to draw a tree with some text in the leaves that I'd like to rotate. The below code works fine except that the edges to the leaves are anchored to the right-hand side of the leaves rather ...
user avatar
  • 227
0 votes
1 answer
33 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 ...
user avatar
  • 319
1 vote
0 answers
30 views

Aligning material in delimiters within linguex examples

I'm trying to put trees (drawn with tikz-qtree) inside interpretation function brackets (scaled to the tree as suggested here (https://tex.stackexchange.com/a/133465) within a linguex example. ...
user avatar
  • 11
3 votes
1 answer
50 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..
user avatar
1 vote
0 answers
29 views

Times font error using tikz,tikz-qtree, tikz-qtree-compat

My codes are follows: \documentclass{book} \usepackage{times} \usepackage[normalem]{ulem} \usepackage{pifont} \usepackage{tipa} \usepackage{tikz,tikz-qtree, tikz-qtree-compat} \usepackage{bussproofs}% ...
user avatar
  • 11.2k
0 votes
0 answers
52 views

Time axis for forest/tikz-qtree tree

How to draw this tree with a time axis where node lengths are automatically set according to the time? I want to superimpose this tree into the graph. Only the length of the terminal nodes (P, V, A, ...
user avatar
4 votes
1 answer
142 views

Tikz-tree merging/recombining nodes

I need to draw a binomial tree, where nodes with the same value are merged together. Example: (But instead from left to right, I want it to be from up to down). Is there a way to do this with tikz-...
user avatar
  • 69
2 votes
2 answers
163 views

tikztree edge from parent fork from parent to grandchildren doesnt look good

i want to create a function-structure. Im using pdflatex with texmaker, I also tried it with miktex. My problem is the following. The line from function0 to function4 is a bit weird, because its ...
user avatar
  • 60
3 votes
1 answer
81 views

How to properly create a Tree? [duplicate]

I'm failing at the most basic of creating a tree with tikz-qtree. If I copy the correct string with correct formatting into Overleaf everything works fine. But if I do change too much it just breaks. ...
user avatar
0 votes
1 answer
222 views

Copy the Merge sort recursion tree from tikz example with forest package

I'm trying to explain the execution time of an algorithm and I'm using the forest as a package to drawing tree, and with this post, I'm asking if is possible to draw the same tree in the figure below ...
user avatar
1 vote
2 answers
63 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 ...
user avatar
  • 319
0 votes
0 answers
106 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!!!!!
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}...
user avatar
  • 1
4 votes
2 answers
208 views

How to make edges to the leaf nodes horizontal in a TikZ horizontal tree?

I'm drawing a horizontal tree with tikz-qtree. The edges to the leaf nodes are slanted, while I want them to be horizontal. I guess the problem is caused by the blank nodes before those leaf nodes. ...
user avatar
  • 43
2 votes
1 answer
71 views

Drawing a pointed arrow which connects two trees

I'm trying to draw a pointed arrow which connects the two trees in tikzpicture below. So far I've only managed to draw a red line which connects one of the trees to the root node of the lower tree, ...
user avatar
  • 845
0 votes
0 answers
88 views

Tikz-qtree will not work (error: missing \endcsname inserted)

MikTex version is 2.9, Texstudio version is 2.12.22. I can't make the MWE quite as short as I'd like, because my document has a lot of prefatory material and requires many packages. Given that I have ...
user avatar
2 votes
1 answer
113 views

remember picture not working with forest and tikzmark's subnode

According to the tikzmark documentation, when using \subnode, it should be possible to use ordinary node syntax (within a tikzpicture) to access this information. Thus after \node {a \subnode{a}{...
user avatar
  • 12.1k
1 vote
1 answer
59 views

tikz-qtree: joining two lines at a node

I would like to create a structure like the one in the picture, where the \draw line connects two elements without a gap at the node. The closest I've gotten is: \documentclass[tikz]{standalone} \...
user avatar
1 vote
1 answer
40 views

How to move around single elements

In the picture attached, I would like to either move the letters A B and the arrow up a little, so they are centered, relative to the tree (tikz-qtree) next to it, or move the tree down a bit. I'm new ...
user avatar
1 vote
2 answers
112 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]{...
user avatar
  • 908
0 votes
1 answer
283 views

Plotting: Regression Tree and Partitions

I am trying to reconstruct the following two graphs in Latex but have not succeeded yet. Altough I heard about the following two packages: \usepackage{tikz} \usepackage{tikz-qtree} I am not able ...
user avatar
  • 3
0 votes
1 answer
109 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 ...
user avatar
0 votes
1 answer
48 views

Unable to make skewed tree. Also how to draw curvy like box around some nodes as shown in the image below

I have tried to use the solution given in how to draw skewed (unbalanced) tree with tikz-qtree? answer but I am getting error. Undefined control sequence. \edge[draw=none]; My code is \Tree[.{...
user avatar
1 vote
2 answers
154 views

Changing the width of a textbox in TikZ horizontal graph

I'm a beginner at TikZ, but I need a parent-child horizontal graph. My problem is that the boxes are a set width and I don't know how to change it. Looking through answers to similar questions I ...
user avatar
  • 15
5 votes
2 answers
206 views

Leaf nodes in tikz-qtree are not aligned with parents when using grow=left

I am building a rotated tree using tikz-qtree. Whenever i use the setting "grow=left", the leaf nodes will be shifted a constant distance compared to their parent nodes, so that the lines between them ...
user avatar
0 votes
1 answer
61 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
user avatar
  • 1
3 votes
1 answer
200 views

Adjust roof height and width in tikz-qtree

I would like to adjust the height and width of certain roofs in my syntax trees. I'm particularly interested in getting a roof with a long phrase/sentence to look better. In the image below, the "um ...
user avatar
5 votes
1 answer
93 views

tikz-qtree and tufte-book

I want to use tikz-qtree to add trees to a book formatted with tufte-book. For the most part, they work. However, one example does not. Consider the following minimal example: \documentclass{tufte-...
user avatar
  • 53
2 votes
1 answer
46 views

Using tikz q-tree with an embedded macro

I am trying to create a macro which will create a tree which represents a given phrase. I've seen the explanations for \expandafter and have used it here, but when I embed this macro "\phrase" command ...
user avatar
  • 145
2 votes
2 answers
135 views

Hyperlinks in tikz-qtree

I am trying to include hyperlinks into a tree made by the tikz-qtree package. After compilation, all the nodes looks like links, but it seems that only the links in the right branch of the tree really ...
user avatar
0 votes
1 answer
132 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{...
user avatar
  • 751
2 votes
1 answer
66 views

Bar plot in terminal node of tikz-qtree

I want to draw a bar plot at the terminal nodes of a tree drawn with tikz-qtree. I have tried this: \documentclass{article} \usepackage{tikz-qtree} \usepackage{pgfplots} \begin{document} \begin{...
user avatar
2 votes
1 answer
587 views

How to draw a fitting circle around nodes in tikz-qtree?

I'm trying to draw a circle around the final node: Here is what I've tried: \usepackage{qtree} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \usepackage{xytree} \...
user avatar
  • 53
0 votes
1 answer
359 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,...
user avatar
  • 215
4 votes
2 answers
373 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{...
user avatar
3 votes
2 answers
221 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 ...
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 ...
user avatar
4 votes
4 answers
242 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 ...
user avatar
3 votes
1 answer
986 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' [.<...
user avatar

1
2 3 4 5 6