Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

How can I make a rectangle invisible in tikz to delimit an area an write text on it?

What I'm trying to do is replicate this image: And here is what I got so far: \begin{tikzpicture}[scale=0.8] \draw[thick] (0,0) -- (4,0) -- (4.5,2) -- (4,4) -- node[above]{\textbf{Motivacional} }(0,4)...
1
vote
3answers
213 views

Directed Graph for the Collatz Conjecture

The following directed graph contains sample orbits of the Collatz Conjecture. I think it may have been originally produced with Mathematica. Is it possible to produce something similar with Latex? ...
2
votes
2answers
59 views

Why is tikz foreach behaving strange when visiting nodes

I want to use foreach to draw connections between a sequence of nodes. But, for some reason, foreach forgets the position of the last node. Here is an MWE illustrating my question: why are the two ...
0
votes
1answer
26 views

Colour arrows graphdrawing

I am using graphdrawing tikz to create a small tree. In the MWE below, I would like to have a blue arrow pointing to B1 and an orange arrow pointing to B2. How could I do this? \documentclass[tikz,...
0
votes
1answer
27 views

Text overlap in nodes

I've created a tikzpicture that has a lot of nodes. These nodes are sometimes close to eachother and my text is overlapping. This is my output: What i want to have is this: The text lines under ...
3
votes
1answer
44 views

Using node style color in foreach loop messes the node label text up. Why and how to fix?

Trying to use \foreach for node placement and coloring fails. Node label becomes e.g. redredcaptionA where red is the desired color and captionA is the node label text. Desired result would be a node ...
2
votes
1answer
31 views

pgfplots: how to bring all node plot annotations to top in proper way?

I'm plotting many almost parallel lines (in the MWE I'm just plotting random stuff), where I am using the very convenient node[pos=0.x]{label} option to annotate my graph. The issue is, that multiple ...
0
votes
1answer
23 views

Tikz: How put text at specified location?

How do I correct the 3 lines with \node expressions immediately preceding \end{tikzpicture} so that the indicated "labels" a, b, c are near the points described in the trailing comments ...
2
votes
1answer
43 views

Tikz arrows/node not displaying properly with Beamer

Working on a presentation where I need to have explanations pointing to parts of an equation with an arrow. Tried copy-pasting the following 2 examples: https://texample.net/tikz/examples/beamer-...
2
votes
0answers
57 views

Tikz borders not working after using the package Polyglossia

First I tried this bit of code, it's working fine, the results are as expected: \documentclass[a4paper]{scrartcl} \usepackage{tikz} \usepackage{tikzpagenodes} \usepackage{scrlayer-scrpage} \usepackage{...
1
vote
2answers
61 views

tikz and nodes drawing

I would like to extend this "nodes" example by adding 6 more nodes but I could not see the logic behind this sample code. I could not get the relations of (a), (b) and (c) and how they are ...
2
votes
2answers
71 views

Isosceles triangle in circle with angle and text - in tikz

Im a newcomer to tikz and I've been playing around with it for some time now. For some presentation I need a representation of an isosceles triangle in the unit circle. The only thing I got so far was ...
2
votes
1answer
66 views

Nodes does not align at the same height on tikz

How can I align these nodes with text? I tried this, drawing nodes at the same height, but are not aligned \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}...
0
votes
0answers
41 views

I want to identify specific words in a sentence and draw an arrow from one to the other

I'm trying to use tikz to draw a curved arrow from "he" to "John". I'm almost certain that the problem is using a node within a node, but I can't think of another way to do this. \...
3
votes
2answers
94 views

Place a Tikz node on an arrow in a chemfig reaction scheme?

I need to find a way of putting a Tikz node inside the label of a reaction scheme, allowing me to represent the electron movement from a reagent to a catalyst, such as in this situation: \...
1
vote
1answer
58 views

How to properly include a tikzpicture inside another tikzpicture?

I have a command to create a sort of box that I use to write various things such as definitions or theorems. It involves writing the content of the box inside a tikzpicture to style the box the way I ...
1
vote
3answers
72 views

