Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
28 views

tikz: fit rectangle to content and rectangle nodes

I'd like these two rectangles are positioned side by side, aligned with their upper side, without having to "manually" calculate the position, using the anchor points. I've made sure that ...
user avatar
0 votes
1 answer
36 views

\fill doesn't get displayed in addition to a \node in tikzpicture-environment

The pdf-file contains a simple tree with the information on a lecture series. With the following code I want to add some semi-transparent ellipses to cover the topics adressed in a specific lecture. ...
user avatar
1 vote
1 answer
59 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,...
user avatar
2 votes
2 answers
44 views

How to draw a path near the nodes?

Here is MWE: \documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl} \usepackage{amsmath} \usepackage{amsthm,tikz} \begin{document} \begin{center} \begin{tikzpicture} % Nodes: \node ...
user avatar
  • 2,377
1 vote
2 answers
78 views

Adjusting the starting coordinates of an arrow precisely inside a TikZ node

I have difficulty adjusting the starting coordinates of the arrow line inside a TikZ node: When I try to make the starting vertical coordinate of the last arrow which is beneath the mid point of the ...
user avatar
3 votes
1 answer
47 views

node positioning in a forest

I followed the forest based solution of this post Making a (simple) directory tree to create a directory structure. Right to each file and name I want to add its full path. Full paths should also be ...
user avatar
  • 135
1 vote
1 answer
32 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: \...
user avatar
  • 265
1 vote
1 answer
54 views

Tikz: Line caps when meeting circular nodes

I have a large number of tikz figures involving circular nodes (some of which are filled white), which are connected by edges (some of which are thick). The problem I am having is that whichever line ...
user avatar
  • 1,373
1 vote
1 answer
60 views

How to draw without lines in between nodes

