Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Make parallel lines using nodes anchor points

How can I make the red line parallel to the two above, using T_C and T_zero anchor points? \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes,positioning,intersections,...
0 votes
1 answer
20 views

adding node to tikz figure

I want to add text where I put the dots, for example w_1, w_2, ... w_n. This is the code: \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{positioning} \begin{document} \tikzset{% ...
4 votes
2 answers
145 views

How to make defined labels on top of the edge in a graph with tikz?

I want to make some labels (defined as a diamond) on top of some edges, see the following figure: I am new to Tikz and use the following latex code: \documentclass[border=10pt]{standalone} \...
  • 143
6 votes
2 answers
277 views

Three colors in a node Tikz

I would like a circle node split in three equal parts and colored in three different colors. Like in this link here https://fr.m.wikipedia.org/wiki/Fichier:Graph-Biconnected-Components.svg The node ...
  • 61
0 votes
2 answers
17 views

How to align node with one node, minimum width from another node?

Suppose I have two nodes (A and B in example) already defined. Suppose I want a third node C to be (e.g.) below node A and stretching so far to line up with node B. \documentclass[tikz]{standalone} \...
0 votes
0 answers
30 views

How to put diffent color in some cells in this matrix using Tikz?

I got this matrix bellow : \begin{tikzpicture} \matrix [nodes={fill=red!20,minimum size=15mm}] { \node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \...
1 vote
1 answer
105 views

Drawing this figure using tikz

I am interested in creating the following figure using TikZ, although I am really new to this "machinery". Thanks to this old post, I managed to create the following QUESTIONS: How can I ...
0 votes
2 answers
66 views

Is there a way to insert line-breaks in a tcbox within a forest environment?

I am trying to get line breaks in a tcolorbox object whose width is limited to the width of the text therein (or to the width of the forest node it is inside). This is standardly done via \tcbox[...
  • 333
0 votes
1 answer
38 views

Use a custom figure as a node shape

There are two similar questions to mine: How to use a tikzpicture as a node shape Use a custom shape as a "building block" But they both attempt to draw the node using tikz and I want to ...
1 vote
1 answer
45 views

Forest: Using an ellipsis (...) and increasing horizontal space between nodes

Looking for how to insert an ellipsis (...) between $B_{1}$ and $B_{n}{1}$ and increase horizontal space between $B{n}{1}$ of U and $B{1}$ of R under K in the following picture. \documentclass{...
  • 8,381
5 votes
1 answer
123 views

Syntax of \tikznode command?

I am trying to write a formal proof of validity that uses conditional proof (C.P.) arrows. I came across gernot's code for them at https://tex.stackexchange.com/a/581822/277990, and below I have ...
13 votes
4 answers
511 views

Tikz find coordinates of beginning and end of a shortened curved line

I have a shortened curved line drawn between 2 points. I would like to obtain the coordinates of the beginning and end of that shortened line. I tried with the following code below A and B are the ...
0 votes
1 answer
19 views

Error in creating a node and its label

Good day. I have problem on creating a node and its name. Here is the code number 1 and 2. \documentclass[a4paper, 12pt]{article} % Preamble % Packages used for input and output display. \usepackage[...
2 votes
2 answers
96 views

How to access a TikZ node's path after it have been created

I explored multiple solution to represent a graph cycle in TikZ with arbitrary nodes distributed around a circle and joined by arrows like the example below. What worked for me was to place nodes on ...
  • 125
3 votes
1 answer
39 views

Achieve desired alignment of arrows in tikz-cd diagram

I want to add to add the supersets of the sets U_\tau and V_\tau (respectively for \pi) to the following tikz-cd diagram I managed to achieve the following result Latex code: \documentclass[openany]{...
  • 133
0 votes
1 answer
51 views

Define a pic and use it as node

My purpose is draw an horizontal cylinder. I defined the left and the right base with /.pic . Now I would link these bases with \draw, using the bases anchor point .north and .south. Something goes ...
1 vote
1 answer
27 views

rnd minimum width of node in decoration does not have same size in repeated code

I'd like to decorate path with double line of stars and expect the upper line of stars duplicate the lower ones. But why the stars in the state{initial} part are still random size. I try to set ...
3 votes
2 answers
105 views

Tikz node newline for every word

How can I create nodes such that every word in a node gets put to a new line? MWE: \usepackage{tikz} % used instead of adt_web.sty here \usetikzlibrary{calc, positioning, shapes.multipart} \begin{...
0 votes
2 answers
48 views

Smart diagram with pointed circles in tikz

I am unable to do this type of smart diagram in tikz. The shapes are a bit confusing. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,shapes.misc} \begin{document} \begin{...
  • 87
1 vote
1 answer
33 views

\path[clip] ruins existing diagram

I have a node diagram where I want to add the two images. I am using \path[clip] but it only works if there is no other \path[clip]. I even added \begin{pgfinterruptboundingbox} to isolate the image ...
  • 221
2 votes
2 answers
286 views

How can I center two nodes and connect with an arc and arrow in TikZ?

I have some trouble reproducing an equation in LaTeX. I have tried a little, but I still have trouble around how to properly anchor the path from and to nodes. I am trying to reproduce the image. Also,...
  • 169
0 votes
1 answer
154 views

Label Figure in Latex

I often have the need to apply leaders to a figure with some text. Right now I use Powerpoint with the Computer Modern Font and import the file to Overleaf in .pdf format. This workflow makes ...
2 votes
1 answer
68 views

tikz: correct syntax in \draw points

Let x and y be two nodes. Whith \draw[blue] (x)--(y); a straight line can be drawn between these two nodes. If by chance I had to draw a straight line starting for example, from a point that is 2 ...
2 votes
1 answer
16 views

Wider double border of a node in a tree environment

My question is pretty simple: I would like to draw a double border node in a tree environment as follows: With the current code I've got, my output is the following: We can see u has a double border ...
  • 337
1 vote
1 answer
70 views

How to use tikz-nodes to place and display external images?

In tikz placing labels via \nodes is quite convenient and used all the time. How to display and position external images instead of text?
  • 2,529
3 votes
3 answers
119 views

Separate "below of nodes" in tikz

I have the following code \usepackage{tikz} \tikzstyle{comp1} = [draw, rectangle, rounded corners, minimum height=1cm, minimum width=3cm, fill=gray!50] \tikzstyle{comp2} = [draw, rectangle, ...
0 votes
2 answers
62 views

I would like to answer this code to make a 3 by 1 grid

\documentclass[tikz,border95=3mm]{article} \usepackage{tikz} \usepackage{xcolor} \begin{document} \begin{tikzpicture}[case/.style={minimum width=2cm,minimum height=2cm,draw},line/.style={blue!10!...
  • 505
1 vote
1 answer
30 views

tikz: automatic anchor point

Can you see label "prodotti"? \documentclass{article} \usepackage{float} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{figure}[H] \...
0 votes
1 answer
39 views

Latex flow chart error

\begin{figure}[!h] \centering \begin{tikzpicture}[node distance=2.4cm] % hiệu chỉnh khoảng cách giữa các node \small \node (io) [startstop] {Begin}; \node (1) [io, ...
2 votes
1 answer
55 views

How to place braces below a tree in tikz using relative coordinates (as opposed to hard-coded lengths)?

I'd like to place curly braces below the branches of a tree. The example below does exactly that, but hard-coded values for the placement of the labels "Toss 1" and "Toss 2" are ...
1 vote
1 answer
41 views

How can I align tikz nodes ragged left?

I'm producing a CV from a template which uses tikz nodes for a general skills section. This is what the section looks like: I would like the nodes to be left-aligned in relation to one another, ...
  • 133
1 vote
1 answer
61 views

Making a node elliptical in TikZ

MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \tikzset{elips/.style={ellipse,draw},} \tikzset{yuvar/.style={circle,draw},} % yuvar ...
0 votes
2 answers
26 views

Multiline math mode inside a Node doesn't work at all

I would like to draw a picture and write some equations below it that will be aligned to a certain symbol ( the equal sign in this case ). \documentclass{report} \usepackage{amsmath,tikz,mathtools} \...
  • 61
1 vote
2 answers
91 views

adjust text in itemize environment in a tikz node

I am trying du align my text of the items in the itemize environment in the tikz nodes. I also tried to use the topsep parameter but it didn't work out as I thought. The text should be on the top of ...
  • 249
0 votes
0 answers
41 views

TikZ-pgf and using graph drawing algorithm by referencing existing nodes

I want to use the graphs library in TikZ together with the graphdrawing algorithms to create a graph with many nodes, and connections that I will make and label later. I have a more complicated ...
1 vote
2 answers
76 views

How to top center align text inside a tikz node

This is what my nodes look like: I would like to have all the text to be aligned at the top of each node. This is the code: \node[rec5, below=4.6cm of E] (G) {Umwandlung der Zustände in normierte ...
0 votes
1 answer
25 views

Nodes spaced vertically at exactly 1 \baselineskip apart

I'm following the idea behind this post Itemize list inside a tikzpicture node I would like to place the nodes at exactly 1 \baselineskip of each other such that even when changing font family or ...
  • 61
1 vote
1 answer
64 views

Why does my text along the line intersect nodes?

everyone! I am plotting some diagrams and encountered a problem. Here is my code \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{arrows.meta, positioning, quotes,...
4 votes
3 answers
113 views

How to read a table to use for Node locations

Let us assume that we have a two column table in a .txt file: As we see the table has a header x y that we skip. The next row is to be the location of Node A at (0, 0). Similarly, the next row will ...
  • 1,503
2 votes
2 answers
265 views

Place text along a path

I'm using the decorations library to put text along a path. But the text does not appear on the path, instead, it appears in the node, how should I correct it? Also, the dotted path is not symmetrical,...
  • 237
0 votes
1 answer
41 views

Trouble drawing an ellipse around two elements of a forest environment

I have seen some questions about the same topic in the forum, but I've been unable to reproduce the same output in my code, so I would start by saying sorry for posting similar questions but here we ...
  • 337
1 vote
1 answer
39 views

Drawing dashed edges in a binary tree and adding new edges between different nodes

I would like to add extra edges between nodes that aren't specifically related as child and parents in a binary tree and also to change the styling of the edges. Currently I have the following code: \...
  • 337
0 votes
1 answer
52 views

Node names are too long for forest

I've been trying to draw a tree like this: But I came across the problem that the node names are apparently too long... So the code below doesn't work. (If you replace $\lambda x.\lambda e. \text{...
2 votes
1 answer
70 views

Pointing arrows from two sentences to a word [duplicate]

I am using beamer to create slides. I am not sure how to generate arrows from two sentences merging and pointing towards a word as shown in the below image.
  • 237
1 vote
1 answer
71 views

How to add text above the lines nodes in LaTeX

I have following code and I try to add text above the edges, but don't how to do it \begin{tikzpicture}[every tree node/.style={draw,circle},sibling distance=30pt, level distance=50pt] \tikzset{edge ...
1 vote
2 answers
73 views

Relative positioning of nodes as labels

I am using nodes as labels on a graph, and I'm having issues with them overlapping. I know I could move them manually, but this will be part of a larger document that will generate this same graph for ...
  • 315
4 votes
2 answers
254 views

Adding more than 9 nodes to tikz

I am an absolute beginner of tikz and I have modified one example from https://texample.net/tikz/examples/work-breakdown-structure/ My problem: I did not know how to make a connection the arrow to the ...
  • 43
1 vote
1 answer
44 views

Create variable for changing node-names in tikz

I was trying to draw multiple rectangular nodes side by side using \begin{tikzpicture}[scale=0.675] \def\size{0.625cm} \node[rectangle,draw,line width=0.6pt,minimum size=\size,fill=cyan!50!...
3 votes
1 answer
382 views

How to add an arrow between two side by side figures?

I want to add an arrow between these two side-by-side figures. Both of them would have their own captions. I made these figures in Geogebra and will import the figure using \includegraphics. I am new ...
  • 33
2 votes
1 answer
44 views

Scaling nodes, grow sep, and coordinates while preserving text size

I have a drawing based on 1cm unit. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,positioning} \begin{document} \begin{tikzpicture}[ every node/.style = { circle, very ...
  • 1,393

1
2 3 4 5
28