{nodes} is about nodes in {diagrams}.

learn more… | top users | synonyms (1)

2
votes
2answers
64 views

Tikzmark between syntactic tree and matrix?

I am trying to draw a line between the S node and the matrix, but have not been able to get it to work. What am I doing wrong? MWE: \documentclass[a4paper,12pt]{article} \usepackage{fontspec,tikz, ...
2
votes
1answer
44 views

Improve flow chart template with rectangle split

I'm try to build a flow chart template: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts,amssymb,graphicx} \usepackage[left=2.00cm, right=2.00cm, ...
3
votes
2answers
69 views

Tikz \draw as part of style (Drawing something inside each node of certain type)

I'm currently learning how to use Tikz and was looking into drawing automata (specifically Simulink-like state models). Currently, I'm making a style that should reduce my efforts to a minimum when ...
4
votes
1answer
35 views

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
5
votes
2answers
108 views

Label above node in TikZ

I wish to add a label above a node that already contains a label. \begin{tikzpicture}[scale=0.8,every node/.style={draw=black,circle}] \node (a) at (0,0) {a}; \node (b) at (2,0) {b}; ...
4
votes
2answers
62 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 = ...
5
votes
1answer
732 views

What exactly does `inner sep` mean when node shape is circle

inner sep is not behaving as I would expect: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] \coordinate (P1) ...
23
votes
3answers
4k 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 ...
1
vote
2answers
46 views

Tikz obtain node coordinates

In tikzpicture, how do I get a single coordinate of a node? This is the circuit I'm making, and I need to know the x coordinate of the node (opamp.out) so that i can make R2 vertically aligned with ...
4
votes
2answers
128 views

Draw matrix with specific style in TikZ

I'm wondering how could I draw a matrix like that: I know how to draw a simple matrix: \documentclass[journal]{IEEEtran} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usetikzlibrary{matrix, ...
4
votes
2answers
84 views

Two-lined brace in tikz node

I want to produce a timeline in the tikzpicture environment that looks like this: But my code, gives me the following: So I need the brace around both lines of my node! My code now looks as ...
1
vote
1answer
46 views

Textbox Nodes Won't Appear In Diagram

I am trying to create a simple venn diagram with the labels a,b,c with a U in the right hand corner of the box like this picture: I have created the venn diagram the way I wanted to, but I can't ...
2
votes
1answer
85 views

How can I put a minipage that fits to the actual line width inside of a TikZ Node?

Question I would like to put a minipage environment inside of a tikz node. I know this is done already with the align=left command, but if you set a minimum width of the node to \linewidth, then the ...
5
votes
1answer
125 views

How can I draw a relation with rectangular nodes?

I am trying to use nodes to draw a simple relation in two figures. Basically what I want looks like this: How can I do that using tikz? The two relationships should be next to each other. I think if ...
16
votes
2answers
10k views

Increase the thickness of node border in TikZ

Suppose I have a node in the shape of a circle. How can I make its border thicker? \node[circle, draw=blue!80, inner sep=0pt, minimum size=12pt] (1) at (0,0) {1};
3
votes
2answers
108 views

How can I add more coordinates to standard TikZ shapes?

Question I would like to know how to add an arbitrary number of coordinates to the default shapes of TikZ—particularly to the side of a polygon. Sample This is similar to ...
13
votes
2answers
1k views

TikZ style attribute for adding default node text?

