Questions tagged [nodes]

{nodes} is about nodes in {diagrams}. 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
0 answers
28 views

Tikz IOT- network

I want to paint a IOT network, in Tikz. On the left side I need a television, two Persons, In the middle i want a speaker with tikz and on the right side i need symbols (A door cloud, a phone). I ...
0 votes
1 answer
66 views

Why do I need to remove `inner sep` from text width in node to have correct width?

I am trying to create an official (looking) form. When using tikz to draw the fields I need to subtract inner sep from the intended width of the field to get the correct width. \documentclass[DIN, a4, ...
4 votes
2 answers
80 views

Customizing circuitikz, thickness and colors

I am drawing a simple circuit with circuitikz package. I am struggling with colors and thickness. \documentclass{report} \usepackage{circuitikz} \begin{document} \begin{center} \begin{...
2 votes
4 answers
177 views

semicircle centered at chord center

I need a semicircle node centred at chord center. The positioning is achieved with the option anchor, but the external lines are still directed to center. Is it possible to direct lines to chord ...
  • 5,769
0 votes
0 answers
34 views

Make a loop not as a path

How can I get a node with an edge where it loops to the same node, but as an edge not as a path (i.e without an arrow} This is my current code: \begin{tikzpicture} [node distance = 20mm and 20mm, ...
  • 1
1 vote
3 answers
47 views

How to determine the position of the third node from the position of the two nodes?

Here is the image my existing code produces: I hope that the FFFFF of the rhombus can be directly above C and directly to the right of E. How should I do it? Below is my minimal working case: \...
1 vote
1 answer
43 views

Using \foreach to make a network graph?

I am tying to make this hand drawn network: In the process of making this graph, I am also trying to learn loops. I am trying to use \foreach here. This is the code I have managed so far: \...
2 votes
3 answers
106 views

Tikz: align baseline of multiple labels below nodes

I need some help with tikz. I have multiple nodes with labels and my problem is that the labels that are below a node are placed in such a way that their upper boundaries align. How can i change it ...
  • 167
0 votes
1 answer
70 views

How to align nodes in tikz

I want nodes to align in a certain way in my tikz diagram. First consider my code below: \tikzstyle{rec style}= [draw , shape = rectangle , fill = white , drop shadow , minimum height = 1.5cm , ...
0 votes
1 answer
40 views

Node distance option does not work

I want to align the centers of a string of nodes while placing them below each other. Here is my problem: I tried to set the distance between the nodes after specifying the alignment I want. The ...
2 votes
2 answers
153 views

How do I draw big square brackets around forest nodes?

I'd like to write node features between big square brackets in a tree (I use forest), as in the example below. What function could I use?
  • 121
3 votes
0 answers
100 views

Why math node properties lost after mlist_to_hlist conversion?

If I add properties to math nodes they do not appear in HLIST converted nodes. But if I add attributes they stay to this node for all time. And if I create custom node (for example user_defined ...
  • 937
0 votes
2 answers
34 views

Column spacing list in tikz

I have the following code: \begin{tikzpicture} \matrix [draw,column sep={1mm, 4cm},nodes=draw] { \node(a) {123}; & \node (b) {1}; & \node {1}; \\ \node {12}; & \node {...
1 vote
0 answers
23 views

Forest does not draw diagrams/lines [closed]

I have a problem with Forest in TexLive. I never experienced this problem in TexWorks which I am used to work with. As you can see in the picture, forest does not draw lines between nodes, so it does ...
  • 11
2 votes
2 answers
101 views

How to get decorative border to be closer to edge of paper?

Thanks to this answer, (to my own question) I've found a way to create a decorative border for my text using images. My problem now is that I want to make the decorative border farther from the text, ...
  • 247
0 votes
2 answers
72 views

Label 1st and last element and code for Enqueue and Dequeue

\documentclass[tikz,margin=1cm]{standalone} \usetikzlibrary{arrows.meta} \tikzset{ queue element/.style={ draw,very thin, minimum width=1cm,minimum height=.1cm, fill=brown!...
  • 1
1 vote
1 answer
59 views

Graph about diode and operation point

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). I want replicate this graph. And ...
1 vote
1 answer
33 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 ...
  • 818
1 vote
1 answer
58 views

TiKz: Coloring a node partially

I would like to partially color a node, like a gradient but in some specific parts. For example the first 50% as black then the other 25% as black!80 then the next 12.5% black!60, and goes on, in an ...
  • 1,105
0 votes
1 answer
61 views

Tikz Question: Scaling text inside nodes

I'm still new to Latex and I am especially new to drawing/coding logic gates in Latex. I am having a problem scaling the text inside a logic gate and none of the solutions I've found online so far ...
  • 1
0 votes
0 answers
25 views

nodes near coords with decimal fixed numbers and other nodes styles

I want to set nodes near coords with fixed decimal numbers and also other styles including rotation=90, black, tiny font size and without overlap on the error bars. Here the code is provided but the ...
4 votes
2 answers
215 views

How can I make a Tikz picture into a node?

I am trying to produce a mechanics worksheet to teach Newtons 2 Law! I want an engine pulling trucks. I have used savebox to save the tikz image of the engine and truck and hoped i could store as a ...
  • 107
-1 votes
2 answers
69 views

Avoid "jumps" in text between slides [Tikz]

I created a diagram in beamer, but right now the text "jumps" when I flip the slide (When adding the "Primary outcomes in survey" bullet point). I'd like the text to stay stable. ...
  • 141
1 vote
1 answer
52 views

Adding nested backgrounds to a tikzpicture

I am trying to recreate the following diagram with TikZ. Here is what I have \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[roundnode/....
  • 141
4 votes
1 answer
102 views

Drawing an affine plane in latex

I was trying to draw the following "graph" (affine plane) in tex: I made some tries and I have the current code: \documentclass[letterpaper]{article} \usepackage{tikz} \tikzset{ node ...
  • 471
0 votes
2 answers
49 views

Draw nodes distributed on a full line width with the middle one filling the remaining space

I am trying to achieve the following result: which is: a tikzpicture that fills the entire textwidth a Node A of 4cm on the left with the text aligned on the left a Node B of 5cm on the right with ...
  • 4,507
0 votes
1 answer
44 views

Path problem with circuitikz package

I want to reproduce these basic diagrams with circuitikz package. However, I’m still struggling with the component’s path-style, anchors … The next MME gives more details. \documentclass{article} \...
0 votes
0 answers
47 views

How to make the text in a node bold without changing the node and text size?

This is the original code and picture: \documentclass[tikz,border=2pt]{standalone} \usepackage{amsmath} \usepackage{tikz} \usepackage{xparse} \usetikzlibrary{positioning} \tikzset{ basenode/....
2 votes
1 answer
24 views

How to add text just below the arrow, and control the font size of the text?

This is my picture, I want to add $\mathrm{E}_{app} \mathbf{e}_z$ below the bottom arrow and in the center of the arrow, and I want to control the font size individually, what should I do? \...
0 votes
2 answers
40 views

Why are the nodes in red bigger and the ones in blue smaller for the same command

This is our Tex code, I don't know why the blue one below is smaller, and I want to ask, how to change the thickness of the text in the node: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
1 vote
3 answers
252 views

How to use Tikz to draw a simple model

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, decorations.pathreplacing, ...
0 votes
1 answer
170 views

Is it possible to draw such a figure in latex using a tikz package?

Desired image is similar to the following one: Code for image does not entirely related to showed image My problem is how to change showed code that will reproduce showed image \documentclass{...
2 votes
1 answer
63 views

CircuiTikZ over a png image

I want to draw simple CircuiTikZ symbols over a .png image. This is what I want: This is what I currently get: Here is my code: \begin{figure} [!ht] \begin{tikzpicture}[x=1cm,y=1cm] \node at (0,0) {\...
  • 163
0 votes
2 answers
37 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
31 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
214 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
361 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
32 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
54 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
112 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
103 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
1 vote
1 answer
66 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
62 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,443
5 votes
1 answer
135 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
660 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
23 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
112 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
2 answers
98 views

Achieve desired alignment of arrows in tikz-cd diagram [duplicate]

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
91 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
33 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 ...

1
2 3 4 5
29