Skip to main content

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
1 vote
2 answers
95 views

How to vertically stack a node above another fitted node?

I have made a fitted node around Node1, and I'd like to add another node directly on top of fittedNode with the same width as the fittedNode. This is what I have so far: \documentclass{article} \...
Ben Pepper's user avatar
7 votes
3 answers
267 views

How to align the math symbol with regular text in tikz figure in a rectangular node?

I want to draw the figure whose code is produced below in TiKz. As you can see, the eta symbol is not properly aligned with the text "ADD." Please help me to align the text correctly. Also, ...
Vivek Harshey's user avatar
5 votes
4 answers
376 views

Ugly node connecting in nested nodes

I drew the below picture to illustrate the backtracking tree on the k-queen problem with k = 4. It's a bit ugly... and I don't know how to solve the problem : the connecting lines from the child ...
R. Absil's user avatar
  • 335
2 votes
1 answer
106 views

Package tikz: Giving up on this path. Did you forget a semicolon?

I'm implementing a Red Black Tree in LaTeX using tikz, and have been stuck on the error message Package tikz: Giving up on this path. Did you forget a semicolon?. Here's my code thus far \...
lambdaserb's user avatar
2 votes
1 answer
30 views

Reset text depth (or text height)

Here Align line with caption in Tikz pgfplot legend the legend alignment are wrong because of an entry that goes below the preset text depth=0.15em - see "default every axis legend style" on ...
hpekristiansen's user avatar
3 votes
1 answer
84 views

How to change the background opacity without making the characters transparent?

