Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [decorations]

part of the tikz/pgf bundle: the decoration libraries define a number of (more or less useful) decorations that can be applied to paths.

2
votes
1answer
28 views

Problem with TikZ path label orientation

I'm a newbie to LaTeX. I wanted to group and name the rectangles like the image below so I tried this. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit,calc,...
4
votes
1answer
38 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 ...
13
votes
1answer
140 views

TikZ-decoration: control decoration amplitude along curve

Working with path decorations based on this solution provided by marmot I am searching for a possibility to change the decorations amplitude along the graph. Having this plot applying the mentioned ...
2
votes
1answer
19 views

Dimension too large in pgfplots when using decoration

I have a set of points that are not evenly distributed. I found this post that's supposed to do exactly what I want, but when I try to use it for my problem I get a Dimension too large error and I don'...
1
vote
1answer
23 views

Second mark coordinate in decoration in postaction not recognized

In decoration, second mark coordinate is not recognized: \draw[thick,red,zigzag,postaction={ decoration={ markings, mark=at position 0.7 with \coordinate (x); mark=at ...
0
votes
0answers
44 views

figure+tikz+caption results in unwanted vertical gap before caption

The following code draws some datastructures and typesets comments to different parts of these datastructures. Some comments concern single lines, others concern multiple lines; I use braces drawn by ...
17
votes
2answers
563 views

Reproducing a figure in tikz with text and arrows flowing round in a circle

I want to reproduce the following figure with tikz (because there is a typo in the text in this figure). My tikz code is (borrowed from here) \documentclass[tikz,border=10pt]{standalone} \...
4
votes
1answer
56 views

Using some symbol other than braces for path decoration

In tikz, we can do path replacing decoration with braces. Is it possible to do this with some other symbol instead? (eg: square bracket). In the manuals, there is no direct method for this is given. ...
2
votes
1answer
56 views

Filling rule and for pattern at border

Based on the solution provided at TikZ: How to draw a pattern at the border of a tikz path I was able to do all the graphics in my thesis, except for one shape. As you can see in the graphic the ...
7
votes
1answer
79 views

Remove part of decoration drawn with “celtic” package

I have this decoration created with celtic package. \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{celtic} \parindent=0pt \begin{document} \definecolor{amber}{rgb}{1.0,0.49,0.0} \...
1
vote
1answer
38 views

How to change the code from snakes to decorations.pathmorphing

I have the following curve in an instance of Tikz: \draw[->,snake=snake, segment amplitude=.2mm, segment length=1.5mm, line after snake=0.5mm] (2.8,0.9) -- (2.4,0.9); Since Tikz's library ...
3
votes
1answer
73 views

Finding an intersection with respect to the decoration

in Naming nodes in a decoration and draw lines from node to node I asked a question, which was answered. The most help was the following. \documentclass[tikz,border=3.14mm]{standalone} \...
1
vote
1answer
71 views

Decoration of tikz-3dplot function: Error without effect

I created a 3D plot with tikz-3dplot and tried to add text along a path created by the function tdplotdrawarc by using a text decoration. The appended MWE works as intented, but displays the error ...
5
votes
1answer
96 views

Tikz: ugly decorations on closed objects at merge point

When I use a decoration on objects that are closed, the merge point is usually ugly. The same problems also appears with arrows, even with the pre option: sometimes the zigzag stops "close" to the ...
2
votes
1answer
79 views

Tikz; decoration with rounded corners

I don't know why, but I can't use decoration with rounded corners. The following MWE fails with ERROR: Dimension too large.: \documentclass[beamer,tikz,preview]{standalone} \usetikzlibrary{...
2
votes
1answer
81 views

Tikz: draw path starting at an anchor and just going a specific distance in some angle

I would like to draw a decoreted path starting at the anchor of one node and going in a specific direction for a specific distance. I Found something like this: \draw(node.north) -- (50:2cm); This ...
0
votes
1answer
31 views

How to replace segment object length with decorations?

In the following TikZ example I would like to replace the usage of snakes with decorations. How can I adjust the segment object length with decorations? \documentclass[tikz, preview=true]{standalone} ...
7
votes
3answers
407 views

Challenge: Add descriptions around the arrows in a Tikz flow chart?

I attempt to make a flow chart looks like this: My question is that, is there some way that I can add some text descriptions below and above the line/body of the arrows that linked between the ...
5
votes
1answer
85 views

Decoration with raise option on a cycle path engenders bad result

I am currently trying to do some decoration on a path built from a list of coordinates and cycle. I observe a weird result at the closing point of the cycle. I am looking for a solution to remove it. ...
3
votes
1answer
83 views

tikz exact text position along 3 intersecting circles

i'am not able to correctly place a text string along the perimeter of 3 circles that I've produced using tikz together with the decorations.text library. This is what i've got till now Clearly, the ...
4
votes
1answer
116 views

How to recover intersection times?

When we use intersections library we can get all intersection positions by naming them. But how can we recover the corresponding intersection times on the "sort by" path ? I know that the ...
2
votes
1answer
38 views

Adding vertical shift to a decoration (follow up on Q18617)

I am studying the answer of @Caramdir to TikZ: draw only a certain central length of a given path I would like the segment to be shifted orthogonally relative to the path. I am trying to insert raise ...
3
votes
1answer
69 views

Superposition of random smooth waves to user defined smooth path

I need to complete a simple task of adding some random smooth perturbations to a generally specified smooth path in Tikz, as specified by the plot together with some user defined coordinates as shown ...
4
votes
2answers
128 views

How to shift parallel lines, drawn into a matrix with TikZ

I am initiating a 4x4-matrix and want to connect several entries with lines using TikZ. Now the problem is, that some parallel lines might overlap, as seen in the following example: \documentclass{...
1
vote
1answer
96 views

Ho to write the condition of a set in several lines?

I would like to initiate a set, divided into the left section for the contained elements, and the right section for description of the necessarily fulfilled condition, where the right part might ...
1
vote
1answer
74 views

remove text decorations in header

I could remove text decorations like highlighting or todos from the TOC but not from the header line. I did this without putting the plain text into the optional parameter of \chapter[]{} because ...
2
votes
1answer
52 views

How to shift overlaying lines that are created with pstricks?

I am using pstricks to connect entries of 4x4-matrices with lines, more precisely, I use \ncline{}{}to connect two elements of a given matrix, that I initiated with \Rnode{}{}. I iniated a 4x4-...
2
votes
2answers
50 views

How to connect entries of a matrix with lines?

I am looking for a way, to draw lines in a given matrix, that connect two chosen entries. So, for example I would like to use \begin{pmatrix} 1 & 2 \\ 3 & 4\end{pmatrix} to initiate the 2x2-...
3
votes
1answer
245 views

How to double, or triple an angle mark's decoration with TikZ?

I would like to decorate an angle's mark in a similar way as in this picture (taken from this question): From this answer I could build this: \documentclass[a4paper,12pt]{article} \usepackage{tikz} ...
10
votes
1answer
518 views

tikz: Right to left text within text along path

I have this example to write text along path using decorations.text library, and I want to insert arabic text starting from right to left \documentclass[border=5mm]{standalone} \usepackage{tikz} \...
2
votes
1answer
425 views

Decoration in the Chapter Title

I am trying to use a decoration in the chapter title using the psvectorian package. The problem is that it doesn't work. What am I doing wrong? MWE \documentclass{book} \usepackage[raggedright]{...
1
vote
1answer
132 views

How can I create this ornament section?

or I would like to create a pattern for each section to display a line in the line of the question number, and below the right aligned, score of the question. How can I create this ornament in \...
20
votes
1answer
735 views

How to have a text decorated circumference automatically equal to the length of the text?

I would like to have some text decorated circles with their circumference automatically equal to the length of the text. That is something like my MWE but without calculating the radius manually by ...
2
votes
1answer
134 views

Wavy Arcs in Tikz

I have the following simple code: \documentclass[notitlepage]{report} \usepackage{tikz} \usetikzlibrary{snakes} \begin{tikzpicture} \draw[line width=2pt] (0,0) to (0,4) node[above]{\text{D1}}; ...
5
votes
2answers
361 views

Marking intersection of two lines with a semicircle with no fill

I am trying to create a process flow diagram of my rig using LaTex but I am stuck at trying to figure out how to create a semicircular jump at the intersection of two independent lines in the drawing. ...
4
votes
1answer
409 views

TikZ path with rounded corners and decorations.markings not working as expected (pos=0.0 at wrong location)

I want to put small round markings at fixed distances on a six-pointed star. There are two problems though: pos=0.0 is not at the expected location, but slightly shifted possibly due to the rounded ...
2
votes
1answer
247 views

Bounding box and umlaut issue in text decoration

In the above TikZ picture, how can I extend the bounding box to include the text decoration without manual tinkering (the only solution I was able to find is fiddle with the border or margin class ...
4
votes
2answers
220 views

Decoration markings don't extend bounding box

How come decoration markings don't extend a TikZ picture's bounding box and how can I change this? Consider this example where the arrow markings are partially cropped. \documentclass[tikz]{...
3
votes
1answer
70 views

TikZ style with two arguments running through a list

How can I define a style, in which two arguments take pairwise values in a list? In my case, the style is \tikzset{ loop/.style 2 args={decoration={markings, mark=at position {#1} with {\...
4
votes
1answer
318 views

Scale a decoration in TikZ

Let's suppose a drawing that uses a simple decoration (for illustration, let's say a simple spring): \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,patterns,decorations.pathmorphing,...
1
vote
0answers
117 views

“End-of-story mark”

I try to get in the last line of all my document a black square to mark the end of article. So, this is my MWE: \documentclass{article} %\usepackage[french]{babel} %\useppackage{lipsum} \usepackage{...
3
votes
1answer
822 views

TikZ: Brace around nodes

So I want to put a horizontal brace around a part of the tikzpicture. Alternate approaches I found but don't seem to apply too well here: https://tex.stackexchange.com/a/1568/139666 (braces around ...
2
votes
1answer
276 views

Letterspacing in TiKZ text decorations

I have a drawing of a circle with some text following the curve, as below: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usepackage{fontspec} \usetikzlibrary{decorations.text} \...
2
votes
1answer
316 views

Creating a new decoration

Consider the following LaTeX manuscript featuring a new PDF decoration declaration followed by its use on a simple line. The code is modeled after the examples on p. 999 of the TikZ & PGF manual ...
6
votes
2answers
327 views

Strikethrough lines on a phonological tree

I am wondering how I can add some strikethrough lines on a phonological tree. Here is my code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \usepackage{tipa} \begin{document} \...
3
votes
1answer
247 views

How to italicize and underline a particular part of circular text?

I have drawn two concentric circles and divided them into three sectors containing some text. How do I decorate the text? \documentclass[tikz]{standalone} \usetikzlibrary{decorations.text} \begin{...
3
votes
1answer
125 views

Strange behavior of a tikz-cd arrow with description

While I was answering to another question, I've found a strange behavior of a tikz-cd decoration. If you observe the image below, you can see that all the triangles are with their tips towards the ...
3
votes
1answer
222 views

Inverse clipping and decorated paths

I tried to implement the suggestions of this answer (Paul Gaborit's invclip) to make a "spotlight" effect (to be used with beamer). It works perfectly with simple shapes, but things get tricky when ...
2
votes
1answer
478 views

How to fully customize arrow heads in PGFPlots?

I loathe the predefined arrow styles in tikzor pgfplots and managed to apply customized arrows in tikz by using a decoration. Now I tried to apply the same decoration code inside a pgfplots axis and ...
12
votes
1answer
508 views

Scaling tikz brace

A tikz brace seems to be drawn in three stages (not necessarily in this order): The "curls" at either end. The "point" in the middle. And a straight line connecting the "point" to either "curl" ...