All Questions
Tagged with tikz-pgf tikz-trees
683
questions
4
votes
1
answer
42
views
How to Add a Legend to a Forest Taxonomy Diagram in LaTeX?
I have a LaTeX code that generates a taxonomy diagram using the forest package. I'm trying to add a legend to this diagram, explaining the meaning of the various colors, dashed lines, and node types. ...
0
votes
0
answers
44
views
How to insert category?
How to insert A, B, C in the tree diagram below?
0
votes
0
answers
44
views
TikZ Tree Image
I recently figured out how to use tikz trees, so filling in a potential rectangle and the rest would not be an issue. Is there a way to somehow create a tree looking like the image provided that is ...
5
votes
4
answers
347
views
Ugly node connecting in nested nodes
I drew the below picture to illustrate the backtracking tree on the k-queen problem with k = 4.
It's a bit ugly... and I don't know how to solve the problem : the connecting lines from the child ...
2
votes
1
answer
30
views
Splitting-Up Binary Tree Nodes
I am showing the process of inserting alphabetical values into a Red-Black Tree from the string "sethextra".
When I get to the second "t", however, the new node overlaps the "...
2
votes
1
answer
100
views
Package tikz: Giving up on this path. Did you forget a semicolon?
I'm implementing a Red Black Tree in LaTeX using tikz, and have been stuck on the error message Package tikz: Giving up on this path. Did you forget a semicolon?.
Here's my code thus far
\...
2
votes
1
answer
48
views
Placing nodes as the root of a tree-like graph
I am new to TikZ and am trying to draw a huge graph generated from data. This graph only contains a couple of cycles and is otherwise a tree-like structure. The problem I am running into is that I ...
1
vote
2
answers
100
views
Genealogy in tikz with surrogate mother
I try to make with tikz a simple genealogical tree like this one:
Theire is only two difficulties.
Agamemnon had childs with two wifes (Cleopatra I and Cixi) ;
Helios and Selen had a child over a ...
6
votes
2
answers
229
views
Drawing a tree whose nodes are smaller trees
I want to draw a tree with the following shape, where each boxed tree is a node of a larger tree:
I could find boxing subtrees of a given tree, but all available answers (like this or this) seem to ...
0
votes
1
answer
36
views
Connect a triangular child node with its north corner
I'm drawing part of a tree, and I want child sub-tree to be drawn as a large triangle.
Here's a MWE
\documentclass{standalone}
\usepackage{tikz}
\usepackage{calc}
\usetikzlibrary{trees}
\...
5
votes
1
answer
246
views
How do I keep my tikz drawing on the page?
I am just learning tikz and I made a picture that I would like to add to a paper I have to write. However, I cannot figure out how to get the figure to center itself on the page. Currently when it ...
0
votes
2
answers
53
views
Cannot write \Cup in tikz-qtree binary tree structure in LateX
I stumbled upon this problem while trying to create a LateX binary tree in my Overleaf project. Through online tutorials, I found out how to construct said binary tree through the tikz-qtree package ...
2
votes
1
answer
81
views
How to make tikz trees with children that grow down then right?
by default tikz grows trees in a centered manner, such that children grow as:
o
/ \
o o
/ \ / \
o o o o
How can I grow the trees such that they grow down, then right? Such that:...
4
votes
1
answer
70
views
Change line length between parent/child in forest
Consider the following forest:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
forked edges,
for tree={fork sep=2mm,
grow=east,...
2
votes
1
answer
70
views
Increase line length in tikz forest
Suppose I have the following tree:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[edges]{forest}
\begin{document}
\begin{forest}
for tree={
grow=east,
parent anchor=...