I want to change the background opacity of a node without making the characters more transparent. \documentclass[border=0cm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \...
rpapa's user avatar
  • 12.7k
1 vote
1 answer
50 views

Pgfplots: set plot node style

When using pgfplots, is there a way to set the style for every node on a plot for a particular axis? I'm currently setting the style for each plot, but I've been unable to do the same for each node ...
pwesterbaan's user avatar
0 votes
1 answer
38 views

Connect a triangular child node with its north corner

I'm drawing part of a tree, and I want child sub-tree to be drawn as a large triangle. Here's a MWE \documentclass{standalone} \usepackage{tikz} \usepackage{calc} \usetikzlibrary{trees} \...
R. Absil's user avatar
  • 335
0 votes
1 answer
50 views

How to align image size with node size

I want to display a colored box below an image in a tikzpicture within a beamer presentation. But I am failing to align the sizes correctly, possibly due to the node border. But adjusting the border ...
Sim's user avatar
  • 237
3 votes
3 answers
158 views

Referencing an other tikzpicture without overlay

In an effort to understand @Qrrbrbirlbel answer here: https://tex.stackexchange.com/a/725849/8650 I made this code: \documentclass{article} \usepackage{tikz} \begin{document} ~\\ A text line\\ % \...
hpekristiansen's user avatar
0 votes
0 answers
38 views

Tikz figure arrowstyle for Schematic energy band representation of a semiconductor

I'm trying to replicate the arrow style from one TikZ figure in another. Specifically, I want to change the arrows in the first image to match those in the second image. \begin{figure}[H] \centering \...
Yosef Hamdellah's user avatar
0 votes
0 answers
28 views

How to change the style of one border(edge) of a rectangle node, especially overlapping edges of two adjacent nodes?

I want to draw a picture similar to Fig.3.9 in <Advanced Programming in the Unix Environment, 3rd Edition>, like this And here is mine using Tikz, basically I use matrix of nodes to draw tables....
gpanda's user avatar
  • 140
2 votes
3 answers
90 views

Central alignment of text node in a rectangle in Tikz drawing

I'm new to tikz and want put a text node at the center of a rectangle. Besides hard coding as below, is there any elegant way to make center alignment horizontally and vertically between the two ...
gpanda's user avatar
  • 140
0 votes
1 answer
26 views

The `\node [label={[label distance=1cm]\num:A}] {};` syntax doesn't work for small angles around 0,90,180, and 270

The \node [label={[label distance=1cm]\num:A}] {}; syntax doesn't work for small angles around 0,90,180, and 270. Is there a way to overcome this? I would like to use angles such as 89 and 88. \...
Jasper's user avatar
  • 2,587
2 votes
1 answer
116 views

how to label a tikz path, where the node label extends outward perpendicular to the path at a point

I want to label a path in TikZ where the label comes out at a specified distance, perpendicular to the path at a point along its length. I can currently place nodes along a path at arbitrary angles ...
Jasper's user avatar
  • 2,587
2 votes
0 answers
25 views

Node at intersections not rendering in tikz-3dplot

I just started using tikz-3dplot. I'm having an issue that I created two arcs and I want to place a labeled node at their intersection. For some reason I keep getting an error that the name of the ...
Coenraad van Schoor's user avatar
3 votes
1 answer
86 views

TikZ, node not well connected, small gap

When compiling the following TikZ flowchart there is a small space between the diamond shape and the line which should be connecting it. Then sharp edge of the diamond isn't nicely connecting to the ...
dietervdf's user avatar
  • 245
1 vote
2 answers
72 views

Centering first line in Tikz node

You can place multiline text in a tikz node by setting align as follows: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[align = left] [draw] { Title\\ ...
xAlien95's user avatar
  • 165
1 vote
1 answer
61 views

semiconductor supply chain flowchart

I need to recreate a flowchart as faithfully as possible to the one depicted in the image. Unfortunately, my knowledge of LaTeX is still basic, and with the lines of code I have written, we are not ...
Yusef Hamdellah's user avatar
1 vote
2 answers
55 views

How do I place a node that is horizontally aligned with one node, and is vertically aligned with the middle of two nodes in above?

I have a fifth node I wish to align with three other nodes. The current nodes are aligned like A B C D I wish to place node E as such: A B C D E ...
Michelle's user avatar
  • 563
1 vote
2 answers
184 views

draw humanoid using tikz graph

I am trying to make a similar plot using tikz libray in latex but so far I was only able to generate three humanoids. However, they are not scaled to fit properly in the plot and I can't place them ...
Dalek's user avatar
  • 553
0 votes
1 answer
118 views

Drawing a text node in TikZ?

I'm looking for some assistance in improving a useful (I think) function in TikZ. Drawing a rectangle in TikZ is easy \draw (0,0) rectangle (4,5); I have always thought it would be handy if the same ...
sgmoye's user avatar
  • 9,061
0 votes
0 answers
25 views

Bug in tikz-3dplot ? \tdplotsetrotatedcoordsorigin and \node not working together

It seems that \node is not working correctly with \tdplotsetrotatedcoordsorigin although \draw node is: when using \tdplotsetrotatedcoordsorigin{(Point)}, all nodes created with \node are placed at (...
Egomet's user avatar
  • 1
1 vote
2 answers
73 views

Box around nodes to account for the label of each nodes tikzpicture

The problem I am drawing boxes outside of labelled nodes and the boxes does not account for the labels above the inner nodes. Here is the MWE of my document: \documentclass[10pt]{article} \ExpandArgs{...
pindakazen's user avatar
0 votes
1 answer
43 views

Error with color name appearing when coloring a node in TikZ [closed]

I'm trying to draw a directed graph where each vertex and each arrow can be colored individually by a specific color. I have a code that mostly works: \documentclass{article} \usepackage[dvipsnames]{...
Robert Lee's user avatar
1 vote
1 answer
42 views

Adding nodes or Labels to a TikZ Cantor Set made with the decorate function

I have the following TikZ picture made with the decorate command \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.fractals} \begin{document} \begin{tikzpicture}[decoration=...
Sidekiq's user avatar
  • 25
2 votes
1 answer
93 views

How to clip a rectangle on a QR Code with TikZ?

I'd like to clip a rectangle at the center of a QR Code, however it can't satisfy my request. The first one clips reversed, then I switch the order of node and clip commands, the second one couldn't ...
Skyrmion's user avatar
  • 1,014
0 votes
0 answers
35 views

How to make ''turn page'' button in standalone class?

I'd like to make a ''turn page'' button with node in standalone in the tikzpicture environment, for example, there're 3 tikzpicture environments in a standalone class, and there will certainly ...
Skyrmion's user avatar
  • 1,014
1 vote
1 answer
96 views

TikZ, customize symbol of operational amplifier

In TikZ (used including the package circuitikz), the code \draw (0,0) node[op amp] (OA1) {}; creates an operational amplifier with its standard shape. I would like to customize it, for example adding ...
BowPark's user avatar
  • 1,223
0 votes
1 answer
68 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
  • 129
2 votes
1 answer
86 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
74 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,442
1 vote
2 answers
102 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,...
Skyrmion's user avatar
  • 1,014
1 vote
1 answer
78 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
3 votes
2 answers
342 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
57 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
120 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
  • 349
1 vote
0 answers
40 views

Relative positioning of tikz pic containing multiple nodes [closed]

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
268 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
  • 175
2 votes
1 answer
85 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
140 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 ...
Skyrmion's user avatar
  • 1,014
1 vote
1 answer
199 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,...
I_really_dont_know's user avatar
1 vote
2 answers
104 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
52 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
48 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
  • 401
0 votes
2 answers
102 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
96 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
92 views

positioning overlay node in tcolorbox [closed]

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
72 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
93 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

1
2 3 4 5
11