label arrow for tree diagram

Kindly I want to ask how I can plot a diagram like the attached one on latex? Thanks Here is what I have already done: \begin{tikzpicture}[>=latex'] \tikzset{block/.style= {draw,rectangle,...
1
vote
1answer
52 views

Add another level of compass anchors to standard TikZ nodes with TikZ 3.0

I am new to StackExchange and I cannot ask for clarification in the comments, so I had to open a new question for this. I am interested how the accepted answer to Add more anchors to standard TikZ ...
1
vote
2answers
35 views

Centre child node next to two parents on the same height as grandparents

So I am making a tree for my thesis with the following code. I could not find a lot of answers on find how to link a child ("niveaus") to two parents ("soft skills" and "hard ...
0
votes
1answer
47 views

How to put a text in particular position of an image?

I'm working with overleaf and trying to add texts in these red marked positions. For example, I want to add 4,5 and 6 respectively. I've tried with \put(0,0), but it always disables the \resizebox ...
1
vote
1answer
44 views

Name in the dotted arc

In the attached picture, we need to have 'a' in the dotted arc. Below is the code. \begin{tikzpicture} [scale=.9, auto=left, every node/. style={circle, fill=black!70, minimum size=0.1cm, inner sep=...
0
votes
0answers
15 views

Finding node positions by using mouse pointer

Sometimes I have to replace some labels in figures with other labels, due to font differences. Usually I do that by creating a new tikzfigure and include the figure there. Afterwards I place white ...
2
votes
4answers
115 views

Better formatting for nodes with text?

I have the following within a class: \newcommand{\blacknode}[1]{ \begin{tikzpicture} \node[draw, fill=black, text=white, rectangle, rounded corners, node distance=1mm, inner sep=5pt] %, align=center %...
1
vote
1answer
39 views

Defining points as nodes in TikZ

In the following MWE, why does the segments don't go up to the points I have defined? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (A) at (0,0) {}; \node (B) ...
1
vote
1answer
92 views

More natural looking circle around math using TikZ

In my slides, I like to encircle quantities that I think the audience should pay attention to. So far I've been using node from tikzpicture, styling it with rounded corners so it looks "soft". I was ...
0
votes
1answer
17 views

Automata: nodes vertically centering

How can I vertically center nodes 1 and 6, as shown on the picture below? Thank you. \documentclass[12pt]{book} \usepackage[paperwidth=16cm, paperheight=24cm]{geometry} \usepackage[T1]{fontenc} \...
7
votes
1answer
174 views

Drawing custom node on line

Hello helpful community I am trying to create a custom node to use in industrial drawing symbolizing interrupted parts looking like that : Here is my MWE : \documentclass[tikz,border=5pt]{...
2
votes
1answer
73 views

Push tikz nodes to the axis limits as much as possible

I would like to place nodes to straight lines as close as possible to the axis limits but still in the axis, regardless of the length of the node text. While I was able to do this for labels that ...
3
votes
1answer
113 views

How to draw this customized node in TikZ?

I am creating an activity-on-node project diagram for my Critical Path method lecture. I could able to create the customized node for the same as indicated in the attached image. However, I would like ...
1
vote
1answer
86 views

How to create this custom node and arrow in TikZ for network diagram?

I am creating an activity-on-arrow project diagram for my Critical Path method lecture. I could able to create the customized node for the same as indicated in black color in the attached image. ...
1
vote
1answer
53 views

How can I label my nodes with two splitted squares

How can I create two little boxes above/below my nodes like those? I already wrote a label, but it didn´t work. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \definecolor{...
0
votes
1answer
42 views

How can I modify nodes

How can I insert two little boxes bellow a node in a tikZ picture and then fill those with numbers like this?
0
votes
0answers
32 views

Dynamically Add Nodes With Equal Gap?

Context: Resume I am using a Tikz Node as a black-button-white-text style tag as seen below: The horizontal gaps are my issue, I would prefer them to "slot in" nicer -- I have tried the \...
1
vote
1answer
87 views

Positioning of nodes and text in tikz

I got stuck on my diagram. Here is what i got: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{arrows, fit, positioning, shapes} \tikzstyle{...
1
vote
1answer
22 views

y label,angle,node problems

I have three problems... I need to pass the "y label" down, where the arrow is. Also, the orange node has to be lying on the arrow (I made an orange box). Lastly, I need to mark the angle that I ...
1
vote
2answers
42 views

Arrows drawn with \foreach point to wrong side of \node

I noticed that arrows in the below MWE point to the wrong side of the nodes if I draw them with a foreach statement, but not if I write the same drawing command manually. What is wrong? \...
2
votes
0answers
36 views

Tikz: Line trajectory joining two nodes

I am drawing a line linking two nodes. I do not understand the strange behavior of the line. Why the line pass the arrival point and then back to the final point? \documentclass{article} \usepackage{...
0
votes
1answer
32 views

How to add the dots inside the node

I have this code \begin{tikzpicture} % Default actions for each node \tikzstyle{every node}=[draw, shape=circle]; % Define and draw five nodes \node (v0) at (4:0) {$v_0$}; \node (v1) at (0:4) {$v_1$...
6
votes
1answer
219 views

Mindmaps, method to get regular circle shape for level 4 or 5

I'm new on LaTeX and I started to learn it especially to design mindmap thing. My aim is to synthesize a math course with many concepts (like 40 theorems) on a mindmap able to reach level 4, 5 or 6 ...
0
votes
1answer
18 views

Positioning tikz nodes with same x coordinates

In the MWE the alignment is not as I expect: e. g. the H (first line) and the A (last line) are not beneath each other although they have both x=0. With respect to y coordinates everthing is fine (...
3
votes
2answers
279 views

Drawing a 7-node polygon

I am trying to draw 7 nodes in the shape of a heptagon, I have found how to draw the heptagon, but I dont how how to label each node 1-7 and then how to draw edges between the nodes. \begin{...
1
vote
1answer
23 views

nodes write the same value on all plots

I am struggling with a feature I would like to add to a plot : write a value associated to each plot. Here is my MWE: \documentclass{standalone} \usepackage{pgfplots} \newcommand*{\TracSecReso}[4]{ ...
2
votes
1answer
113 views

How to prevent from overlapping nodes in tikz

I have created a tree-like structure using tikz package. The problem I faced is that the nodes haven't got enough distance from each other and I want to avoid giving the static distance. How can I ...
3
votes
2answers
294 views

Mindmaps, general method to get regular/harmonious circle shape for level 3 and more

Update Thanks to the latest update by Schrodinger's cat, i'm now ready to produce pretty easily the following type of regular Mindmap on 3 levels. We're almost there for a fully automated ...
1
vote
1answer
41 views

Tikz Loop Size Different (Make It The Same!)

\documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, calc, chains, positioning} \begin{document} \begin{...
2
votes
1answer
43 views

Tikz: How do I connect the final layers (nodes) in this graph?

I have a neural network and I am trying to connect the final layers in the graph. I tried a few methods but none have worked so far. Also I am having a problem in subscripting the term B in the upper ...
0
votes
1answer
50 views

define a short line as node shape

I hope you are doing well. how can I define a short line as node shape? there are just some defined shapes like a circle or rectangle. bnode/.style={shape=circle, draw=black, line width=2}
2
votes
1answer
29 views

Having issue with node label when using TikZ inside beamer class

I am drawing a small graph using TikZ and would like to show the name of the node inside the node. Based on this post, I follow the same logic. Here is a minimal example. \documentclass{beamer} % \...
2
votes
1answer
57 views

Why do the lines go through the edges of my nodes?

I want to connect the nodes where the lines or arrows only touch the edges, but instead, the lines and arrows are going to the center of the nodes. Here is my code: \documentclass[tikz,border=5pt]{...
2
votes
3answers
54 views

Proper vertical alignment of text in tikz nodes

Yuck. Presence/absence of descender characters seems to shift the baseline of my text. How do I align the text properly? \documentclass[border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{...

1
2 3 4 5
25