Stack Exchange Network

Stack Exchange network consists of 174 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.

13
votes
2answers
409 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
50 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
36 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
71 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
31 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
70 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
56 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
88 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
68 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
76 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
26 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
396 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
80 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
78 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
108 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
34 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
64 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
109 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
69 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
72 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
48 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
48 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
217 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
481 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
367 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
122 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
730 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
119 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
308 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
353 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
205 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
194 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
55 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
278 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
110 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
732 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
240 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
279 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
290 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
213 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
107 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
192 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
442 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 ...
11
votes
1answer
440 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" ...
2
votes
1answer
275 views

How to decorate a page border with text?

I would like to decorate a page border with text, using a specified font. Here, I am using Augie. This answer How to write a text along a circle? provides some guidance. I set up a path which is a ...
1
vote
1answer
199 views

Decorate contour with arrows in different directions

In this post it is thoroughly explained how to decorate a contour with arrows. How can I do the same, but so that one contour has arrows in one direction, and the other contour has arrows in the ...
6
votes
1answer
272 views

Text decoration in TikZ when the text is longer that the path

I have a couple of questions about text decoration in tikz when the text is longer than the path to decorate: Why doesn't the decoration begin at the beginning of the line (whereas it is correctly ...
1
vote
1answer
75 views

Adjusting arrow head to swallow a path

I'm making a network diagram with shaped arrows that go the whole length of the path, rather than just being a line with an arrow on the end. Because the bend option is so easy to use, I chose to do ...
5
votes
2answers
358 views

Using path options to set color for a custom shading

I'm using a custom shading to make cylindrical bars. The shading uses a color that is defined in the color list. I can change the color by using a \colorlet expression. But I'd like to be able to ...
4
votes
3answers
121 views

Setting order of decorations on a path

I'm trying to make paths that are shaded to as to appear as cylinders with spherical ends. I've found a way to do this with decorations. I use vertical shading on rectangles for the path segments, ...