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.
538 questions
2
votes
1
answer
104
views
Tikz - Is it possible to adjust the distance between Tikz nodes so that it changes dynamically with fixed length depending on the text content?
I adapted cfr's solution from my previous question for the adjustment of dimensions from Tikz nodes and changed the text content of some nodes:
\documentclass{standalone}
\usepackage{tikz}
\...
2
votes
1
answer
74
views
Tikz - How to adjust the dimension of Tikz nodes and nested nodes so that each node is scaled perfectly regardless of the text content?
This is my code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes, positioning, arrows.meta, fit, calc}
\usepackage{standalone}
\begin{document}
\begin{tikzpicture}[every ...
2
votes
3
answers
152
views
Tikz - How to draw/create a branching structure using Tikz nodes and Tikz paths with directed edges?
This is my code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes, positioning, arrows.meta, fit}
\usepackage{standalone}
\begin{document}
\begin{tikzpicture}[every node/....
1
vote
1
answer
79
views
TikZ: How to find the TeX vertical distance between two nodes?
So, we can use tcolorbox's remember as key to remember the frame node of any tcolorbox, which we can subsequently use:
\documentclass[a4paper, 11pt]{book}
\usepackage[skins, breakable]{tcolorbox}
\...
2
votes
1
answer
86
views
Tikz & Boxes/Frames - How can I draw boxes/frames around word(s) inside Tikz nodes without defining new nodes?
This is my code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes, positioning, arrows.meta, fit}
\usepackage{standalone}
\begin{document}
\begin{tikzpicture}[every node/.style={...
2
votes
2
answers
112
views
TCBListing overlay: testing whether segmentation nodes have been defined
We can define a command
\long\def\ifnodedefinednTF#1#2#3{%
\@ifundefined{pgf@sh@ns@#1}{#3}{#2}%
}
to check whether a TikZ node is defined, and execute code accordingly.
This MWE works as intended:...
3
votes
5
answers
209
views
shift option doesn't work with tikz-matrix's nodes?
I have the following code:
\documentclass[tikz,border=4pt]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix (P) [
matrix of nodes,
nodes={circle,draw},
...
5
votes
1
answer
125
views
How to create flat-octagon nodes for \tcolorbox?
This message serves as a continuation of my previous two questions — № 1 & № 2.
In the latter, the suggested solution was to create nodes that could be anchored directly to the box itself.
I would ...
5
votes
3
answers
373
views
Tikz - How to draw multiple arrows between nodes and position them perfectly without the usage of angles?
This is my code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning, fit, arrows.meta, quotes}
\begin{document}
\begin{tikzpicture}[every node/.style={draw,...
0
votes
1
answer
77
views
Tikz - How can I set a title for each nested rectangle and place it in the center above the middle position of a rectangle?
This is my code:
\documentclass{standalone}
\usepackage{amssymb, amsfonts, dsfont}
\usepackage{tcolorbox}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning, fit, arrows.meta, quotes}
\...
1
vote
1
answer
83
views
Tikz - Is there a much better and faster way to adjust the distance between rectangles instead of hard-coding them manually?
This is my code:
\documentclass{standalone}
\usepackage{amssymb, amsfonts, dsfont}
\usepackage{tcolorbox}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning, fit, arrows.meta, quotes}
\...
0
votes
1
answer
65
views
Tikz - How can I insert curved arrows later in a complex workflow diagram without changing the distance between rectangles?
This is my code:
\documentclass{standalone}
\usepackage{amssymb, amsfonts, dsfont}
\usepackage{tcolorbox}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning, fit, arrows.meta, quotes}
\...
1
vote
1
answer
85
views
Tikz: How to group multiple nodes to one node functionally for better control in terms of positioning and scaling sizes?
This is my code:
\documentclass{standalone}
\usepackage{amssymb, amsfonts, dsfont}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes, arrows.meta, fit}
\begin{document}
\begin{tikzpicture}[...
0
votes
1
answer
77
views
Tikz: How to better control nested nodes in terms of their distance, shape size and position?
This is my code so far:
\documentclass{standalone}
\usepackage{amssymb, amsfonts, dsfont}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes, arrows.meta, fit}
\pgfdeclarelayer{background}
\...
2
votes
2
answers
121
views
Tikz: How to draw vertical lines in the middle of circle nodes and how to control the lengths of lines simultaneously in a general way?
This is my code so far:
\documentclass{standalone}
\usepackage{graphicx}
\usepackage{amssymb, amsfonts, dsfont}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes, arrows.meta}
\begin{document}
...