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
5
votes
1answer
366 views

Book Chapter Decoration

How can I produce the following decoration, meant to be used in the chapters of a book?
2
votes
1answer
68 views

How do I position horizontally and vertically repeated brackets where text not lined up with centre

I am trying to replicate a diagram in a paywalled article and I'm having problems. It's using repeated curly brackets to demonstrate a hierarchy. But, because the ideas at each level in the hierarchy ...
0
votes
0answers
57 views

TikZ: text along path as node (again)

I would like to ask again the following question: TikZ: text along path as node That question was answered with a solution which was good enough for OP at the time. I would, however like to have an ...
2
votes
2answers
61 views

Decorating path with math symbols causes pdflatex to hang?

I need to decorate a path with some text that includes math symbols. I followed this example, which works fine as long as I only include text. Here is the MWE (minor changes compared to example to ...
0
votes
1answer
31 views

TikZ: decorate stroke thickness throws 'Dimenson too large' but looks fine (ditto marks)

I've working on some florishes on my ditto mark macro (see Tikz: use latex length for length of path (ditto marks)). Namely, using variable thickness for the strokes. Below it is implemented as the ...
4
votes
2answers
203 views

Mark at multiple positions

I'm drawing a symbolic image of a DNA with tikz: I did this using decorations.markings: \documentclass[margin = 12mm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{...
1
vote
1answer
63 views

Plot the difference between two bezier curves

I have the following code to plot two parabola-like "functions": \begin{tikzpicture}[ remember picture, overlay ] \tikzmath{ \w = 4; \yVs0 = 2; \yVsl = 1; \yVsf = 3; \...
10
votes
3answers
393 views

TikZ: How to draw a pattern at the border of a not closed tikz path

"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" ( ;-) ...
2
votes
3answers
74 views

TikZ: \foreach within Bracketed Arguments

I am trying to efficiently draw two concentric ellipses with four equally spaced dots at the cardinal directions using TikZ. Currently, I have the following code which generates the following image. \...
1
vote
2answers
459 views

Decorated arrow - New math symbols

I would like to add new arrows to the list of arrows below. This arrows will be used as math symbols. The first problem I met is that the first arrow has a bigger head than to two others. I would ...
1
vote
0answers
37 views

How to set different headers for different slides in beamer

I designed a few slides for a quiz show that I hosted. This question is about editing the headers differently in each slide. For reference, please find my output pdf here. In the first slide, the ...
1
vote
1answer
48 views

Decorate minted listing inside a tcolorobox [Merly done…]

I would like to decorate some listings just for pedagogical reasons. Here is a starting code where I can draw a line but I still fail to produce a frame. How can I do that ? \documentclass[12pt,...
10
votes
1answer
191 views

How to typeset maths above the curve of a function with TikZ, with the curve masked (or locally opacified) to improve readibility?

I want to label a family of curves representing a simple family of mathematical functions : x -> x²+c where c will take various values between, say, -6 and 6. I want to superpose the label directly ...
3
votes
1answer
83 views

How to typeset text along the curve of a mathematical function with TikZ

I want to label a family of curves representing mathematical functions by writing at some place of the curve the formula directly on the trace. More specifically, my family of curves is the very ...
2
votes
1answer
55 views

PGF decorations not working

I am trying to use the following custom pgfdecoration to draw bonds with varying length of the double bond while using chemfig. The code was obtained from the following link: How to alter the bond ...
0
votes
0answers
37 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
131 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
193 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
42 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
116 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
99 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
131 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
84 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
234 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
121 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
54 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
75 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
220 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
27 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
52 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
86 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
744 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
74 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. ...
3
votes
1answer
156 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
93 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
90 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
94 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
121 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
152 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
169 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
92 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
38 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
458 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
120 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
133 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
131 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
44 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
98 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
177 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
357 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 2 3 4 5 6