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

learn more… | top users | synonyms

9
votes
2answers
56 views

Two lines in a single node in Forest

I have recently switched from the tikz_qtree package to forest. Now I'm trying to change my trees to fit the forest coding. However, I can't find the way to let a single node contain two lines. I do ...
7
votes
4answers
429 views

Upside-down syntax trees for linguistics with horizontal lines

I know that syntax analysis can be done in Latex using using TikZ, but the tree-structure that produces isn't really used in my country. Here, we mostly use straight lines instead of hierarchy trees. ...
2
votes
0answers
111 views

TikZ new graphing library - how to use?

Ubuntu 14.04 tex version : TeX 3.1415926 (TeX Live 2013/Debian) After seeing this post I really wanted to play with the example and library, however I can't seem to get it working on my system. ...
3
votes
1answer
47 views

Edit position of nodes in tikz mindmap

I'm trying to make a mindmap with tikz but I want to add some fading (smooth transition between clear blue and dark blue) between the colour of the root node and his childrens. ...
23
votes
2answers
1k views

Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
4
votes
0answers
74 views

How can I get arrows to attach to outside of rectangle split in a graphdrawing layout?

I'm trying to make use of the newer (pgf > 3.0) graphdrawing layouts to do class diagrams, but I can't seem to figure out how to get arrows to attach to the outline of a rectangle split. I've read ...
3
votes
1answer
27 views

Vertical alignment of tikz matrix and tree

I want to display a table as a tikz matrix next to a tikz tree in the same figure environment. Using the baseline option in every tikzpicture worked to align both pictures on the top for the case with ...
7
votes
2answers
188 views

Latex Tree Diagram: Inserting Arrows

I’m having an issue formatting my LaTeX Tree Diagram. It’s in the correct order but I don’t know how to have an arrow at the end of each path to show the direction flow (test – Start) (Start – Do) (Do ...
6
votes
4answers
153 views

How to use Tikz and macros to very efficiently draw recombining binomial trees when taking notes during class

For a class in derivatives pricing I would like to find a way to quickly and efficiently draw recombining binomial trees. The class involved quite a few of those trees and it would be immensely ...
4
votes
1answer
21 views

How can I set a style in `\forestset` which requires delayed calculations with the results of node walks?

What is the correct way to wrap the specification for the tree below into the my binomial style defined in \forestset and why? The following code works fine: ...
4
votes
1answer
23 views

Tree diagram got cut off

After compiling the code for a tree diagram, some parts of the right hand side of the tree got cut off. I've already used \centering function but this does not fix the problem.I'm not sure how to ...
5
votes
2answers
112 views

How to colour branch/edge on a tree using tikz?

I have created a tree diagram using tikz on Latex. However I'm not sure how to go about highlighting/adding colour to a branch. For instance, looking at the tree that I've illustrated, I want to ...
4
votes
1answer
914 views

Multipart nodes with multipart subparts — style issue

I want to typeset multipart nodes that have multipart sub parts — similar to the following diagram (from Miller and Ranum) I have tried using TikZ horizontal split rectangles inside vertical split ...
6
votes
2answers
101 views

Tikz Forest label positioning

I'm constructing a tree diagram using the forest package, and I want to label the edges. Usually, Tikz is quite good at avoiding a collision between the label and the edge, but if the branches of my ...
0
votes
2answers
111 views

How to draw family tree like in website http://phdtree.org/scholar/ng-andrew-y/ by TikZ?

Could anybody help me draw the family tree like in website http://phdtree.org/scholar/ng-andrew-y/ by TikZ? Anyother (latex)tools are also encouraged.
5
votes
2answers
416 views

Uncover parts of a tree in TikZ

I'm trying to apply Daniel's method to uncover the bottom right part of the tree in the following MWE. However, when I pass the option [visible on=<2->] to one of the children, it appears to ...
5
votes
2answers
81 views

Obtain a TikZ tree from a Lua table/string

Let's consider I have a database where with appropriate passages I obtain the a string that describes a layered tree. Consider the following listing: % !TEX encoding = UTF-8 % !TEX program = ...
0
votes
0answers
35 views

Tikz help with chart. Trying to get a UML chart? [closed]

Can someone help me? I am trying to apply the following diagram in latex, and have tried to work with existing examples. The bubble map is one I created in Bubl.us. The problem is that I'm trying to ...
3
votes
1answer
45 views

how can make a big tree automatically display in the second page?

I want the first part of the tree is in the first page, the other part in in the second page or even in the third part. I want it can be done automatically. Here is the code (use Pdflatex), you can ...
11
votes
1answer
298 views

Is it possible to cut a tikzpicture in half if the picture is too long and display it on two pages?

I'm using tikz (tikzpicture to be precise) to make some "drawings" (trees). The problem is that my "drawing" is too long to fit on one single page (it's too long). I was wondering what was the best ...
0
votes
1answer
22 views

forrest hierarchical diagram that will fit in landscape mode for 8.5“ by 11” document

Is there a way to use the pictured hierarchical diagram and load it into latex so that it fits into landscape on a 8.5" by 11" document that won't affect header and footer/page number? somewhat new to ...
2
votes
2answers
88 views

How to draw a full n-ary tree in a “landscape setting” using TikZ?

How would I go about drawing something that looks like this (please excuse the extremely lousy Paint image) with branches continuing to the right. I am sorry I cannot provide any exact code, but I ...
1
vote
3answers
70 views

drawing a horizonatl tree (graph) with variable break points

Part of what I work on involves sequential product multinomials, and analysis of same. In papers, or lectures, it is often useful to describe the underlying probability structure uing what we call a ...
27
votes
3answers
472 views

Visual table of contents using tikz mindmap or similar

