{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

6
votes
1answer
164 views

circle node on an ellipse

I want to put this node on an ellipse at about the 35% mark \node[draw, circle, inner sep = .08cm, scale = .75] (location) {2}; \documentclass{article} \begin{document} \usepackage{tikz} ...
3
votes
2answers
2k views

Drawing a rectangular shape with a border around it in TikZ

Could anyone please tell me how do I draw a rectangular shape with a black border around it? I want that for all my rectangles in the following TikZ picture: \documentclass[tikz]{standalone} ...
13
votes
2answers
807 views

TikZ: shade also the border of a node

I would like to shade a node and the border of the node. The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a ...
4
votes
1answer
1k views

multiline label for node

Is there way of producing multiline label for node: \node[label=below:{unit\\cell}] (one){\tikz{\draw (0,0)rectangle (1,1);}}; The example produces "wrong" label output: untitcell However, ...
10
votes
1answer
4k views

Size of TikZ ellipse node

When I set the minimum size of an ellipse in a tikzpicture environment, it expands into a circle if the inner content does not grow as large as the ellipse shape itself. Is there any way around it? ...
5
votes
1answer
160 views

Creating a strikeout command

I am trying to create a command that works in mathmode which simulates a strikeout diagonally while leaving the math display intact. \documentclass{article} \usepackage{amsmath,amssymb} ...
9
votes
1answer
715 views

TikZ: adding nodes to a circular diagram from smartdiagram package

This is what I would like to achieve: My MWE is below: \documentclass{article} \pagestyle{empty} \usepackage{lmodern} \usepackage{smartdiagram} \usetikzlibrary{shapes.geometric} ...
2
votes
0answers
566 views

How to draw clipart icons in tikz? [closed]

Is there a way to draw clipart icons in tikz? Or is there a way to export them or should I use some other software for this purpose? I want to draw the following 5 icons:
5
votes
1answer
190 views

Fill a node shape

I am trying to fill a custom shaped node but as can be observed in the example below the fill does not occur naturally rather it uses its default shape to fill. Any insights? ...
4
votes
1answer
238 views

Positioning node at end of line

The following code fails to do what I want: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric,calc} \begin{document} \tikz{% \draw (0,0) -- (\textwidth, 0) node[draw, inner ...
5
votes
2answers
2k views

Overriding node draw style inherited from every node style messes up positioning

I have been trying to draw a tree with TikZ. All nodes should be circles, so I use the every node style. There are some additional labels on some nodes, which have to be exceptions. I have tried this: ...
5
votes
2answers
221 views

TikZ, node with multiple lines around

I want to draw a circle node using tikz that has more than two lines around. I found this question: TikZ - multi-color double circle node with its very good accepted answer. Unfortunately, I have no ...
8
votes
2answers
1k views

How put tick and cross mark around a node in tikz?

I want to draw something like this: This is my tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{trees} \tikzstyle{bag} = [text width=8em, text ...
3
votes
1answer
348 views

TikZ node positioning in Beamer ignores x coordinate

I have the following frame in beamer: \begin{frame}{Language} \begin{block}{} \begin{align*} \onslide<1->{ &\text{Types} & T &::= B | T \to T \\ } ...
5
votes
1answer
1k views

Tikz: How to split Nodes and position Text in it

I have a really big problem: I need a TikZ node that looks like that: but i have no idea how to split the node like that. Esecially the "more text" is a big problem. All i tried ended in errors. ...
3
votes
1answer
221 views

TikZ node in normal text

I would like to place a TikZ node inside normal text to get the fancy boxes. But the box is on the same baseline. I would like to get the text on the baseline. What can I do? \documentclass{article} ...
8
votes
1answer
300 views

Automatically place right angle indicator on normal vector

I'm trying to draw a normal vector on a curve, and use the usual "dot in an arc" symbol to indicate that. Here is what I have so far, which looks alright, but needed manual adjustment of angles and ...
3
votes
1answer
255 views

generate schematic diagram with shapes and curved path

I wish to generate the following figure: So far I have managed: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \begin{tikzpicture}[transition/.style = ...
1
vote
0answers
34 views

Undefined control sequence, when using font in tikz node [duplicate]

I get the following error when using font keyword in TikZ node Undefined control sequence ...t=\small,black,rotate=90] at (-1/4,22/4) { where the code is, \node[font=\small,black,rotate=90] at ...
2
votes
1answer
154 views

positioning nodes according to their sizes in tikz?

I produced the following output using the tikz code shown below. What I want is for the arrow on the right to have a fixed length relative to the rightmost symbol, not relative to the center of the ...
10
votes
1answer
550 views

TikZ path labels and --cycle

\draw (0,0) -- node{a} (2,0) -- node{b} (2,1) -- node{c} (0,1) -- cycle; I can't find a simple way to make a label on the last edge. What I want is something like \draw (0,0) -- node{a} (2,0) ...
5
votes
1answer
237 views

How to put node in an accurate place? How to use different style of font in TikZ?

I want to draw something like this: This is my code: \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tikz} %\usepackage[active,tightpage,floats]{preview} ...
5
votes
1answer
325 views

Controlling arrow distance from the destination node in TikZ

I'm trying to draw a simple diagram in TikZ. I used a code example from the documentation (code below). As you can see on the graphic: there is a problem with arrows that are not touching the ...
8
votes
2answers
351 views

How to draw container box in TikZ? How to get it with rounded corner?

I want to draw something like this: This is what I am able to draw: This is my TikZ code: \documentclass{article} \usepackage{verbatim} \usepackage[active,tightpage,floats]{preview} ...
10
votes
1answer
4k views

How to place label in middle of line (above and below) with TikZ

\fbox{ \begin{tikzpicture}[scale=1,auto=center] \node[circle,fill=gray!20] (n1) at (2,8) {Node A}; \node[circle,fill=gray!20] (n2) at (8,8) {Node B}; \foreach \from/\to in {n1/n2} \draw ...
11
votes
3answers
756 views

pgfplots - Add offset to pins

I'm trying to make a bar plot for an optimization parameter in quantum physics. To be more informative, the graph should display the values of these parameters above the bars. So far I did ...
6
votes
1answer
159 views

Simultanious use of relative positioning and “of” notation

A rather high node has a not so high node on its rigth side. I like the positioning and sizes, but i want both node to share the same Y-Axis of their north border. \tikzstyle{big} =[rectangle, ...
6
votes
1answer
2k views

How to get larger fonts than \Huge in nodes with tikz?

I need to write large fonts which are included in nodes of a tikzpicture. When I change scale, everything changes but not fonts. Here´s my code: \documentclass[10pt,a4paper]{book} \usepackage{tikz} ...
12
votes
1answer
3k views

How to introduce a line break in a TikZ node label?

I need to introduce line breaks into the label of a node. This is what I've tried so far, but none of it worked: 1: \node[node, label={[split parts = 4]alpha \nodepart{two} bravo \nodepart{three} ...
4
votes
1answer
2k views

How to place a textnode at the center of a drawed rectangle

A rectangle label does not appear inside the rectangle but on the corner of it. \tikzstyle{every node} = [align=center] \begin{tikzpicture} \draw (0, 0) rectangle (2, 2) node [center] ...
8
votes
1answer
378 views

how to use bullets and new line in a rectangle block of tikz? and how to draw arrows from particulat location of rectangle split node?

I want draw something like this: And this is what I am getting: I am facing three difficulties: How to get bullets inside a block? and how to use different font for the same? How to draw these ...
8
votes
1answer
488 views

tikz positioning of nodes

I want to generate a simple organigram with reasonable-looking distances in x and y direction. How can I get equidistant distances between the nodes? \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
263 views

anti-clockwise pathed curve for connecting nodes

I have a question which is no doubt simple to most people but I have been struggling with it for a while now. I have the following code: \begin{tikzpicture} % Add information on the process above ...
19
votes
1answer
7k 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
1k 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
2k 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
284 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
3k 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
10k 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
658 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
652 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
621 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
482 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
1k 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
449 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
324 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
292 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
183 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] ...