{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

19
votes
1answer
5k views

Comprehensive list of TikZ style options?

I'm aware that one can use \tikzstyle{every label}=[...] to apply styles to every label within a tikzpicture; or \tikzset{mystyle/.style={...}} to apply style specs to a specific type of node mystyle ...
5
votes
1answer
969 views

How to make all nodes same size in mindmap?

Is there a way to force all the nodes in a mindmap to have the same size regardless of their hierarchy in the tree? \begin{figure}\label{fig:HadoopVersion} \centering ...
9
votes
1answer
1k views

Difference between \newcommand and \pgfmathsetmacro used in TikZ \coordinate

Consider the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \newcommand{\MA}{4} \pgfmathsetmacro{\MB}{4}; \coordinate (V11) at (0,0); ...
3
votes
1answer
250 views

tikz - Multiple nodes with same content

I would like to know how to place multiple nodes with same content in TikZ. I've made a macro for it, but I think that it could have a different approach. \usepackage{tikz} \usepackage{bm} ...
10
votes
2answers
2k views

Package PGF Math Error: Unknown operator `o' or `of'

I am getting a weird error while trying to place a node above another node using the below= syntax. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[] (node1) at ...
11
votes
1answer
2k views

pgfplots - Placing Nodes on x Coordinates of a Plot

I want to plot some graphs in pgfplots and want to place nodes on the exact same x coordinate of the plot. The position of the note has to be set in x direction but free in y direction. Here is one ...
22
votes
4answers
8k views

TikZ: difference between \node and \coordinate?

What is the difference between \node and \coordinate in TikZ? Exchanging them does no visual effect in my (to be honest: still simple) pictures. When to use what?
9
votes
1answer
572 views

TikZ: anchors of special node “current page” seem to be incorrect in landscape

I've got a document that I wish to format in landscape in conjunction with some material added as an overlay via TikZ. I can get everything correct if I create a portrait page, but not if I create a ...
7
votes
1answer
535 views

Draw arrow not to node center but to edge of circle on this node?

This example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}% \draw[help lines] (0,0) grid (1,1); \node [draw, circle] at (0,0) {}; \node [draw, ...
10
votes
2answers
577 views

Hyperlinked nodes in TikZ mindmap

I am trying to make a small mindmap such that some of the child nodes are hyperlinked. I tried to follow the advice given here, about the new node style hyperlink node, but the following MWE compiles ...
16
votes
1answer
412 views

nodes structure like file system

I would like to draw a picture that reflects some file structure. Below code works almost as expected. I need to adjust the connections between nodes so they don't start from the center of the bottom ...
10
votes
2answers
966 views

Problem with custom width of nodes in TikZ

I'm in trouble with some nodes, I'd like to get your help. I'm trying to set the text width of a node, but when I declare this parameter, there is something wrong. Maybe there's something missing in ...
5
votes
1answer
420 views

How to fix the overlapped nodes with long text, in TikZ. Concept maps

I'd like to get helping from you. I want to have paragraphs in the nodes of the concept map with Tikz, I mean, texts with multiple lines. I have a problem with texts, the nodes are overlapped. Here's ...
4
votes
2answers
309 views

TikZ node with UML comment shape

I'm wondering how could I draw node that looks like ** UML comment **. Any suggestions?
15
votes
2answers
2k views

TikZ rectangle split parts with fixed height

I was wondering if there is a way to set the height of rectangle split parts. I had no luck finding something in the pgfmanual. (Using \phantom seems just like a quickfix.) Here is an example to ...
9
votes
2answers
282 views

Rounded corners as a tangent in the right direction

I want to split a path into two branches as in the following MWE. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node (A) [rectangle] ...
11
votes
2answers
178 views

How to define an environment that begins with a node?

Please see the following definition: \tikzstyle{boxStyle} = [draw=blue!80, fill=blue!9, very thick, rectangle, rounded corners=3mm, inner sep=10pt, inner ysep=15pt] ...
12
votes
1answer
457 views

Nested node class with pictogram decoration

I'm wondering how can I define custom TikZ node class mynode thats allows my to use following syntax: \node [mynode,fill=yellow!40] {component} \child{ \node [mynode,fill=yellow!40] ...
21
votes
1answer
2k views

TikZ picture shapes

I am very new to the TikZ package, and I need to draw some flow chars by using the following shapes. However I couldn't figure out how to draw the 4th and and 6th ones below. It would be very nice ...
19
votes
2answers
1k views

Tikz: purely vertical arrow from nodeA.south to nodeB.north

I have the following tikz code % compilation command: pdflatex --jobname=Diag-f1 Diag.tex \documentclass{book} \usepackage{tikz} \pgfrealjobname{Diag} \begin{document} \beginpgfgraphicnamed{Diag-f1} ...
8
votes
2answers
412 views

Giving a `matrix` node an `alias`

This TeX.sx question asks if is it possible to use a TikZ matrix along a chain. The error that occurs when one tries to do so is Package pgf Error: No shape named chain-3 is known., and a way to ...
11
votes
3answers
652 views

Anchors/coordinates inside a node's text

The plot Using tikz, I have a main node containing several (three) lines of text, and three "legend" nodes that point to them. If I use a rectangle node, then I can't access the positions of the ...
7
votes
2answers
211 views

Want nodes to have linked heights based on which input is larger

So I'm trying to make a worksheet template for students to create pdfs for student markup. The inputs create what is going to go in the question box as well as the hints box. I want to create the ...
8
votes
1answer
1k views

Edge nodes, auto and node distance

Consider the following MWE \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(1,1) node[auto,midway] {$A$} -- (2,0) node[auto,midway] {$B$}; ...
9
votes
1answer
165 views

Checking whether or not a node has been previously defined

I use the following code to draw a line to connect two nodes in my graphic: \draw ( p-\prow-\col) -- (p-\row-\col); At the edge of the figure, however, not every node will have a predecessor from ...
5
votes
1answer
311 views

Pointing (an arrow) to a tabular node in beamer is buggy (ignorenonframetext)

Maybe a bug in beamer, works OK while using the minimal document class. Again, following the example over there, and also after playing with Circling/framing and referring to a bunch of nodes, the ...
5
votes
1answer
447 views

TikZ callout pointing to nested nodes

In the following MWE I want to create a TikZ callout pointing to a node within a node. The outer node is for the highlighting environment \tikzMe the inner node is for the \tikzmark. Somehow I do not ...
5
votes
1answer
252 views

Strange movement of objects when highlighted item in beamer is uncovered

Can anyone explain to me why there is this strange "shift" of objects when passing from the first to the second slide in the below MWE? \documentclass{beamer} \usepackage{beamerthemeshadow} ...
21
votes
3answers
3k views

Fancy arrows with TikZ

I would like to draw an arrow like this using TikZ: This is taken from Workflow diagram. I didn't succeed in reproducing the arrow; is somewhat beyond my (extremely limited) TikZ abilities. I don't ...
3
votes
1answer
184 views

Circling/framing and referring to a bunch of nodes

The end goal: drawing paths between nodes like in the example there but the difference is the nodes are inside a picture here and in particular, the other node is a bunch of nodes in the same picture. ...
10
votes
1answer
287 views

Can I calculate the difference between two relatively positioned nodes with TikZ using calc?

I have a chart with relatively positioned nodes. How do I calculate the horizontal distance x, between node "sub3" and node "key" and multiply that value by 2 and use it for the positioning of node ...
4
votes
1answer
280 views

How do I layer nodes/boxes in a drawing?

I'm trying to make a diagram that shows relations of elements in a system, but I don't know how to layer anything. So far I've got: \documentclass{book} \usepackage{tikz} ...
11
votes
3answers
2k views

positioning a child node between two parents

\begin{tikzpicture}[node distance=1.5cm] \node[state] (A) {A}; \node[state] (C) [right of=A] {C}; \node[state] (B) [below in the middle of=A and C] {B} \end{tikzpicture} Something like this: A ...
8
votes
1answer
348 views

Add “tangential nodes” to a hobby curve

Is it possible to place nodes along a hobby curve such that the orientation is tangential to the curve. I should add what I mean with tangential: The curved hobby path should represent a curvy street ...
10
votes
3answers
6k views

How to draw a node as a filled circle (dot) to indicate a connection using TikZ and LaTeX?

I have some trouble drawing a control system block diagram using TikZ. I want a certain node to be shown as a dot, indicating a connection. However, the dot is not positioned at the center of the node ...
5
votes
3answers
266 views

Tikz: How do you label a circled node to the left without collisions?

I'm trying to label a circled node in Tikz with some text to the left. The problem is it is colliding with the circle. For example I have something like: \begin{tikzpicture} \node[draw,circle] at ...
8
votes
1answer
259 views

Start line in the corner of a node

Hwo to put start line in the corrner of a A node? How to force TikZ to draw C-level siblings to the right direction. \documentclass{beamer}% \mode<presentation>% { \usetheme{Madrid}% ...
5
votes
2answers
110 views

How do I use scopes to apply a style to nodes inside a path?

I want to use nodes inside a single path, in order that I might position one relative to another using the ++(x,y) notation. However, a scope that I want to use to style the nodes only styles the ...
3
votes
1answer
498 views

Statecharts using TikZ

I haven't found any example of using TikZ for drawing Harel's statecharts notation. There are numerous examples of finite-state automata, but that cannot be applied for statecharts for two reasons: no ...
7
votes
2answers
937 views

How does the 'on grid' node positioning in TikZ actually work?

I thought I knew how the on grid option of TikZ (cf. version 2.10 manual section 16.5.3 pages 186-187) worked, but the results I get are different from what I expected. I have a minimal example: ...
4
votes
1answer
207 views

How to draw hierarchical boxes with vertical lines of sight? [duplicate]

Possible Duplicate: Creating a node fitting the horizontal width of two other nodes I would like to draw a hierarchy of boxes where the borders of the boxes are vertically in the same line ...
19
votes
2answers
779 views

How to modify nodes in TikZ to automatically add a line on their top?

In TikZ there is the very flexible node system. As a beginner I am still stumbling over a few details. How can I modify a node or create my own nodes easily? As an example I need a node with a thick ...
7
votes
1answer
254 views

Tikz node and nonalphanumeric characters

I cannibalised some code from the thread Simple speech bubbles, arrows or balloon like shapes in beamer. It works really well, but crashes whenever non-alphanumeric characters are used in the node. ...
1
vote
0answers
91 views

mindmap problem [closed]

When compiling (on debian) the example in http://www.texample.net/tikz/examples/computer-science-mindmap/ I get a strange behavior of the central node (see attached image). have you any suggestion ? ...
9
votes
1answer
5k views

TikZ: text along path as node

I'm using the decorations library to put bended text along a path. That works fine. However, I'd like to have the bended text as a node, so that I can later use it as a reference (for instance to draw ...
10
votes
1answer
3k views

How to rotate a node and text independently in Tikz

How can I rotate the text inside a node independent of the node in tikz? Right now I am using the rotatebox. The other option I tried was to have two overlapping nodes. Is there a better way to do ...
6
votes
1answer
1k views

How to make different shape nodes in automata in TikZ?

This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit,calc,positioning,automata} \begin{document} \begin{tikzpicture}[shorten >=1pt,auto,node distance=7 ...
12
votes
2answers
535 views

Naming the nodes of `nodes near coords` for later use

I would like to use pgfplots command nodes near coords to get a list of named node ((no1), (no2), (no3) etc.) that I can use afterwards to draw some paths that I fail to construct with pgfplots only. ...
8
votes
1answer
207 views

How to build a trail of nodes from a path in tikz-pgf?

What I want: where the yellow line is the path to be transformed. The points inside the yelow line are the nodes after processing. The only way I found to do this is the intersection between a ...
6
votes
1answer
3k views

Position text next to rectangle in TikZ

Consider the following TikZ code: \filldraw[fill=black!40!white,thick] (0,1.5) node[above left] {start} rectangle (3.2,2) node[below right] {end} node [midway] {cp} ; It produces a rectangle at the ...