Is there a TikZ style attribute for adding default text to a node? For instance, I want to be able to do something like the following: \begin{tikzpicture}[% stuff/.style={% draw, text=Bla ...
7
votes
4answers
243 views

With TikZ is it possible to pass the node content through a preprocessor?

I've written a macro that scans its content for illegal characters and then changes them to something more appropriate. In the following example, the macro scans for _ and replaces them with ...
2
votes
2answers
68 views

How to change the size of the name of a node, in a tikzpicture

This is my code, in this code, the names of the nodes appeared very small, How could I modified this size? \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} ...
1
vote
0answers
37 views

How can I make the node order for references in TikZ not matter?

Question I am wondering if it is possible to make the order of nodes irrelevant, such that references work regardless of when they are mentioned...like some kind of pre-parsing of the code that ...
3
votes
1answer
80 views

Thought bubble in latex

I wish to draw illustration nodes with text box as shown, But my latex is poor. Any startups?
5
votes
1answer
63 views

tikz-qtree does not work with node

I am trying to create a tree using the tikz-qtree package. But I keep getting the following error. ! Paragraph ended before \@@@@litlabel was complete. Here is my tex-file: \documentclass[a4paper, ...
3
votes
1answer
40 views

node positioned by fit: how to center a node text?

I wonder why node's text of node positioned by fit is not centered? Edit: As suggested Peter Grill in his comment, I change previous MWE with more realistic example: ...
2
votes
3answers
139 views

Strange graph in tikz

I want to make a strange graph in tikz. This graph has some nodes inside the nodes... like this figure: I tried this: \newcommand{\twonodes}[2]{% \begin{tikzpicture}[node distance=0.7cm] ...
1
vote
1answer
59 views

Tikz nodes with `fit=(top)(bottom)` slightly missized

I like to create textboxes via TikZ. I start with that flexible example. And, Yes :) I do create texboxes. Here it is. But I still have two problems.. Q1 I use fit to create light gray ...
3
votes
2answers
57 views

boundary around nodes corresponding to euler walk

How can one automatically draw the red line corresponding to euler walk in tikz. I tried using beizer curve, and a lot of other methods, but had to finally set coordinates manually to get somewhat ...
4
votes
2answers
114 views

Is there an easy way to have node border anchors centered on the borders?

I would like to place nodes with given distances relative to each other. For consistence with other drawings these distances have to be very accurate. Node border anchors are placed at the outer ...
2
votes
2answers
100 views

Tikz: connect two nodes

I have many nodes and want to connect two of them, but in such way that the path is not scratch off nodes, which are between these two like in the example below (I want to connect L_0 and R_0): To ...
3
votes
0answers
98 views

Scalable node shape size

I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale ...
3
votes
3answers
162 views

Size of circle path vs. circle node in \pgfdeclareshape?

I'm trying to "overload" a rectangle node as a custom shape, such that it has a circle on its south west corner. In the MWE below, I use \circsize to set the size of the circle - and for testing ...
3
votes
1answer
898 views

Varying edge thickness

A couple of months back, I had asked a question regarding an elegant way of drawing a somewhat sophisticated graph. Thanks to the community I received tremendous help. To avoid repeating the whole ...
4
votes
1answer
82 views

Filter tikz node text through macro

I would like to make a node style that "filters" the node's label (text) through a command, i.e. replace the node text with a macro, with the original node text passed as an argument to that macro. ...
7
votes
2answers
2k views

Accolade to take objects together in TikZ

Is there a way to draw an accolade ({-symbol) that groups things together in TikZ? I want the accolade to group let's say three rectangles. That means the top of the upper reactangle must be the top ...
7
votes
1answer
380 views

Custom TikZ node with svg path not clipped

I would like to make a custom node shape with a small picture (on north east) using the svg directive of TikZ, because the picture comes from a svg path. As you can see with this simple code, the ...
37
votes
2answers
32k views

How to change the size of nodes?

How is it possible to change the size of a node, for example: \begin{tikzpicture} \draw node[fill,circle]{} (0,0);% \end{tikzpicture} How to make the circle smaller or larger?
8
votes
4answers
305 views

Tikz: Equal sized nodes with different text

I am new here to Tikz and I need to draw 2 rows of nodes that are identical in size but having different text of different length in it. Sure the upper and lower nodes should have enough room for the ...
1
vote
1answer
62 views

How to add a text label to a line in a block diagram

I'm very new to LATEX and I'm trying to set a block diagram and at the same time format it exactly as I'd like, please see my block diagram below: https://www.writelatex.com/1492096yphfwt#/3712155/ ...
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? ...
7
votes
1answer
737 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, ...
3
votes
1answer
105 views

Overlapping labels in tikz barplot

I have a problem with the placement and size of nodes in my barplot. I changed the size in the code from \small to \tiny: every node near coord/.append style={font=\tiny} but, the numbers are still ...
5
votes
1answer
131 views

TikZ node label distance depends on length when using tikzstyle

When I include circle in the every node style, the distance from the label to the node depends on the length of the label: \documentclass{standalone} \usepackage{tikz} \begin{document} ...
3
votes
1answer
62 views

Why the background of a pgf fitting node with minimum width equal to another (backgrounded) fitting node's width is shifted?

I have two pgf fitting nodes: one below the other, left aligned, with different (unpredictable) widths, and I'd like them be backgrounded, with backgrounds of the same width. For this, I got help ...
7
votes
2answers
260 views

TiKZ node name prefixes in scopes

I am using TiKZ to draw two copies of the same graph above each other, and now I want to add edges between a vertex in one copy and a vertex in the other copy. It suddenly occurred to me that it would ...
4
votes
1answer
93 views

pgfplots One node or pin to multiple points

This has been driving me insane, I've searched and checked the pgfplots manual but can't find the relevant section: consider the snippet: \documentclass{article} \usepackage{tikz, pgfplots} ...
3
votes
1answer
140 views

Differences between paths drawn between nodes and coordinates in tikz

Referencing this very helpful posts and the Tikz manual, which states: Whenever TikZ encounters a whole node name as a “coordinate,” it tries to “be smart” about the anchor that it should choose ...
5
votes
1answer
141 views

How can I put text in squares?

How can I put text in squares? Please see my code: \definecolor{MainRed}{rgb}{.6, .1, .1} \def\bigrectangle{(-7,-1) rectangle (6.5,4.7)} \def\firstrectangle{(-9,0) rectangle (-5,4)} ...
5
votes
2answers
159 views

Small tikz decorated arrow between words inside a tikz node

Effectively, what I want to do is very simple but I am not sure where to go. I have several nodes of the following form \node (1) at (0,0) {text1 $\rightarrow$ text2}; \node (2) at (0,2) {text2 ...
4
votes
1answer
255 views

Different shading for multi-parted tikz node

Please consider MWE below: \documentclass{standalone} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \usepackage{lipsum} ...
5
votes
1answer
160 views

Setting minimum size for tikz node using default unit length

I have two node styles with a minimum size set to 7mm and they look perfect: \begin{tikzpicture} \tikzstyle{style1} = [circle,draw,fill=white,minimum size=7mm,font=\Large]; ...
3
votes
2answers
133 views

How to add frames around a group of nodes in tikz

I have this beautiful tikz diagram of my program that I have created : The different colours correspond to different programs, so I would like to know if there is a way to add a frame around each ...