{tikz-trees} is for questions addressing issues related to trees in {tikz-pgf}.

learn more… | top users | synonyms

1
vote
2answers
152 views

Tikzpicture Overlap

What is a simple solution to prevent overlapping in tikzpicture. I tried changing sibling distance and level distance but as you can see in my code / picture euqation2 is not visible because it's ...
1
vote
1answer
47 views

How can I make this tree shrink to fit standard page?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3....
2
votes
1answer
76 views

how to draw skewed (unbalanced) tree with tikz-qtree?

\begin{figure}[H] \centering \begin{tikzpicture}[scale=0.7] \Tree [.Appl [.DP ] [.V [.DP ] [.v ] ]] \end{tikzpicture} \end{figure} is giving me the above picture: But, what I really want is left ...
4
votes
1answer
174 views

How to draw big circles around selected nodes of a tree with tikz?

I have drawn the following tree using tikz with the following code. My question is: How can I draw one big circle enclosing all the „A“ nodes, one for all „B“ nodes and so on (maybe with different ...
1
vote
1answer
117 views

How can I make horizontal direction for last node using Tree

I am using tikz to draw my tree. I want to adjust the location of last nodes as expected figure(last figure). Second, I want to locate the tree in centering on page. Could you help me to fix the latex ...
2
votes
1answer
106 views

How to draw the following automaton

How does one draw the elliptical blue background and the nodes? I am quite lost here.
2
votes
1answer
73 views

How can I adjust the position of a hierarchical tree

I am using tikz-qtree to draw a hierarchical tree. However, the position of the tree out of the page. Could you help me to adjust the tree to center of page? Thank you My current code that manually ...
2
votes
1answer
57 views

Drawing a linked list as a tree

I'd like to draw this as a TikZ: \ \ +---+---+ | * | * | +/--+---\ / \ 1 +---+---+ | * | * | +/--+---\ / \ ...
5
votes
1answer
40 views

Node on the side of a horizontal tree

I am struggling to understand how to put a node on the branch of the first level of a tree of bernoulli trials. When I try to draw it out, the node label in the center of the branch becomes the ...
2
votes
2answers
135 views

how to modify the code to change the size of blocks or nodes with maintaining the symmetry

How I can change the size of nodes to add some text in it. Below is code and second diagram is generated from this code. \begin{figure} \usetikzlibrary{trees} \begin{tikzpicture}[sibling distance=2....
2
votes
1answer
69 views

Tikz Tree Spacing in a Subfigure

I have been trying to create decision trees in a subfigure format as below, but not matter what kind of spacing I try, there are always over-lapping nodes at some point or another. In the example ...
3
votes
2answers
179 views

Custom PSTricks directory tree to TikZ

I have a PSTricks implementation of a custom directory tree which I find quite appealing. I basically want to convert the whole thing to TikZ. I managed to get the very basic idea running in TikZ: I ...
2
votes
2answers
48 views

Is there a possible way to make these tikz-tree smaller?

I do have a little question about my tikz-tree you can see on the photo below. If you polt it on a paper it is quite a bit big and takes almost half of an a4 paper. Now my question: Is there a ...
2
votes
1answer
88 views

Is there a possibility to make a circle around a node like on the photo?

I would really like to have a circle around the first node of my tree like you can see on the photo. Is there a possibility? I only startet with latex and there is so much new for me... Thank you!! ...
3
votes
1answer
56 views

how to change font-size of a tikz tree

Is there a possibility to change the font size of the text right on the line of the following tree? I would like to reduce it, so that the tree does not appear such big. I hope someone may help me. ...
2
votes
1answer
55 views

is there a possibility to rotate text in a tree (tikz)?

Is there a possibility to make my tree a bit more well-arragend? At the moment I think, there is a lot of mess and you do not get which description refers to wich line and so on. I hope you understand ...
5
votes
1answer
112 views

Layered Graph from Tikz Manual

I suppose I have quite some experience with vanilla latex (which I have used to write several documents), but I am making my first baby steps with tikz. In particular, I am trying to reproduce the ...
1
vote
0answers
22 views

Tikz-qtree strange placement problem [duplicate]

I'm having issues with the placement of the values in my tree, i'm not quite sure whats the cause of it. Any help is appreciated. \documentclass{article} \usepackage{mathtools} \usepackage{newfloat} ...
2
votes
2answers
94 views

highlight a node in tikz

\begin{frame} {Family work up } \begin{tikzpicture}[level 1/.style={sibling distance=5cm},level 2/.style={sibling distance=2.5cm}] \node {Patient}[edge from parent fork down] child { node {...
3
votes
0answers
88 views

Make an organisation Chart on Latex

I am looking to make an organisation chart on latex for a group project. I have never done this before, and I saw that I can use the Forest package or using tikz. My coworker, made the chart using ...
0
votes
0answers
20 views

How to get overlay options in mindmaps? [duplicate]

I am using the following codes to construct my mind map. \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} \usepackage{verbatim} \begin{document} \begin{tikzpicture} ...
-1
votes
2answers
129 views

How can I reproduce this tree diagram?

I want to reproduce the tree diagram shown below. My major problem is how to put text (Yes/No/Exposure...) next to the lines.
2
votes
2answers
67 views

How to write on connecting lines in Tikz?

So I am trying to do a similar diagram: I have done this so far: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Circles \draw[fill=white] (0,0) ...
3
votes
2answers
154 views

How to draw a proper decision tree

I need to draw a decision tree for my LaTeX document (with TikZ/forest or any other package). I searched around for a while to find something similar, but found none. The decision tree produced should ...
3
votes
1answer
173 views

TIKZ Tree: Change angle between Nodes

I am struggling to find out how to change the angle between nodes in tikz trees. I have already tried the attribute sibling angle=... specifically for child nodes or as level 1/.style=... attribute at ...
1
vote
1answer
30 views

One-period multinomial model

I am trying to draw a One-period multinomial model that looks like this: But I am having trouble using the tikzpicture package to achieve this, any suggestions is greatly appreciated.
3
votes
3answers
194 views

Multilevel hierachical tree/taxonomy with linebreaks and “empty items” in Tikz

I would like to include graphics like the following in my document. Since this is just one example and there will be different models, I can't just include it, but will rather need to be able to build ...
7
votes
2answers
150 views

How to horizontally align child nodes with the graphdrawing library of TikZ 3.0?

I want to left align the "2222" node with the other nodes on the same level (see MWE below). Is this possible using the graphdrawing library of TikZ 3.0? I could not work it out so far. \...
1
vote
1answer
52 views

Some questions regarding tikz tree

I have a tree working written in tikz, however, it's not fully what I wanted it to look like \begin{tikzpicture}[level/.style={sibling distance=60mm/#1}] \node [circle,draw] (equal){$=$} child {...
2
votes
1answer
93 views

Rich phylogenetic trees accompanied with a non-linear timeline

I wish to draw a phylogenetic tree which is graphically rich (the edges may have several colours/styles), and more importantly, the tree would be aligned with a timeline, which need not be linear. ...
6
votes
2answers
243 views

How to unite several nodes in one big node using Tikz?

I have to implement the Gomory-Hu-Algorithms which requires the reunion of several nodes to one node like it is shown here: My code is quite simple since the example I want to implement is quite ...
8
votes
4answers
394 views

Allignment of Tikz tree levels

I want to reproduce the following figure. And got the following figure with the code given below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows, shapes, trees, positioning} ...
3
votes
2answers
158 views

Butcher Trees in TikZ

I am trying to construct a function in Tex called \rootedtree, which takes in a a tree written in the notation of J. Butcher and then prints out the corresponding tree in TikZ. For instance consider ...
3
votes
1answer
58 views

Strange issue with linking nodes in a tree

I have the following tree: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{tikz} \usetikzlibrary{graphdrawing,...
6
votes
2answers
175 views

changing your latex code to modify the existing block diagram

My figure now looks like figure 1 using below code whenever I try to add more blocks ,the blocks become overlapping . % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[...
1
vote
0answers
50 views

Tikz: Alligning paths in its entirety

How can I align paths? I have two mindmaps: \documentclass[tikz,border=5]{standalone} \usetikzlibrary{trees,mindmap,chains} \tikzset{grow cyclic list/.code={% \def\tikzgrowthpositions{{#1}}% \...
3
votes
1answer
118 views

Tikz: Fill concepts in mindmaps nicely

When using this code: \documentclass[tikz,border=5]{standalone} \usetikzlibrary{trees,mindmap} \tikzset{grow cyclic list/.code={% \def\tikzgrowthpositions{{#1}}% \foreach \n [count=\i,remember=\...
2
votes
0answers
28 views

How to place tree node not to overlap with tikzpicture? [duplicate]

I'm trying to draw a tree diagram using tikzpicture, the issue is that when the distance between nodes are not wide enough the tree nodes are wrapping. As I use two column style, I need to find a way ...
5
votes
1answer
86 views

custom forest style: dimension too large / dividing by zero?

I've written myself a custom style for forest, to get trees looking the way I'd like them to. The idea of the style is to keep the branches at a fixed angle, and automatically handle empty nodes "...
-1
votes
1answer
125 views

how to draw this picture using tikz? [closed]

how this diagram could be draw in latex.
3
votes
1answer
32 views

Get rid of the number on some of the edges

How can I get rid of the circled marked 0 in red on the edge? Code: \documentclass[tikz]{standalone} \usepackage{forest} \tikzset{el style/.style={midway, font=\scriptsize, inner sep=+1pt, auto=...
-1
votes
1answer
355 views

File `elocalloc.sty' not found

I am trying to compile an example of the Huffmann which I found but I am getting the error: ! LaTeX Error: File `elocalloc.sty' not found. Type X to quit or to proceed, or enter new name. (...
5
votes
2answers
103 views

Copying non-epsilon terminal nodes in parse trees using forest

I'm drawing parse trees for formal grammar using the forest package and would like to have all terminals, that are not Epsilon, to be copied to the bottom and connected to the original node with a ...
3
votes
2answers
527 views

tikz trees: How to not draw a single edge

I want to draw a tree and not draw specific edges. I try it like this \documentclass[preview]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] ...
5
votes
3answers
125 views

Macro for creating trees for B-series as math symbols

I am writing a paper on numerical solutions for ODEs. For the representations of B-series I want to use binary tree-like symbols. I know how to produce them with TiKZ; however, just as in the given ...
3
votes
2answers
159 views

Tikzpicture horizontal tree - how to recombine daughters

I have a a horizontal tree representing a multi-period financial model. I want to have each parent converging into the same daughter as the parent's downside above them, and vice versa. I'm attached a ...
2
votes
2answers
78 views

Adding a separation line to a Tikz graphic

I have a graphics/tree which looks like the following: I created this figure using the following code: \begin{tikzpicture}[sibling distance=10em, every node/.style = {shape=circle, draw, align=...
0
votes
0answers
40 views

Frame around two Latex Pictures, Heading on top

so what I want is to have two boxed with LaTex pictures (5 in the left box, two in the right) next to each other who each have a different heading. I didn't manage to even put the text on top of the ...
4
votes
2answers
134 views

Highlighting/marking areas in a tikz tree

How can I highlight some specific regions in my TikZ tree? First picture shows my tree, and the second picture shows the idea of my desired outcome (but the rounded grey rectangles should be behind ...
3
votes
1answer
59 views

Tex Add nodestyle

Is it possible to use different node styles with my "syntax" of defining the nodes (using [. ]). \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[...