Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
85 views

What do “-to” and “pre=moveto” do in TikZ arrows?

On page 61/1318 TikZ manual there is an example which I simplify and change it a little bit to create the following picture: Here is my code: \documentclass{standalone} \usepackage{tikz} \...
3
votes
2answers
90 views

Vertical alignment of text in two TikZ nodes with and without math

When placing nodes next to each other, some with and some without math, the vertical alignment of the text ends up looking mismatched between the two nodes (example below). Is there an easy way to ...
0
votes
1answer
51 views

What does “on grid” do in TikZ?

On page 60/1318 TikZ manual there is an example to draw a Petri net as below: Below is my code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary {arrows.meta,backgrounds,fit,positioning,...
1
vote
1answer
48 views

A Question Regarding TikZ [every label/.style={red}]

In the TikZ manual page 55/1318 there is an example to create a red label as below: Below is my code to repeat the example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary {positioning} \...
0
votes
2answers
69 views

Draw a decagon in LaTeX

I need to draw a graph with 10 nodes in LaTeX. I thought about doing it with tikz and try to give exact coordinates to draw a decagon but I don't know what coordinates to give.
0
votes
1answer
30 views

How does the distance between the center of the north anchor and the north of the node vary by the string length inside the anchor? [closed]

I measured the distance between the center of the north anchor and north of a node and got 7.20068 pt which is 0.1 inches. This is for a especial case as below: Here is my code: \documentclass{...
5
votes
2answers
170 views

How to measure accurately the distance between TikZ nodes centers when using relative placement?

I want to measure accurately the distance between TikZ nodes centers when using relative placement. My answer is around 1.55 cm but this is ballpark. Below is my code: \documentclass{standalone} \...
1
vote
1answer
28 views

The Geometrical Meaning of inner sep in Adjusting the Node Size in TikZ

In the Tikz manual page 53/1318, there is an example to adjust the node size to get a group of circles and squares as below: The spacing between the two centers of the circles is exactly 1 cm. So ...
8
votes
2answers
405 views

A Question Regarding TikZ ellipse

In the Tik Z & PGF Manual for Version 2.10-CVS, page 130/880 there is an example to create a pair of a circle and an ellipse as below: Below is the code I used: \documentclass{standalone} \...
0
votes
1answer
33 views

Why fill work bad with nodes but okay with coordinates or anchors?

It seems to me that (path) fill command in tikz doesn't work quite well with (default) nodes. See the example below to understand what I mean. \documentclass{article} \usepackage{tikz} \begin{...
0
votes
1answer
27 views

Setting width of a TikZ node to textwidth

I am trying to create a colored box with some text in TikZ. Here is my dirty code: \documentclass[a4paper,12pt]{extreport} \usepackage{fontspec} \usepackage{pgf} \usetikzlibrary{calc} \usepackage{...
3
votes
1answer
46 views

Tikz foreach path between nodes starts at wrong position

This picture has been generated by following code. In red circles the edges start/end not on the correct side of the node. \documentclass[tikz]{standalone} % =========================================...
5
votes
1answer
77 views

tikz node rotation and positioning

If I specify /tikz/rotate=<degree> in some path other than node, it means rotating the coordinate system by <degree>. Consider following example: rotate option inside a node seems to ...
0
votes
1answer
90 views

How to draw a complicated tikzpicture in LaTeX

Recently, I am learning to use LaTeX to draw a tikzpicture, and found there was a attractive figure in the IEEE paper. May I ask how to draw the figure like this? I know there is the /node structure ...
1
vote
1answer
33 views

tikz center and fit the text into a Node

I have been having difficulties to make nodes fit the text in tikz. What I have done so far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows, chains, fit, quotes,positioning} \...
3
votes
1answer
35 views

Draw path from split node part

I would like to draw something like the following: +-------+ | Alpha | +-------+ +---------+ | betas |----->| Beta | +-------+ +---------+ +--------+ | foo | | gammas |---...
1
vote
1answer
23 views

Node distance command not working

I am trying to make the tables closer to the nodes by specifying node distance. Code: \documentclass[12pt]{article} \usepackage{array} \newcolumntype{C}{>{$}c<{$}} \usepackage{tikz} \usepackage{...
4
votes
1answer
104 views

How to draw this customized node in TikZ?

I am creating an activity-on-node project diagram for my Critical Path method lecture. I could able to create the customized node for the same as indicated in the attached image. However, I would like ...
1
vote
1answer
71 views

How to create this custom node and arrow in TikZ for network diagram?

I am creating an activity-on-arrow project diagram for my Critical Path method lecture. I could able to create the customized node for the same as indicated in black color in the attached image. ...
1
vote
1answer
21 views

Symmetrical touching arrows with variable node sizes and positions

I search a solution for symmetrical touching arrows in the mid point with variable node sizes because of changing content. Schrödinger's cat helped me already to get this code: \documentclass[tikz,...
1
vote
1answer
48 views

How do I put a rectangular box around a figure?

i need to put a bounding box around a cropped image of which I don't know the dimension in cm how can I do it ? This is the code I'm using and the image. \documentclass{article} \usepackage{tikz} \...
0
votes
1answer
30 views

Send node to front tikz

Like the neanderthal I am, I chose to make the following graph in tikz as such: \begin{tikzpicture} \draw[fill=blue] (-1,0) circle (3pt); \draw[fill=blue] (-1,0.5) circle (3pt); \draw[fill=blue] (-1,...
2
votes
1answer
43 views

Terminal Leaf Node Circle

This is a follow up question to this. Code: \documentclass[12pt]{article} \usepackage{istgame} \usepackage{tikz} \usetikzlibrary{shapes,arrows.meta, positioning} \begin{document} \begin{...
1
vote
1answer
48 views

How to center a circle node on the terminal payoff value?

I am trying to draw a "not allowed" (big X) or "crossed out" (circle with slash) sign on some of the leaves as shown below: Code: \documentclass[12pt]{article} \usepackage{istgame} ...
3
votes
3answers
177 views

make line exit at edge of box

I have a simple problem with tikzpicture. I wanted to have the line exiting the box labelled 10 from its right edge on the box outline. Here there is my code: \begin{figure}[H] \centering \...
3
votes
1answer
78 views

Create cutout of rectangle, where cutout is also node

I'm trying to overlay a picture with a semiopaque rectangle, then cut out some shapes (rectangles and circles) so the image is clear in those, then point to the cutouts with something like tikz \pin ...
4
votes
2answers
48 views

Tikz Node command not shifting its position correctly

I am trying to make a table that is 4.5cm to the right from the node D, then shift it down 1 cm from there (shift 4.5cm right, then shift 1 cm down). Here is my code: \begin{figure}[H]\centering ...
0
votes
2answers
31 views

Alignment of tikz nodes fails

In what seems the simplest possible diagram ever the first node won't align to the left, and that's where I want it. I tried quite a lot, only if change the second node from below left = of n1 to ...
0
votes
1answer
36 views

Make TEX TIKZ FIGURE Symmetrical with Arrows

\begin{tikzpicture}[->,shorten >=1pt,auto,node distance=3cm, main node/.style={draw}] \node[main node] (1) {A}; \node[main node] (2) [right of=1] {B}; \node[main node] (3) [right of=2] {...
1
vote
1answer
35 views

Tikz Loop Size Different (Make It The Same!)

\documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, calc, chains, positioning} \begin{document} \begin{...
1
vote
1answer
25 views

tikz node with left adjusted text

I'm doing a figure in tikz with different layers on top of each other and the last layer requires me to rotate the rectangle 90 degrees. My problem is how do I make the text left-aligned? The align ...
2
votes
1answer
46 views

Draw curve over nodes in a Tikz network

How to plot a curve path along nodes in a tikz plot? Just like the image below, the path must be thick and crossing nodes Here is a MWE; the desired curve should be like the ones in this answer, but ...
1
vote
2answers
71 views

How to draw vertical arrows next to nodes with tikz?

I'm trying to recreate the following block diagram with Tikz. I created the block diagram with the following code: \tikzstyle{node}=[draw, fill=pink, minimum width=4.2cm] \tikzstyle{init} = [pin ...
1
vote
1answer
128 views

How to draw a 3 phase transformer in Circuitikz

I am trying to draw the following figure in circuitikz. I am able to draw the capacitor and the mosfets so far. However i am stuck at how to draw the 3 phase transformer. this is what I have so far ...
1
vote
2answers
70 views

Split circle node vertically depending on text length

I am looking for solution that allow me split circle node vertically but the splitting line would be placed depending on text width. I think the nearest solution could be similar to this one. I am ...
0
votes
0answers
26 views

Fixing node size and text alignment in Neural Network

I was able to modify the Latex Neural Network in the answer given by Aymon here Neural Network Tex However I can seem to do a few things get the outputs to be equivalent to the output nodes, for ...
5
votes
2answers
180 views

tikzpicture shape label with curves

This may be a very simple question. To the square I have below, how would I add the label shown in yellow? \documentclass[]{article} \usepackage[margin=0.5in]{geometry} \usepackage{pgfplots} \...
0
votes
1answer
59 views

In tikz, can I write single long nodes as multiple short nodes?

Suppose I have the following in tikz: \node[right] at (0,0) {$A=\{1\}$}; But I would like to write this as five separate nodes, each representing a character in the above. In other words, one node ...
2
votes
1answer
39 views

Add note with text in 3D plot

I basically want to use this command \node at (0.1,0.1) { \colorbox{white}{\textcolor{black}{$A$}}}; and just add one dimension for 3D. Unfortunately this does not work and the internet just explains ...
0
votes
0answers
39 views

Why there is no default text align to produce a line break inside a node?

Example: \documentclass[letterpaper]{letter} \signature{Assistant director of the intergalactic unit} \usepackage{tikz} \begin{document} \address{Gallifrey, Binary Start System} \begin{letter}{My ...
0
votes
1answer
121 views

Label intersection point of two curves in pgfplots

I want to label the intersection point of the green and red curve. Anything I tried didn't work. Can somebody help me? This is my code so far. \usepackage{pgfplots} \pgfplotsset{compat=1.11} \...
1
vote
1answer
53 views

Align node text in tikZ graph

I have the following tikz picture but I can't figure out how to properly align the characters on the left (A,B,C,D,E). I'm pretty sure there's a better way than how I did it with the node labels. Any ...
1
vote
1answer
70 views

Edge between two tikz pictures

I am trying to draw some edges between tikzpictures in latex. I will post the code sample and a picture of what it looks like and a pic that gives an idea of how I would like the edges to look. I have ...
4
votes
1answer
52 views

Spacing between figures in \matrix of tikz

I'm trying to put 4 figures with unequal heights in a matrix. My code which you can compile here is: \documentclass[journal=aamick]{achemso} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \...
0
votes
1answer
37 views

Creating a node for an optical splitter

Could you please help me creating a node of an optical splitter, that has two input ports and two output ports? The shape is as follows: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{...
4
votes
3answers
197 views

Missing node when using Tikz package

I am using the Tikz package to create a flow chart in LaTeX. When I compile the code below I get two errors: The node for Group 1b (and the nodes below it) that derives from Level B1 is missing from ...
1
vote
0answers
45 views

Latex Beamer: draw arrow and text on resized tikzpicture but text should have same font as presentation

I make a presentation and there I have a tikzpicture scaled with resizebox. I now want to draw an error to a tikzmark, but the node text at the arrow should have the same font size as the rest of the ...
1
vote
1answer
45 views

Circuitikz, draw a component within a node

using circuitikz (siunitx), I would like to draw a diode within a rectangle, but the option to place text within a node doesn't allow that: \draw (0,0) to node[draw,rectangle, fill=white] {a diode ...
0
votes
0answers
25 views

Custom node shapes without low level pgf

Is there a way to define custom node shapes in TikZ without having to deal with a lot of low-level pgf? So, imagine I have some TikZ commands that draw some shape, a TikZ path giving the bounding box ...
0
votes
1answer
59 views

TikZ: Node names with a “.”

In TikZ, for some node (x), one can use e.g. (x.west) to refer to anchors of the node x. If I try to by hand define a coordinate with a "." in the name, this doesn't work: \coordinate (x.test) at (4,...

1
2 3 4 5 6