For a book, I'd like to have a visual table of contents, showing parts, chapters (and maybe sections) visually as a radial tree diagram or mindmap. Ideally, it would be lovely to have some tool to ...
6
votes
1answer
83 views

How to put level 2 concept mindmap nodes alongside a rectangle

What I have done: I have looked in to the pgf manual. I have searched on this site for mindmap and did not find a solution. I have a mindmap with many nodes at level 2 and eight nodes at level 1. ...
1
vote
1answer
76 views

Text alignment and form of connectors (edges) in tikz tree

I'm completely new to tikz and try to draw a tree structure. I have tried different options, but could not modify it as I wanted it to look like. It currently looks like that: Tikz code ...
0
votes
0answers
27 views

Can't find tikz libraryarrows.meta.code.tex

I have update all the pgf and TikZ packages as admin (Windows7), but receiving the same error while compiling the following code. \documentclass[tikz,border=10pt]{standalone} \usepackage{forest} ...
7
votes
3answers
244 views

drawing an orthonormal frame with semi circles

Hi, I have a problem in drawing this frame, and with colors, especially using tikz programs or the hobby the program don't compile with hobby. Can anyone help me in drawing this pic? thank you. i ...
1
vote
1answer
70 views

Draw multiple inheritance hierarchies

I have to draw multiple inheritance type hierarchies. The worst case is something like the following: I used tables and tree-dvipsto draw these figures, but I am now looking for something that is ...
15
votes
2answers
2k views

macro for empty nodes in tikz-qtree

I'm trying to define a macro for writing empty nodes in a binary tree using tikz-qtree. Referring to the code below, I want the string \missing in my code to be replaced by \edge[draw=none]; {} as-is ...
6
votes
3answers
235 views

Horizontal - Vertical connectors in a tree (in place of slanted lines)

Here is the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
3
votes
1answer
56 views

How to use bracket symbol in node name in forest?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} [Z [$K[2]$] ] \end{forest} \end{document} How can I use brackets in a node name? Not necessarily inside math. The above ...
16
votes
6answers
560 views

Cayley Graph of Free Group in TikZ

What is the best way to create a TikZ picture which resembles the image below (Caylay Graph of a free group) without using absolute positions and doing everything "manually"? The picture has a very ...
2
votes
1answer
78 views

Horizontal tikz-qtree level distance too big while using edge style

After tweeking with tikz-qtree a lot, i ended up with the result below. But i dont know why the level distance after XML node is too long, and even when setting the level distance for said level, the ...
8
votes
3answers
187 views

How to move tree leaf nodes horizontally after automatic positioning?

I'd like to draw trees like the following: That is, I have edges which are crossing. The tree should be drawn like a regular tree (without crossings) except at the last level where the leaves can ...
2
votes
1answer
52 views

Nodes put one on top of the other

I am a total beginner in tikz and I am using the following code (slight modification from texample.net) to draw 2 red black trees. The problem I am facing is that both trees are placed one on top of ...
3
votes
1answer
64 views

How to obtain the same-sized-boxes?

I want all the rectangle have the same size. What should I do? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{tikz-qtree} \tikzset{edge from parent/.style= {draw, ...
1
vote
2answers
57 views

How can I put something under something in a Tree?

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{grow'=right,level distance=32pt} \tikzset{execute at begin node=\strut} ...
1
vote
2answers
97 views

How can I add “first second…” ?

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \tikzset{edge from parent/.style= {draw, edge from parent path={(\tikzparentnode.east) -- +(8pt,0) |- (\tikzchildnode)}}} ...
2
votes
1answer
33 views

How can I change < to [ ?? I want the picture with 1 2 3 4

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{grow'=right,level distance=32pt} \tikzset{execute at begin node=\strut} ...
1
vote
1answer
39 views

How can I add space for tikz? I want add space between 1 and 2, also 2 and 3

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node {One}[edge from parent fork right, grow'=right, ...
0
votes
0answers
92 views

Energy spectra in LaTeX

I want to draw energy spectra like in the attached photo. Can anybody help me?
0
votes
1answer
141 views

How do i create this graph on latex?

So…i made this graph using paint(!)…and it looks horrible. I have used tikz to create similar graphs but this one seems to be more difficult.
6
votes
1answer
91 views

Constructing a tree in LaTeX

I am having real trouble creating a tree. So far I have \documentclass{article} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture}[every tree node, level distance=1.25cm,sibling ...
5
votes
3answers
133 views

Setting \tikzstyle inside \foreach

I am building a tree structure in tikz and am following this texample, which suggests adding styles for the children according to their depth in the tree (first, second and so on). The purpose is that ...
5
votes
2answers
91 views

How to break lines in a node of a tikz tree

This is the code I have: \begin{tikzpicture} \tikzset{edge from parent/.style= {draw, edge from parent path={(\tikzparentnode.south) -- +(0,-5pt) ...
3
votes
2answers
131 views

Tikz tree indentation

I'm trying to draw a large family/directory tree using tikz-tree. I've found this question in Stackexchange, which almost works, but not quite. Using the code provided in the answer I get overlapping ...
3
votes
3answers
96 views

Change the distance of text lines in tikz nodes with Beamer

I have a tikz tree that doesn't fit on the slide. The theme and the linespread is given, so I only want to change the line distances of the text in the tikz nodes. But nothing worked for me :( ...
5
votes
1answer
209 views

Tikz Graph without using a tikz document class

The following solution is absolutely perfect for my purposes, but I noticed that it requires \documentclass[tikz,border=5]{standalone}. Is there a way to get the same result with a standard ...
4
votes
2answers
94 views

Adjust node level using phantom node

Consider the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...