[] Hi I'm trying to draw the image below without the line going through the nodes but I can't seem to figure it out. Below is the code. \documentclass[12pt,a4paper,top=1in,bottom=1in,left=1.5in,right=...
user avatar
0 votes
0 answers
20 views

Change style of leaf nodes and connection of leaf nodes in Tikz mind map

I have the probably well known Tikz example of a mind map as shown below: \def\AnnotateLight#1#2#3#4{ \node [annotation, #2, scale=0.65, text width=4cm, inner sep=2mm, fill=black!50, text=white] at (...
user avatar
0 votes
0 answers
14 views

Tikz WBS Diagram Node Overlapping

Using the example provided by TikZ for the WBS diagram I modified it to represent my own data. However, now the boxes are overlapping and I don't know why. Code: \usepackage{tikz} \usetikzlibrary{...
user avatar
1 vote
1 answer
69 views

drawing list of Chevron Diagrams (TIKZ)

I am currently trying to draw a list of chevron diagrams using TIKZ. The result should look something like this: preferred result Currently I am so far with my code that I am using Paths. However, ...
user avatar
  • 111
3 votes
2 answers
486 views

Draw trigonometric circle with tikz package

I want to draw below trigonometric circle I found the websites https://texample.net/tikz/examples/unit-circle/ containing the code. Please help modify the code to get this image. Thank you in advance!...
user avatar
0 votes
1 answer
47 views

TikZ overlay does not increase node size internally

I was experimenting with the potential of a TikZ node to populate in it as many items as possible to make it intricate. Generally, the contents increase the node size when they exceed its minimum ...
user avatar
  • 1,177
2 votes
2 answers
26 views

Lengthen side edges of node

Say I have a simple rectangular node I wish to lengthen some sides of, such that they extend further from the corners. Simple, here is my attempt: \documentclass[tikz,border=1mm]{standalone} \begin{...
user avatar
  • 585
0 votes
0 answers
55 views

Speeding up pdf generation time

I am building a resume builder. I have mobile and web as frontend clients. I want to be able to update fonts, font colors realtime from clients. I am using node-express in backend. So I am generating ...
user avatar
3 votes
2 answers
136 views

Automatic (calculated) position of nodes in tikz

Say I have the following triangle, which is a pretty standard figure: \documentclass[border=3pt]{standalone} \usepackage[ngerman]{babel} \usepackage{tikz} \usetikzlibrary{angles,quotes,babel} \...
user avatar
  • 413
0 votes
0 answers
66 views

How to correct misplaced cross-reference boxes in a Tikz picture?

I am using a quite recent installation of TeXLive 2021. I have a document with a Tikz picture that contains \ref{} commands which refer to parts of the text. Compiling with pdfLaTeX can resolve the ...
user avatar
  • 1,348
2 votes
2 answers
51 views

fAlternate colors for tikz node frame

Initial Question I may be asking the wrong question, or phrasing it incorrectly, but here is my goal: I would like to have the color of a tikz rectangle alternate between 2 different colors. The ...
user avatar
  • 23
3 votes
1 answer
54 views

How to propagate one node to multiple nodes up right and behind each other in Tikz diagram?

I have drawn the following diagram using Tikz: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, positioning, quotes} \begin{document} \begin{tikzpicture}[ node distance = ...
user avatar
2 votes
1 answer
70 views

Draw to anchor of new node at coordinate in TikZ

Is there a way to directly draw to a new node, specifying the connection anchor but still center the node at the new coordinates. To exemplify: % Points at center of node \draw (root) -- (1,1) node {};...
user avatar
  • 293
2 votes
1 answer
37 views

Hiding Tikz nodes behind eachother

I want to create a cube consisting of smaller cubes in particular color patterns. It seems to me loops are very useful here, but I get nodes drawn through eachother. Is there a way to tell tikz to not ...
user avatar
1 vote
1 answer
73 views

positioning of images relatively to each other and page with \node

In the below code i tried to get the bottle at the same height as of the cardbox so that the right side of the bottle image is at the right side of the page. I tried to do something like : \node at (...
user avatar
2 votes
1 answer
38 views

text on the top of page

i tried to add a box on the top of page with tikz package but i didn't add a text as it is shown in the figure. this is my code: \begin{tikzpicture}[remember picture, overlay] \draw[fill=rougeECL] (...
user avatar
1 vote
1 answer
48 views

Adding text above and under nodes

I have following figure \documentclass[border=0.9cm]{standalone} % More defined colors \usepackage[dvipsnames]{xcolor} \usepackage{amsmath} % Required package \usepackage{tikz} \usetikzlibrary{...
user avatar
  • 89
3 votes
1 answer
123 views

TikZ: position a pic with its inner coordinate

In the MWE below, I made a TikZ pic called bus with one argument. The argument creates nodes within the pic that will be used as connection points to other buses. I would like to align these pics by ...
user avatar
2 votes
2 answers
135 views

How to draw straight line between nodes on two curves?

In essence I believe my problem lies with trying to specify a node a certain distance along the x axis. I want ideally for a straight, vertical line to be draw between two nodes on two curves. However ...
user avatar
4 votes
1 answer
264 views

TikZ minimal node size

Even after setting text width=0pt, text height=0pt, inner sep=0pt as node parameters, and giving empty label, the node still has nonzero size. It seems to have both height and width equal 1 pt, as ...
user avatar
  • 538
3 votes
1 answer
76 views

How can I position node anchor exactly?

So I have the following tikz code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \coordinate (O) at (0,0); \path (O) -- ++(4,0) ...
user avatar
  • 337
5 votes
2 answers
112 views

How to find the widest of several nodes with Tikz

I have several nodes and I need to find which one is the widest. This example draws a vertical line in through the center of the widest node, but I know which node to choose. \documentclass[12pt,...
user avatar
  • 830
2 votes
2 answers
92 views

How to animate two moving dots joined by a line in tikzpicture

Can someone explain how to animate (using tikz animation, chapter 26 in pgfmanual 3.1.9a) two small colored dots (small filled circles) moving slowly in different directions (along position ...
user avatar
  • 107
2 votes
1 answer
97 views

Tikz node or TikZmark Node, which fits for the figure?

I want to draw the following picture: But I got stuck where to start? What should I use normal TikZ node (\node) or TikZmark Node (\tikzmarknode)? I am not expert in tikz-pgf package. Your help is ...
user avatar
  • 2,002
6 votes
2 answers
295 views

Two nodes between same line in Tikz?

There is a way to write this \begin{tikzpicture} \draw (0,0)--(10,0) node[midway,above] {top}; \draw (0,0)--(10,0) node[midway,below] {bottom}; \end{tikzpicture} drawing only one line?
user avatar
1 vote
1 answer
46 views

Node anchor too far away from node text

I'm using a loop to write several labels for line intersections, but perhaps for reasons of scale or something the labels are a bit too far away from the intersections. I can't fix each manually since ...
user avatar
  • 1,163
5 votes
1 answer
100 views

On the strange 1.7 pt offset when positioning a + sign at (0,0) node with the lmr 13 fontsize

I get a strange 1.7 pt offset when positioning a + sign at (0,0) node with the lmr 13 fontsize. When using the default font and default font size no offset appears, red + shown below. Do you know how ...
user avatar
  • 1,491
6 votes
3 answers
2k views

The use of below/above right/left of node in Tikz

In the figure below there are two nodes, s and e, I try to draw them in the middle of two node but above or below. I tried to methods above right of=1, xshift=-1.2cm and below right =3.4cm and 2.4cm ...
user avatar
1 vote
2 answers
47 views

On the strange label location using node, anchor and resistor

Let us assume that we have 2 resistors one on the positive x axis and the one on the negative x-axis, shown below: I want to label them by Rusing a node whose south anchor located at the north anchor ...
user avatar
  • 1,491
1 vote
2 answers
93 views

how do I fade a tikz image?

I have the following MWE. and I want to fade this square, the caption and everything that I will put in the square. \documentclass{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
user avatar
2 votes
0 answers
38 views

TikZ: Why does my pgfmath macro cause errors when used within a node's label text?

I am trying to draw a graph with labels along the edges. To do this, I'm using two foreach loops like in the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
user avatar
1 vote
1 answer
65 views

On realizing the var resistor IEC graphic resistor using the node shape

Let us assume that we want to put a resistor between (0,0) and (2,0). This task is easy using the \usetikzlibrary {circuits.ee.IEC}: \draw (0,0) to [resistor={info={ $R=1\Omega$}}] (2cm,0); As ...
user avatar
  • 1,491
0 votes
1 answer
59 views

labeled drawn node

Sorry, this has to be extremly easy somehow but I don't find it... I want to label images (which works very well using \node[circle], but now I need to point to locations close to each other which I ...
user avatar
0 votes
1 answer
25 views

On using circular nodes on the path using`` \draw ... to node ..." without crossing the circles

Let us assume that we have a line segment starting at (0,0) and stopping at (-2,-2). Suppose we want to add two circular nodes on the line segment, one near to start one near to end. In addition the ...
user avatar
  • 1,491
4 votes
3 answers
282 views

Create a graph with nodes and arrows using Tikz

I am trying to generate the following graph Here is the code I wrote in an attempt to generate such graph \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{...
user avatar
0 votes
1 answer
29 views

Separate lower level child nodes

I'm trying to represent a diagram of Max Heapify. I used the following settings for tikz \usepackage{tikz} \tikzset{ heap/.style={ every node/.style={circle,draw}, level 1/.style={sibling ...
user avatar
0 votes
1 answer
50 views

How to position a node relative to two other nodes in Tikz

I am very new to Tikz and am trying to draw a diagram with 5 nodes. My code is as follows: \usepackage{tikz} \usetikzlibrary{automata, arrows, positioning} \begin{document} \begin{center} \begin{...
user avatar
0 votes
1 answer
19 views

How to see the rect nodes without [every node/.style={draw}]

In the code below if we add [every node/.style={draw}] after \begin{tikzpicture} then we see the rectangular nodes. But I do not like this as I do not want to add this to every node in my tikzpicture ...
user avatar
  • 1,491
1 vote
1 answer
46 views

On defining a macro using \edef and assigning the x-component of a given node to it

Let us assume that we have a node in Tikz and we want to have a macro called \myx using \edef to assign the x-component of the node to \myx. Below is my code: \documentclass{standalone} \usepackage{...
user avatar
  • 1,491
0 votes
0 answers
67 views

Vertical ellipse node

How can I make this ellipse node vertical (height > width). My attempt with `` does not seem to work. \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{...
user avatar
  • 679
2 votes
2 answers
115 views

How to use different scale for one tikz scope in two slides in beamer

Basic Info I use xelatex (even though the same things happen while using pdflatex) and TeX Live 2019 in an MBP. Original Problems I want to use different scales for the same tizk scope in different ...
user avatar
3 votes
1 answer
55 views

How do I make a operation inside a node?

I have a graph that's out of scale, but I want to use it for a class I'm preparing. For me to use it, I'd need just to change the numbers in the axis. I'd like to make every x multiplied by 2. I tried ...
user avatar

1
2 3 4 5
8