Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [tikz-path]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
1 answer
169 views

Small position discrepancy in tikz

I was drawing a small diagram with tikz, and I noticed there is a small discrepancy on the position of the nodes according to how you define their position. Here's the MWE: \documentclass{article} \...
user avatar
  • 480
1 vote
1 answer
26 views

How to fill a customized shape?

in the following code I want to fill the area defined by $v_2, v_3, v_5$ with dashed lines. I know how to fill a shape if the line connecting $v2$ and $v3$ is not bend with \draw[fill = gray] (v2)--(...
user avatar
  • 247
2 votes
2 answers
47 views

Draw a line between two lines that inserts each line smoothly

Given two lines, I want to connect both of them in a way, such that the connecting line is smooth. For example consider the following picture: \documentclass{article} \usepackage{graphicx} \usepackage{...
user avatar
  • 247
0 votes
1 answer
22 views

A path below the nodes

Here is a MWE: \documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl} \usepackage{amsmath} \usepackage{amsthm,tikz,twemojis} \begin{document} \begin{center} \begin{tikzpicture} % Nodes:...
user avatar
  • 2,377
8 votes
1 answer
151 views

Find midpoint of path

I have two coordinates (v1) and (v2) which are connected by a bended path. Now I would like to connect a third variable (v3) to the middle point of this path, but I cannot figure out how. \coordinate (...
user avatar
  • 247
7 votes
3 answers
342 views

Drawing perpendicular lines to a curved path in tikz-pgf without decorations [duplicate]

I'm trying to make a image like this: Here's how I'm CURRENTLY doing it: \begin{tikzpicture} \draw[color=black, line width=2pt, -latex] (-3,2.5) -- (0, 2.5) +(0,\rad) coordinate (center) (0,2.5) ...
user avatar
  • 73
10 votes
3 answers
331 views

Adding small arcs to a path in specific places

I have a path consisting of a series of straight lines and arcs, and now I would like to modify that path by replacing some segments of the line/the arc with another small arc whose centre is on the ...
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
0 votes
1 answer
25 views

How to Place a Node Relatively to a Decoration Path?

I woud like to place a node below a decoration path (i.e. at something like "myDecoratePath.south") composed of a series of arrows: In order to obtain something like this: Is there a way ...
user avatar
0 votes
1 answer
36 views

Style the first few characters of text along a path

How can this code be modified so that the first few characters (say 3) are colored red? \documentclass[tikz]{standalone} \begin{document} \usetikzlibrary{decorations.text,calc,math} \begin{tikzpicture}...
user avatar
  • 615
0 votes
1 answer
27 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
2 votes
1 answer
75 views

TikZ: coloring multiple passes over the same path between nodes

I'm drawing a lattice of nodes and I would like to highlight certain paths with different colors. When the paths overlap, I would like the colors to appear adjacent to each other. I've seen ...
user avatar
  • 48.8k
3 votes
3 answers
145 views

Clipping issue with TikZ fading

Following Issue with fade-no-fill.sty, I wanted to try implementing @hpekristiansen solution. I’m giving a more complete code here because I have text nodes on the paths actually. \documentclass[tikz]{...
user avatar
  • 1,286
6 votes
4 answers
166 views

Issue with fade-no-fill.sty

I’m trying to have colour gradient on path, and discovered fade-no-fill.sty, which latest version seems to be https://tex.stackexchange.com/a/567029/56823. It works pretty well, but I have two small ...
user avatar
  • 1,286
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
4 votes
1 answer
75 views

Split path (minus arrow tip) evenly

I would like to split a path evenly (in three parts) in a way that works when there is an arrow tip that hides part of the path. In other words, I would like the segments of each color to be of equal ...
user avatar
  • 691
4 votes
3 answers
296 views

When and how to use foreach in a path command? TikZ

Why does my code fail? Without the foreach my code works correctly. Generally, when and how can I use foreach within a path command? Is this a bad practice? If so what should be the alternative? \...
user avatar
  • 383
0 votes
0 answers
49 views

Placing a fully defined picture absolutely at any point inside a path picture

The following example generates a rack switch with a single port. The front oft the rack switch is defined by a path picture. I add the port to path picture by using \node and i am placing the node ...
user avatar
  • 49
3 votes
1 answer
68 views

Decorate a multi-segment path without changing segment endpoints

I'd like to draw multi-segment "wavy" paths, so I tried both the standard snake decoration, and the very promising complete sines one as well, but in both cases, the segment endpoints are ...
user avatar
  • 945
2 votes
1 answer
68 views

Filling the intersection of paths

I am aware that there is myriad of posts dealing with the intersection of objects in tikz, but I haven't found one that shows how to intersect two paths, so far. I would like to either shade or hatch ...
user avatar
  • 321
4 votes
1 answer
255 views

How to draw an edge further away in tikz

In the example below you can see an illustration of the problem I have. I would like to draw an error from node s to 6, but I want to clear node 1. It is easy to do using \draw as you can see from the ...
user avatar
2 votes
2 answers
59 views

Node contents when placing a node on path

In TikZ one can specify a node by a command like \path (0,0) node[node contents=A]; This is very useful if one wishes to apply a command to the text in the node, say, to avoid writing \node at (0,0) {...
user avatar
3 votes
1 answer
74 views

Does Tikz have a way to link nodes on same/different levels automatically?

I want use Tikz to create linked lists (the data structures, with info and next fields in each node). The lists are horizontal, i.e., each node to the right of the previous one. But some nodes must be ...
user avatar
  • 830
0 votes
0 answers
35 views

Package Tikz Error at subsection

There are several errors like this in my whole report especially when a subsection is added. I'm unabble to figure whats wrong
user avatar
4 votes
2 answers
127 views

TikZ/PGF: cut, intersect, unify paths getting a new path

Sorry, I am fairly new to TikZ. Is there a set-theory way of cutting, intersecting, unifying paths like in (proprietary) GUI applications? Or better asked, what is the tikz approach to to deal with ...
user avatar
1 vote
2 answers
57 views

TikZ not detecting third intersection of curves

I want to find the intersections of a graph in a certain y-value in order to create a hybrid path between the curves. However, for some reason, TikZ is not detecting the third intersection. Here is ...
user avatar
1 vote
2 answers
117 views

how to draw n horizontal y-axis parallel lines intersect m vertical x-axis parallel lines

use \foreach command add node circle \begin{tikzpicture}[scale=0.5] \draw[->] (-10, 0) -- (10, 0) node[right] {$x$}; \draw[->] (0, -10) -- (0, 10) node[above] {$y$}; { \foreach \n in {8,7,...
user avatar
4 votes
3 answers
199 views

How to draw a tikz smooth path connecting points on an image?

I want to draw a "specific" smooth path connecting points on the folowing image to get All i can do is putting the points on place. Here is my MWE \documentclass[tikz]{standalone} \begin{...
user avatar
  • 4,600
1 vote
2 answers
138 views

Draw path between nodes in line with another path

I have nodes of differing heights next to each other and would like to draw a path (arrows) between them. However, I would like the path to be horizontal all the way. I managed to achieve this between ...
user avatar
  • 595
0 votes
1 answer
74 views

PGF equivalent of PostScript relative movement (`rlineto` and `rmoveto`)

Like PostScript (with its rmoveto and rlineto), TikZ makes it trivial to produce relative movement of the current point. I'm not seeing anything equivalent in PGF. Is it missing? If so, is it easy ...
user avatar
  • 251
2 votes
1 answer
116 views

Tikz: Shading a path – fade-no-fill.sty does not work as previously (Oct 2020)

I have coloured some paths in a radial drawing of a network graph with a colour gradient. A picture of my document compiled in January 2020 shows what it should look like: To achieve this effect I ...
user avatar
  • 4,853
1 vote
0 answers
32 views

How to fill a Tikz path, for which anchors are not defined by coordinates but by nodes

I am trying to add a path in a tikzpicture. The area surrounded by the path shall be colored, i.e., filled in a color. I would like to use nodes as anchors for the path, rather than x, y coordinates. ...
user avatar
1 vote
3 answers
241 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,...
user avatar
1 vote
1 answer
132 views

Text along path and gradient on each character

I am trying to draw a large colored text along a path, where the color follows a gradient. I found posts describing how to draw text along a path and posts showing how to draw colored text with ...
user avatar
  • 205
3 votes
2 answers
210 views

TikZ style that shifts a path perpendicular

Is it possible to define a TikZ style that shifts a path perpendicularly? I.e., the resulting path should be obtained from the given path by shifting every point, say, 0.1cm to the right, orthogonal ...
user avatar
0 votes
0 answers
60 views

TikZ: vary line (arrow) width

I'm surprised this hasn't come up before, but I've found nothing on either tex.sx, Google, or in the TikZ/pgf manual. (Perhaps I haven't looked hard enough.) I'd like to draw some very simple ...
user avatar
  • 3,317
1 vote
0 answers
25 views

Spurious space using \path (wihout draw options) [duplicate]

I'm trying to extract coordinates from a named coordinate, then to use it for an additional drawings in the next code \documentclass[tikz, border=0.5]{standalone} \usepackage{tikz} \usepackage{...
user avatar
  • 367
1 vote
1 answer
55 views

Is there a way to specify style for part of a path in tikz? [duplicate]

When I need a partially dashed path as below I have to write two \draw commands: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(1,1); ...
user avatar
  • 15
3 votes
2 answers
86 views

TikZ path controls cause centering to fail

I have the following figure. It appears to me that the path labelled G messes up the centering of the figure in the document, probably because TikZ uses some invisible control points to draw this arc. ...
user avatar
1 vote
1 answer
170 views

Image as background pattern -- connecting bars in tikz mindmaps

This is a follow-up to a previous question. Assuming the following setup: \documentclass[margin=10pt]{standalone} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{mindmap,...
user avatar
2 votes
1 answer
105 views

Cased edges in gap-planar graph (intersections, redraw path)

For illustrating my thesis on k-gap-planar graphs I'd like to find an elegant and parametrizable way to produce drawings of such graphs with cased edges (to make clear to which of the edges the ...
user avatar
  • 23
2 votes
1 answer
152 views

Tikz path crossing over first node

I'm working on a Python script to automatically draw pinout diagrams for IC's with Tikz. An example drawing with the TeX file obtained are shown below. As you can see I'm almost done except for a ...
user avatar
  • 23
2 votes
0 answers
24 views

How to "connect" three paths starting at the same point? [duplicate]

The following is a rather simple question, yet somehow I failed to find a solution online. Let's say for example we want to draw a three-dimensional coordinate system: \documentclass{article} \...
user avatar
1 vote
1 answer
75 views

Help drawing as text a number from a formula (For instance [ 1-\thepage)*70+\i ] )

Googling I found that it is common that \lineno does not work properly around displaymath with the ifacconf.cls template. I am trying to improve a workaround I found for peer review reference. ...
user avatar
2 votes
0 answers
173 views

center text along tikz path after a shift [duplicate]

I elaborated upon Decorate tikz path with cyrillic text to develop an example: \documentclass[margin=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{...
user avatar
  • 6,803
2 votes
1 answer
81 views

Define and use paths inside foreach

I've looked at this and that, and I'm unable to compile and use intersections of lines i give name inside the same foreach loop. \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{...
user avatar
  • 367
1 vote
1 answer
64 views

TikZ node coordinates (nodeName.number??)

In the following example code: ... \node (naveq) [naveqs] {Navigation equations}; \path (naveq.140)+(-\blockdist,0) node (gyros) [sensor] {Gyros}; ... what does naveq.140 means?
user avatar
  • 123
5 votes
2 answers
471 views

Moving a point along a "multi-node path"

I would like to create a gif (as explained in this answer) of a point moving along a crooked "multi-node path". I would like this path to be specified as below: a sequence of nodes connected by edges. ...
user avatar
4 votes
2 answers
134 views

Arrows along a partial named path

I am trying to reproduce following image: For that I create 3 nodes, a support path (mycurve) and (hidden) support lines (l1 to l12) then place other nodes on the lx and mycurve intersections. This ...
user avatar
  • 722
3 votes
1 answer
127 views

Misplaced path using -| or |- with decoration (e.g. snake)

If I draw a path with the -|(horizontal-first-then-vertical) or |- (vertical-first-then-horizontal) commands and decorate the path with the snake-morphing operation, the latter half of the path is ...
user avatar
  • 1,025