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
1
vote
2answers
44 views

Decoration for self crossing lines/curves

Is it possible to define a decoration/postaction, for drawing a double line so that a self intersecting line will draw on top of itself? To show what I mean see these spirals: \documentclass[tikz, ...
3
votes
1answer
34 views

Insert empty space between decoRule and figure

I wanted to insert a little space between the figure and the line of \decoRule. Instead \vspace{} is adding a space between the line and the caption. Does anyone know a why it does that? Thanks. \...
1
vote
1answer
57 views

Wrong position of some ornamentations in the book's margins

I'm trying to setup some corners ornamentations with the pgfornament package. It works, but the horizontal position of some of the ornamentations is wrong and I don't know how to push them properly. ...
0
votes
0answers
33 views

How to add some fancy old style decoration in four corners of margins?

I would like to add some fancy-looking, old style decorations in the four corners of each page of the main part of a document, while keeping a small gap from the paper's edge to allow printing. Here's ...
6
votes
2answers
635 views

How to make a glowing text?

I'd like to achieve such a result, like when you apply a glowing effect to a text in an image editor. As I am already using tikz package in my document, it would be prefferable to use tikz's library. ...
0
votes
1answer
54 views

TikZ: Filled area with curvy end line

How can I have a filled area like this: With a curvy line. In the sense of: it continues here \documentclass[margin=5pt, tikz]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[] \...
0
votes
2answers
1k views

Fit decoRule to picture lentgh

I am using decoRule to draw a line under my figure and before the caption. I would like to have this line with the same lenght of my picture. the code I am using is the following: \begin{figure} \...
1
vote
2answers
56 views

How to add finishing to a zig-zag line in tikzpicture

Consider the following MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{center} \begin{tikzpicture} \draw[thick] (3,-...
2
votes
2answers
110 views

Center a plot relatively to the middle of a vertical segment

NEW POST Thanks to the code of Black Mild I have almost what I need. Here is what it remains to do. How to center the plot vertically relatively to the middle of the segment [T21 T22] where T21 and ...
0
votes
3answers
62 views

Frame all the content

I am looking for the way of creating one border frame around everything I have. Something like standalone class, but an outline insted of cropping. I would also like to manage margins, line thickness ...
21
votes
1answer
809 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 ...
5
votes
2answers
247 views

Plot decorated arrows in pgf?

Problematic I'd like to display a simple continuous graph and a set of vertical arrows whose height follow the shape of a function. The following diagram of flows in TikZ has this decoration \...
1
vote
1answer
40 views

Not able to draw arrows parallel to line

I am trying to draw a region. I am not able to draw arrows parallel to line connecting inner region to outer region. This is what I have and this is what I want The code I have so far is below. ...
22
votes
1answer
16k views

TiKZ decoration doesn't work

I am trying to get TikZ decorations to work, but so far without success. In this minimal example, I am trying to compile an example found in pgfmanual.pdf in section 20.2: \documentclass{article} \...
1
vote
1answer
46 views

Arrow is not aligned

I am tryinf to make a multi-connected region in tikz. The arrow on the circle inside is weirdly tilted or angled somehow. as can be seen in the zoomed picture. I coloured them so that it can be seen ...
6
votes
1answer
84 views

Unexpected behavior of arrow decorations on knots: Multiple arrows and gaps appear

I'm using the knots tikzlibrary to draw some knots, and wanted to orient my knots, i.e. add an arrow. I use a decoration style which I've called "arrowat", which inserts an arrow at the desired spot (...
3
votes
1answer
48 views

Add tiers of brackets under TikZ Forest nodes

I want to annotate some subparts of a language family tree by adding a bracket below them. Taking inspiration from another question, I currently get as far as \begin{forest} for tree={s sep=2mm, ...
105
votes
8answers
74k views

TikZ: How to draw an arrow in the middle of the line?

Like this: .------<------. | | v ^ | | '------>------' I am currently using \begin{scope}[very thick,->] \draw (-4,1)--(-4,0)--(0.1,0); \draw (0,0)--...
6
votes
1answer
442 views

Book Chapter Decoration

How can I produce the following decoration, meant to be used in the chapters of a book?
2
votes
1answer
165 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
87 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 ...
10
votes
1answer
2k views

Text decoration below path

This should be a very simple question. \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \draw[-stealth,postaction={decorate,...
3
votes
2answers
520 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{...
2
votes
2answers
79 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
48 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
301 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
80 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; \...
11
votes
3answers
575 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
91 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. \...
2
votes
2answers
499 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
116 views

How to set different headers for different slides in beamer [closed]

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
69 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
204 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 ...
4
votes
1answer
176 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
78 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 ...
4
votes
2answers
965 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 ...
0
votes
0answers
52 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
145 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
345 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
72 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
162 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
163 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, ...
6
votes
2answers
193 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
111 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} \...
154
votes
14answers
64k views

Totally sweet horizontal rules in LaTeX

I have been trying to find a way to easily drop a nice horizontal rule into a LaTeX document. \hline just makes a line across the page. It would seem that some package must provide something that is ...
7
votes
2answers
371 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
175 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
80 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
98 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
280 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 ...

1
2 3 4 5 6