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

learn more… | top users | synonyms

2
votes
1answer
78 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
169 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
310 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
143 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
57 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} ...
6
votes
2answers
146 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 ...
1
vote
0answers
47 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
95 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 ...
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
76 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
110 views

how to draw this picture using tikz? [closed]

how this diagram could be draw in latex.
3
votes
1answer
31 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, ...
-1
votes
1answer
219 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
98 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
305 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
106 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
136 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
64 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, ...
0
votes
0answers
38 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
99 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} ...
1
vote
0answers
91 views

Highlighting specific parts of a customize graph

I want to highlight specific parts, like this, for my graph (see code below). But in my case the highlighting (from the link above) doesn't work. The specific customized graph elements come from here. ...
1
vote
0answers
36 views

encorporating tikz tree in a figure environment messes up “landscape” option

I have a large tikz tree that I can only display properly if I turn around my page to landscape. Doing so is not a problem: The \begin{landscape} and \end{landscape} commands do that fine. However, I ...
1
vote
1answer
128 views

Package for drawing cause effect graphs (-> software test technique)

Is there a package or a package extension for drawing cause effect graphs (see the screenshot below for atomic elements). If there is no package can someone explain how I can achieve this by using ...
4
votes
3answers
99 views

Alignment in directory tree

I want to draw a directory tree, see the code below. I can't get the alignment right in the following areas: The H of Here is text and the T of This is some more text must align. All horizontal ...
0
votes
1answer
72 views

How can I make a tree (forest) with simple commands like Geophar?

I use Geophar http://sourceforge.net/projects/geophar/ With this Program, I can easy to make a tree. With the code ||Tirage 1|Tirage 2|Tirage 3 omega >A:0,7 >>B:0,2 >>C:0,8 ...
1
vote
0answers
20 views

Binomial pricing trees using tikz [duplicate]

How do you make binomial pricing trees using tikz? I mean a tree like the this, but with only three time periods.
1
vote
1answer
98 views

Making trees(time to most recent common ancestor) along a DNA sequence

Hi I have a DNA sequence and i want to draw a figure that says the tree height ( time to most reason common ancestor) can change. It is a rather difficult job and I can't figure out how to draw the ...
5
votes
1answer
264 views

Drawing Markov Decision Processes with Tikz

I thought this would be much easier. I am trying to recreate the standard MDP graph that is basically the same as a Markov Chain (I know a lot of posts about that) but with the addition of lines that ...
2
votes
1answer
53 views

tikz: Shifting a node

I'm new to tikz so any advice appreciated. I have the following tree, but I need the FP node to be an the same level (vertically) as the price node. \begin{tikzpicture} [level distance=10mm, level ...
3
votes
1answer
76 views

Display tikzpiture environment in Righ to Left direction in a Document using a language with Left to Right direction as the main language

I write a document with mixed languages having different writing direction. The main language is in left to right direction. I want to write a tree diagram in another language having right to left ...
1
vote
2answers
38 views

vertical line and extension of node in tree

I'm trying to generate a tree that has a vertical line coming through exactly in the middle, right after the 0.5 on the top node, and the 2 on the bottome node, and I would like to write 1.25,1.25 ...
3
votes
3answers
325 views

Tree structure in latex

I have trying to get this tree structure in latex but I don't find any example. Can someone help me? []
3
votes
2answers
222 views

How can I add the line above this tree?

I want to add a line 1st toss, 2nd toss, 3nd toss and outcome like this picture I tried \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
97 views

Revealing tree on beamer bottom-up using tikz

Unrevealing a tree (nodes+edges) has been already treated before e.g.: Beamer: problematic use of \visible and \only in combination with TikZ to draw a graph Successively reveal tree bottom up ...
1
vote
1answer
70 views

How to replicate a probability tree with tikz?

I want to replicate the following probability tree in tikz. My problem so far was that the nodes of different third level branches joined. Furthermore, how can I add the text to the branches, such ...
1
vote
1answer
124 views

Removing a node from tikz tree

Considering the following TeX document: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{trees} \tikzset{ invisible/.style={opacity=0}, visible on/.style={alt=#1{}{invisible}}, ...
1
vote
1answer
59 views

tikz curves with labeled nodes as start and end points

These days I'm typesetting a lot of trees (in the graph-theoretic sense) using pst-jtree, which is essentially a collection of macros over pstricks. So, I might have the following. \jtree \! = ...
7
votes
1answer
282 views

Third Level Organizational Chart using Latex Tikz

I tried to follow TikZ-tree: edge-alignment in horizontal org-chart to make an org chart-like diagram like this I got stuck on making third-level down. Can you help in figuring this out? I am not ...
2
votes
1answer
117 views

Line break in qtree edge labels

I am using tikz-qtree to create a (horizontal) game tree. While I have managed to create line breaks in the node labels, this does not seem to work for the edge labels, see MWE below. My questions ...
3
votes
1answer
101 views

positioning a tree

I have drawn a simple tree. But this code creates a left-aligned tree. How can I position the whole tree in the center? \documentclass[12pt]{article} \usepackage{gb4e} \usepackage{amsmath} ...
3
votes
1answer
65 views

Straightening the edges in tikz-qtree

I have a tree, which turns out to be a ternary tree. Here is the code \begin{tikzpicture} \tikzset{level distance=18pt,edge from parent/.style={draw, edge from parent path={(\tikzparentnode) -- ...
3
votes
2answers
67 views

How to adjust the size of edges when we have large number of items in tikz-tree?

I am working on a hierarchy diagram which has large number of items on its leaves due to which my diagram goes out of page and eventually i am unable to see right half of tree following is the code I ...
2
votes
1answer
182 views

How to nicely place two heaps next to each other

I am quite new to latex and I have a question on how to place two heaps of this size nicely next to each other in latex. For example: \[\begin{tikzpicture}[every node/.style={circle,draw},level ...
1
vote
0answers
302 views

please how can i create this organization chart using latex? [closed]

please help me to create this organization chart using latex an tikz
1
vote
1answer
85 views

Compiling in latex-suite halted with lualatex error with pattern not found

So I'm getting this error after compiling a .tex file with an import \usetikzlibrary{graphdrawing.force} and compiling hitting ,ll in vim's latex-suite. Pattern not found: \Vn LuaTeX to use the ...
4
votes
3answers
382 views

Figure in Tikz (2 state Markov)

I would like to make the following figure in Tikz: I have tried using the code here, but I did not succeed unfortunately. Can anyone provide me some code to make such a picture? Thanks in ...
7
votes
2answers
412 views

How do I format text inside a node?

I'm making an academic family tree and I'd like to put a couple of bullet points of info for each person. I'm just starting with LaTeX, so this is the simplest code possible: ...
4
votes
1answer
55 views

Trees with tangent curved arrows

The arrow controlled by \draw[semithick, dashed, ->] (pe)..controls +(south west: 50) and +(south: 50) .. (re); dissects the tree. I want it to curve round the bottom-most node of the tree. I ...
3
votes
2answers
195 views

Colouring the branches of tikz trees

I want to colour the branches of the following tree: \documentclass[12pt,a4paper]{article} \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat} \tikzset{every tree ...