Questions tagged [tikz-node]

{tikz-node} is about nodes in {diagrams} created using TikZ. A node typically consists of a shape which may or may not have a border and a filling, as well as some (text) content but it may also be empty. It can be connected with other nodes or parts of the diagram via edges.

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

How to draw the shape shown in the below image using tikz?

\documentclass[12pt]{article} \usepackage{graphics} \usepackage[dvipsnames, xllsnames, svgnames, table]{xcolor} \usepackage{tikz} \usepackage{tikzpagenodes} \usetikzlibrary{arrows, shapes, ...
Vishakha's user avatar
2 votes
1 answer
64 views

Text color in a node in a beamer style

I wrote a simple .sty file building on the 'metropolis' beamer theme + fontspec + Fira fonts. I like in the title page the idea of authors and institutions appearing like in the MWE, i.e., one line ...
millo's user avatar
  • 45
1 vote
1 answer
62 views

Create an Asymptotes Summary Diagram for a Function

I would like the figure to resemble the following: However, the figure I produced does not match this description here is my attempts \documentclass[]{article} \usepackage[left=.5cm,right=.5cm,top=...
Educ's user avatar
  • 4,352
1 vote
2 answers
96 views

Why there's a gap between the right of the picture and the page's right edge when I used "scope fading=south"? How can I remove it?

The MWE is \documentclass{book} \usepackage{xcolor} \pagecolor{red} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture}[remember picture,overlay] \node [anchor=north,...
Axia's user avatar
  • 141
1 vote
1 answer
57 views

Overlay a TikZ node into an mdframed

I'd like to place a small piece of text at the upper right of an mdframed box that I'm using to display source code for a program. Here's what I have tried: \begin{mdframed} \begin{minted}{swift} ...
Ray Toal's user avatar
  • 121
2 votes
2 answers
79 views

Jump crossing in circuitikz

I wanted to draw a jumping node to the intersections of leg1 and voltage. If you can run the code you will probably understand why I mean. I tried to[crossing] and naming the intersection point then ...
Barbaros Teoman Kosoglu's user avatar
2 votes
1 answer
44 views

Vertical mode inside a Tikz node, with \textit or \emph

I want to write a two- or multiple-line text in italic inside a tikz node. But I always get an error. Please help me with this. MWE: \documentclass{article} \usepackage{tikz} \usepackage{fontawesome5} ...
stargazer45's user avatar
1 vote
1 answer
113 views

How to place nodes on a Tikz plot

I have this curve made with TikZ: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [cyan,line width=1mm] plot [smooth, tension=2] coordinates { (0,0) (5,...
Andros's user avatar
  • 167
1 vote
0 answers
34 views

Relative positioning of tikz pic containing multiple nodes

I have a tikz pic that contains more than one node, but I am running into a problem when trying to position the pic relative to something else. \documentclass{standalone} \usepackage{tikz} \...
Frink's user avatar
  • 47
2 votes
3 answers
196 views

Reuse of a node in Tikz

For a project that I am working on, I am making a tikz picture and need to have the same node multiple times. Is there a way (such as \tikzset or other) that I can define a node once and then reprint/...
AndyH's user avatar
  • 135
2 votes
1 answer
77 views

Why don't pic prefixes in TikZ work with matrix cell names?

When I have a pic whose code includes a matrix, things don't work when I use a name prefix for the pic: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{...
Frink's user avatar
  • 47
0 votes
1 answer
80 views

How to remove the margin of the command `\includegraphics[options]{name}`?

Just like the picture below, I have a pdf page that its width is 6.32 inch and its height is 8.18 inch, and I used tikz making a rectangle which has the same width and height as the pdf page in ...
Axia's user avatar
  • 141
1 vote
1 answer
47 views

TikZ: distance between edges of nodes

I want to be able to control the distance between the edges of nodes in TikZ. In the below example, I want the left edge of "Node B" to be exactly 5 cm from the right edge of Node A. However,...
TheDon's user avatar
  • 745
1 vote
2 answers
89 views

Text misaligned with node border when TikZ matrix cells are combined

I tried to combine two cells into one in a TikZ matrix: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \matrix (...
Frink's user avatar
  • 47
1 vote
1 answer
46 views

Is it possible to keep the fading background on the node without showing the back of the drawing?

I have just discovered the fading library of the software and I find it curious that I have not found an easy method to not show the back drawing, that is to say that the background of the node is ...
Alejandro Munoz Ossa's user avatar
0 votes
0 answers
39 views

Node on the ends of an arrow sign

I have a plot where I have 2 arrows with nodes. For the red one I used \draw [<-,red,line width=0.6pt] (6,8) -- (30,8) node [right,black,draw=red,fill=white] {$\dfrac{a}{b}=\dfrac{3}{2}$}; command, ...
Gagik's user avatar
  • 359
0 votes
2 answers
93 views

Lighten background of tikz node

In a TikZ picture, I am placing text nodes on a dark background. To enhance visibility, I want to lighten the background behind the node, irrespective of what it is. Thereby it would be nice if the ...
Andi Bauer's user avatar
0 votes
1 answer
63 views

Tikz: draw arrow as node inside axis environment

Yes I know there's a similar question, but I'd need something simpliest. I would like to reproduce this image, and my idea was to draw the two arrows (the ones corresponding to m=+1/2 and m=-1/2) as ...
user3713179's user avatar
1 vote
0 answers
33 views

positioning overlay node in tcolorbox

hi i am trying to move this image of a frog above the tcolorbox, or possibly clip it such that it is 'below' the tcolorbox and appears cropped. sorry, i have no experience with tikz and nodes. the ...
apathyy's user avatar
  • 13
3 votes
2 answers
71 views

The spacing is not the same after defining the absolute position of the node?

I defined the absolute position of the node, and the difference between their vertical coordinates is fixed y. However, the distance between them is different in the picture display. How to solve it? \...
Zhao Dazhuang's user avatar
0 votes
0 answers
58 views

How to draw regions around nodes and edges in Tikz picture

I want to reproduce this kind of graph by using tikz : I already made a Tikz picture with just the colored nodes and edges but I haven’t found a way to draw the shape that fits nicely around the ...
maitrehihois's user avatar
0 votes
1 answer
50 views

Tikz:How to achieve the effect in the picture aesthetically?

what i want to achieve: my code: \documentclass{article} \usepackage{tikz} \begin{document} \centering \begin{tikzpicture}[thick] \draw (-1,0) rectangle (16,10); \draw (10,...
Barry Alen's user avatar
0 votes
2 answers
53 views

Can I create nodes along the path in this case?

Take this example from the doc: \begin{tikzpicture} \node foreach \name/\angle in {a/0,b/90,c/180,d/270} (\name) at (\angle:1.5) {$\name$}; \path[->] (b) edge node[above ...
Enlico's user avatar
  • 2,572
5 votes
4 answers
458 views

TikZ, fill the space between two paths

I would like to fill the space between the central semi-circumference and the solid black lines above. \documentclass[tikz,border=1.5cm]{standalone} \usepackage{tikz} \usepackage{pgfplots} \...
BowPark's user avatar
  • 1,181
0 votes
1 answer
71 views

TikZ, draw along a path

I have two semi-circumferences with an intersection point defined as E. I want to use different line style/color along them. For this purpose, first I used path to define the semi-circumferences. Now ...
BowPark's user avatar
  • 1,181
3 votes
2 answers
210 views

Sloped label on arrows in Tikz not parallel to its arrow

I would like to have the sloped label long expression for both arrows on the diagonal of my tikz-picture to be parallel to the arrows' direction. By using a longer sloped argument for the Fourier ...
Ian's user avatar
  • 49
2 votes
1 answer
85 views

Node spacing in TexLive 2023

As far as I know (and from this post), in previous versions of TexLive, it was enough to set inner sep=0pt to have a node with no spacing. But in TexLive 2023, it seems that this is not enough. I also ...
C.F.G's user avatar
  • 552
4 votes
2 answers
168 views

How to vertical center a TikZ node within a text line?

My MWE: \documentclass{scrreprt} \usepackage{tikz} \begin{document} Text \tikz\filldraw [lightgray,radius = 1pt] (0,0) circle[anchor = north]; more Text \tikz\filldraw [black,radius = 1pt] (0,0) ...
Su-47's user avatar
  • 2,478
1 vote
0 answers
23 views

square bracket in tikz node annotation makes XeLaTeX compilation failed [duplicate]

When I'm using tikz to draw graph with text annotation, I've met a problem that simply adding "[]" around text in annoation would make the compilation using XeLaTeX fail. For example, this ...
Lucida's user avatar
  • 11
1 vote
3 answers
90 views

Creating tikz picture | Problem with arrows and labels

I am pretty new on TikZ and I want to create a diagram for my measure class. I created the following picture: \documentclass{standalone} \usepackage{float} \usepackage{amsfonts} \usepackage{mathrsfs} \...
Topology G's user avatar
7 votes
5 answers
1k views

Draw a rectangle with partly invisible edges, only corners

I want to create the following: That is, a rectangle with partly invisible edges. How can I do that? What I have now: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
tush's user avatar
  • 1,115
7 votes
1 answer
368 views

Find the coordinates of a point in a TikZ picture, with respect to the borders drawn by standalone package

Consider a TikZ picture with a circle centred at (0,0) in the TikZ coordinate system. Surrounding the node is a complex shape, such as a curve as shown below. In the standalone package, the border is ...
Sam's user avatar
  • 113
0 votes
1 answer
60 views

how do I draw the following?

I am trying to convert the image below into tikz. So far what I got is: \documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage{tikz} \begin{document} \begin{...
kloop's user avatar
  • 9,614
0 votes
1 answer
49 views

Equation is not centered inside the diamond node

Here is my code: \tikzstyle{decision} = [diamond, minimum width=2cm, minimum height=1cm, text centered, draw=black, fill=green!30] \tikzstyle{arrow} = [thick,->,>=stealth] \begin{...
j.doe's user avatar
  • 131
1 vote
0 answers
45 views

How to code custom nodes with texts accommodating a round tikz mindmap?

\documentclass[portrait]{a0poster} \usepackage{tikz} \usepackage{amsfonts, amsmath, amsthm, amssymb} % For math fonts, symbols and environments \usepackage[utf8]{inputenc} \usepackage{dtklogos} \...
Reza's user avatar
  • 811
0 votes
1 answer
21 views

Tikzset node with centered custom text

Alright I'm giving up. I want a custom node that looks like a common PI&D turbine or compressor symbol: \tikzset{TC/.style={ minimum height=2cm, minimum width=2cm, path picture={ \...
Felix's user avatar
  • 49
1 vote
0 answers
87 views

Displaying Text on top of a media9 \includemedia display (3UD model)

Is it possible to display text (also tables, images, etc) on top of a media9 U3D model? I have tried the using a tikz node, as you would with images, but I simply get: whereas what I would like is: ...
Dave's user avatar
  • 11
3 votes
1 answer
48 views

Why \pgfmathheight doesn't give the write height value

I want to know the height of a tikz node before drawing it, so I found a pgf command name \pgfmathheight who can give me the height of a char in pt. But actually when I try it with certain character ...
le_riz's user avatar
  • 61
1 vote
0 answers
88 views

Dynamically adapting text area according to a given shape [closed]

I am trying to replicate single parts of this poster, and I was thinking of using TikZ multi-part nodes for filling in images and text, so not to first draw the shape and then figure out how to fit ...
jackb's user avatar
  • 518
-1 votes
2 answers
71 views

put text at different height with tikz node

I want to position a text at a certain height. If put at (5,60) or any other number. It dosen't change the position on my pdf. What to do ? \documentclass{article} \usepackage{tikz} \usepackage[left=...
Houda Araj's user avatar
2 votes
1 answer
145 views

Draw an arrow to the edge of a node in a tikzpicture

I have written this latex document: \documentclass[dvipsnames,aspectratio=169,10pt,fleqn]{beamer} \usetheme{Madrid} \usefonttheme{serif} \usecolortheme[named=Mahogany]{structure} \usepackage{tikz} \...
diedro's user avatar
  • 179
1 vote
3 answers
176 views

tikz picture | path from a path?

I'm trying to generate the following, which took about 60 seconds in my favourite vector-drawing too, but I'd like some advice on how to render the same thing using tikz: I've cobbled together a MWE (...
Johnny Canuck's user avatar
1 vote
1 answer
171 views

Putting minted code inside TikZ node causes missing \item error [duplicate]

When I put some minted code inside a basic rectangular TikZ node as follows: \documentclass{article} \usepackage{tikz} \usepackage{minted} \begin{document} \begin{tikzpicture}[] \node[rectangle](a){ ...
Lars Malmsteen's user avatar
0 votes
2 answers
102 views

Align center doesn't work when text overflow in tikz

I have an example below. I'm trying to force the text to be in the center of the nodes. \documentclass[tikz]{standalone} \usepackage{mwe} % For dummy images \usepackage{mathtools} \usetikzlibrary{...
stevew's user avatar
  • 239
1 vote
1 answer
35 views

Can I make the intersection between the vertical through an `xshift`ed or `yshift`ed node and another node?

From here In general, the meaning of (⟨p⟩ |- ⟨q⟩) is “the intersection of a vertical line through p and a horizontal line through q”. so (p |- q) makes perfectly sense in a \path or whatever. At the ...
Enlico's user avatar
  • 2,572
0 votes
1 answer
61 views

Draw a line from a multi-line boxed text to a node

I've drawn a multi-line box around a text in a paragraph using the code at multi-line-box-around-a-sentence-in-a-paragraph For simplicity, let's call this multi-line boxed text as highlighted text. ...
Lars Malmsteen's user avatar
2 votes
3 answers
88 views

Tikz: how to attach labels to edges in trees where some nodes are missing?

I want to grow a tree that has some nodes empty/missing so that the lines directly connect: \begin{tikzpicture} \coordinate child { child {node {pAp} edge from parent node[left] {x}} ...
HRSE's user avatar
  • 123
2 votes
1 answer
122 views

Good way to place node text next to node (TikZ-library `graphs`)

I want to create graphs with \usetikzlibrary{graphs}. By default, I would like filled black dots as nodes and the node name next to it. So far, my best solution is \documentclass{article} \usepackage{...
Gargantuar's user avatar
0 votes
0 answers
92 views

How can I draw this graph with axis from tikzpicture?

Good Evenning, i want draw this graph that has 2 graph, i use the tikzpicture package and axis. A graph is a signal input(left), and anotar is signal output (below). \begin{tikzpicture} \begin{...
Jose G Lopez's user avatar
1 vote
1 answer
52 views

a picture and text in the same row, with the height of the image vertically aligen with the center of the text

I want to type the following in tikz: The image is positioned to the left (let's say 10pt away) from the text. I want the image to be the height of the font (normal font of the document) and to be ...
tush's user avatar
  • 1,115

1
2 3 4 5
10