Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

Using tikz to strike out a beamer block

In this post I found this command to strike out words with a red cross: \newcommand\mycrossed[1]{\tikz[baseline=(A.base)] \node[cross out, draw= red, draw opacity=0.5, line width=1.5pt, ...
0
votes
2answers
62 views

Tikzpicture of 3 perfect hexagons overlapping

for some university stuff I need to align 3 perfect hexagons and they have to be overlapping, see attached image below. That means, I need equal distance between every pair of nodes. Of course I could ...
0
votes
0answers
25 views

Even spacing in multi-line text in matrix of nodes

I have a tikz matrix of nodes. The first column are "bullets" and the second column is the "text". I would like each line of "text" to occupy the same height. ...
0
votes
2answers
50 views

Adding vertical ticks at nodes on a horizontal like drawn with TikZ

I have the following minimal code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[solid, thick] (0,0) node [below]{0} -- (2,0) node [below]{$n-k$} -- (6,0) node ...
1
vote
2answers
33 views

How to align text in the article use tikz node to emphasize

I hope to use tikz to make some emphasized content in the article, I chose to use tikz to make this effect, But the nodes of tikz are not very beautifully aligned. Below is my code, how to make the ...
1
vote
2answers
92 views

Labeling an edge in TikZ

I'm new to TikZ (and LaTeX) and I'm trying to create a graph with nodes. I've been reading the manual and I've created a graph using the same method in the picture. I'd like to now label my edges, but ...
0
votes
1answer
35 views

TikZ/Pgf - I can't get “node” to work

I'm having trouble with some work and I would appreciate any help. I would like to add this kind of text into my project: And here's my code, I don't know why node[left]{$P^*=50$} and node[below]{$Q^*...
3
votes
1answer
146 views

How to animate an element that move along a path in Beamer?

I am new to Beamer/Tikz animation, I have been searching intensively and I have not found any answers to my specific case. Description: I have a graph of a process similar to a flowchart with several ...
2
votes
2answers
108 views

Tikz: Is it possible to align any two nodes by aligning their subnodes?

My question is: Is it possible to align any two nodes by aligning their subnodes? For TikZ nodes, is it possible to add a new anchor to an existed nodes? (for example: add node-b.north as an new ...
0
votes
2answers
58 views

How to change the text placement on edge Tikz

Consider the following code: \begin{tikzpicture}[ node distance = 35mm, vertex/.style = {circle, draw, text width=4.4em, align=center}, every edge/.style = {-Straight Barb, draw, semithick} ...
1
vote
1answer
101 views

Quantikz: equally sized gate boxes

I am composing a quantum circuit diagram using the LaTeX package Quantikz. My problem is that I want to have some gates equally sized, but don't manage to find a solution. Take this code: \...
3
votes
2answers
148 views

TikZ draw node border on top of image

I have an image inside a TikZ node. There should be a border around the image, with no gap. The border should have a specified line width. My problem is that the border seems to be drawn underneath ...
0
votes
1answer
45 views

How to increase size of rectangle and circle in \node and vertical lines inside the rectangle

\documentclass[12pt,table]{article} \begin{document} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows,positioning} \tikzstyle{arrow}=[thick,->,>=stealth] \usepackage{subcaption} \...
1
vote
1answer
67 views

Text alignment in a multi-column cell of a tikz matrix

I would like to use a matrix to create a legend in a plot. This matrix contains a cell whose width occupies two columns. I have a problem with the positioning and alignment of the text of this ...
-4
votes
2answers
89 views

Hoffmansingleton graph I would like to learn how to draw this graph in latex - [closed]

I need ideas on how to draw the Hoffman Singleton graph in LaTeX.
0
votes
2answers
73 views

Tikz: positioning of circular framed photo in top right corner of CV, with control over the frame thickness and color, and x/y position

My question is about photo positioning in Tikz. I am writing a CV, in which I want to insert a photo on the top right corner, with a circular shape and a frame, thickness and color of which I can ...
1
vote
1answer
64 views

How to center a sign in a node?

I want to center the sign for the node in the middle. How do I do it? \documentclass{article} \usepackage{float} \usepackage{tikz} \tikzset{ remember picture, SYMBOLI/.style = {rectangle, ...
1
vote
2answers
94 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
113 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
67 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
50 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
95 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
31 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
206 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
32 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
440 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
36 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
41 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
74 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
184 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
117 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
38 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
39 views

Draw path from split node part

I would like to draw something like the following: +-------+ | Alpha | +-------+ +---------+ | betas |----->| Beta | +-------+ +---------+ +--------+ | foo | | gammas |---...
1
vote
1answer
26 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{...
3
votes
1answer
131 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
109 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
26 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
110 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
94 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
52 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
51 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
193 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
95 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
54 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
33 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
56 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
48 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
26 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
51 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
78 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
2 3 4 5
7