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.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

How and where to change chapter decoration?

I downloaded a Latex template here. On every chapter (\chapter{}) the following decoration is displayed: How can I change it to an individual one?
4
votes
2answers
111 views

Random Double Arc Endpoint Angles

I am trying to add some randomness to a double arc using random steps. The top and bottom endpoints of the arc are not at the same angles as the same arc drawn normally. \documentclass{article} \...
2
votes
1answer
75 views

TikZ: Draw interrupted line with text and arrows

Refer to this question I try to draw an interrupted line, but with text below / above and arrows at both ends. \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations} \usetikzlibrary{...
1
vote
2answers
31 views

Linebreak in text which decorates a path using decorations.text

Is it possible to use a linebreak in a text which decorates a path? Consider the following MWE: % Circular arrows with text % Author: Tom Bombadil \documentclass[tikz,border=10pt]{standalone} \...
3
votes
1answer
65 views

Rotate circular text

I am trying to approximate the following logo. This is necessary because we might do some corrections to the text, and especially the colors, so it is not desirable to keep going back into an image ...
3
votes
1answer
65 views

Replace the zigzag decoration by wave decoration in tcolorbox

First of all, I would like to thank CarLateX for her answer in this post. My request is to replace the zigzag decoration with a wave decoration in this code \tcolorboxenvironment{defin}{ blanker, ...
5
votes
2answers
98 views

Increase letter spacing in TiKZ text decorations

I've been trying to increase the spacing between letters in the diagram below: \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{fontspec} \setmainfont{Brill} \usetikzlibrary{decorations....
0
votes
2answers
61 views

TikZ: How to get decorations on each grid-middlepoint?

What is the right setting to get a decoration at every center of every box? \documentclass[margin=5mm, tikz]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \...
7
votes
2answers
161 views

Curved brace decoration

As far as I know the brace decoration is only available for straight lines, as in the following example : \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{decorations.pathreplacing} \...
2
votes
0answers
90 views

A decorations packages of LaTeX

I'm looking for decorations packages of LaTeX. So far, what I know is the: Adforn Pgfornament Psvectorian (I don't see differences between this and pgfornament...) So, can you tell me please ...
1
vote
1answer
40 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,...
3
votes
1answer
52 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 ...
12
votes
1answer
182 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
24 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
40 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
63 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
675 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} \...
3
votes
1answer
63 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
100 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
86 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
60 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 ...
2
votes
1answer
84 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
91 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
120 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
107 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
87 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
33 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
426 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
101 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
105 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
123 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
41 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 ...
2
votes
1answer
86 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
153 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{...
2
votes
1answer
198 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
78 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
60 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
56 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
295 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
648 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
544 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
146 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
751 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
162 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
512 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
516 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
303 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
261 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]{...
2
votes
1answer
92 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
402 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,...