Skip to main content

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
1 answer
58 views

TikZ-decoration: How to to draw a defined number of positive and negative amplitudes over a certain length

I would like to use decoration=snake (or possibly coil, aspect=0) to draw a defined number \n of positive and negative amplitudes over a length \u (in the example n=4). How do I have to set the ...
cis's user avatar
  • 8,922
7 votes
1 answer
404 views

How to avoid the strange line at the end of a zigzag decoration

I would like to place a specified number of zigzags along a path. That means, in the following MWE are exactly 4 positive and 4 negativ amplitudes around the black line. How can I avoid the strange ...
cis's user avatar
  • 8,922
0 votes
2 answers
64 views

Placing Shadowed Titles within a Tikzpicture

I am trying to adapt the excellent answer of Sandy G found in Arching a Shadowed Title to a slightly different problem. Consider the code: \documentclass{book} \usepackage[sfdefault]{cabin} \...
DDS's user avatar
  • 9,768
3 votes
2 answers
206 views

Arching a Shadowed Title

Consider the code: \documentclass{article} \usepackage[sfdefault]{cabin} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{fadings} \usepackage{scalefnt} \definecolor{DarkRed}{RGB}{139,0,...
DDS's user avatar
  • 9,768
4 votes
1 answer
133 views

Finishing a TIKZ Gold Plate with a Correspondingly Finished Title

This post is an addendum to Providing an Authentic Finish to a TIKZ Gold Plate. Consider the code: \documentclass{article} % Compiles with XELATEX \usepackage[sfdefault]{cabin} \usepackage[english]{...
DDS's user avatar
  • 9,768
14 votes
2 answers
1k views

Providing an Authentic Finish to a TIKZ Gold Plate

I am under the assumption that the RGB color formula for pure gold is (255,215,0). Consider the code: \documentclass{article} \usepackage[sfdefault]{cabin} \usepackage[english]{babel} \usepackage{tikz}...
DDS's user avatar
  • 9,768
2 votes
2 answers
58 views

Is decorations.text not properly compatible with the tikzmark library?

I've tried getting this strange error message across 2 different documents so far (that I've tested), and it only happens when I combine the usage of tikzmark with decorations.text, both of which are ...
Atex's user avatar
  • 210
3 votes
1 answer
66 views

Is it possible to apply two pathmorphing/pathreplacing decorations in succession?

Suppose one wants to achieve the following: Current Status Based upon another post, I was able to create a "MWE" of how I would like this to work: \documentclass[border=5pt]{standalone} \...
dsacre's user avatar
  • 377
4 votes
1 answer
503 views

How to reproduce this kind of wavy line? [duplicate]

I was wondering how to reproduce this kind of vertical wave line to the left of the text :
Gaétank's user avatar
1 vote
0 answers
40 views

Tikz - Curved Wavy Arrow [duplicate]

I would like to create a curved wavy arrow with Tikz. Using the solution from here (How to get a wavy arrow for an edge?), I can create straight wavy arrows, but adapting to curves does not work and ...
Wolpertinger's user avatar
3 votes
1 answer
135 views

Create command with decoration in Tikz

I am doing a job that is simple but must be done thousands of times. I want to create a command whose inputs are two coordinates ( \coordinate (A) at (0,0); and B at \coordinate (B) at (3,6); for ...
Alejandro Munoz Ossa's user avatar
1 vote
1 answer
56 views

Dimension too large error while using path decoration in TikZ

An error occurs when connecting the path decorations. ! Dimension too large. <to be read again> \relax l.12 ...lot[] ({-sin(\t r)}, {cos(\t r) + 5e-2*\t}); ...
sergiokapone's user avatar
  • 5,598
1 vote
0 answers
87 views

How to Arch an Image to Fit a Tikz Decorations Page

Consider: \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{decorations.text} \tikzset{mydecor/.style ...
DDS's user avatar
  • 9,768
3 votes
1 answer
156 views

How to Get Bold Text with TikZ Decorations?

MWE: \documentclass{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{decorations.text} \tikzset{mydecor/.style 2 args={decoration={text along path, text align={left indent=2em},...
DDS's user avatar
  • 9,768
2 votes
1 answer
52 views

How to position a decorating text with effects on a curved path using 'left indent'?

Using text effects nullifies the expected behavior from text align = {left indent = {0.25\dimexpr\pgfdecoratedpathlength\relax}} that should start typesetting the text at 25% of the path length away ...
Diaa's user avatar
  • 9,689
1 vote
1 answer
30 views

pgfplots: How to clip the decorated path to the viewport limits and make 'text align' use its new limits?

Without the need to explicitly set the x-domain key domain, how to clip the decorated path to the viewport y-limits ymin = 0.5, ymax = 2.5 so that \pgfdecoratedpathlength is what can be measured on ...
Diaa's user avatar
  • 9,689
4 votes
2 answers
82 views

decorations.text: How to have math inside the text key?

How to fix the following to have math inside the text key with dynamic variables? \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{decorations.text, math, intersections} \begin{document}...
Diaa's user avatar
  • 9,689
2 votes
2 answers
144 views

Decorate path and its edges with pathmorphing decoration

I'd like to define a TikZ style that applies a path morphing decoration to a path as well every of its edges, just like the dashed style is applied to all edges. Here's my code: \documentclass[tikz]{...
Andi Bauer's user avatar
4 votes
3 answers
366 views

How can one add a directional gradient outer glow effect on text in LaTeX?

How can one achieve the following effect (sometimes called a "(directional) gradient outer glow") in LaTeX? Here are two further examples of this style I found on Google: Related: Here's ...
Emily's user avatar
  • 221
1 vote
1 answer
174 views

Interval on a number line

I would like to make an interval on a number line that looks like these. This is my attempt: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations,decorations.markings,decorations....
Tom's user avatar
  • 11
0 votes
1 answer
113 views

Tikz: Draw and fill a pattern beside a path

In TikZ: How to draw a pattern at the border of a not closed tikz path, the solution draws a hatched pattern beside a line. I would like to adapt it to also fill in the space behind the pattern to ...
user1476176's user avatar
  • 1,275
1 vote
1 answer
92 views

TikZ path decoration: How to include the degree symbol

I am accustomed to using the degree symbol in LaTeX and know most of the ways to create it. However I am unable to use the degree symbol within a text decoration. In the following example I simply ...
Aendie's user avatar
  • 265
5 votes
1 answer
129 views

How to Change the Color of the Footnoteline and Footnotemark Beneath within a Tikzpicture

Consider the code \documentclass[12pt]{book} \textwidth=4in \textheight=6.40in \usepackage[sfdefault]{cabin} \usepackage{csquotes} \usepackage{xcolor} \definecolor{bblue}{RGB}{33,41,88} \usepackage{...
DDS's user avatar
  • 9,768
2 votes
2 answers
201 views

How to draw a heating element in TikZ

I am attempting to re-create a circuit diagram that contains a heating element using circuitikz but am having trouble drawing the element itself. I have tried using the spring shape found in section 4....
Jacob House's user avatar
0 votes
1 answer
110 views

Line Break Inside Tikz Text-Decorations

Using the text along path decoration option of tikz, I would like to be able to do line breaks in the text. Obviously, standard commands such as \\ do not work. Right now, I am using two different ...
Vincent Krebs's user avatar
4 votes
3 answers
186 views

Plus minus reversal in the post length decoration

Why does plus and minus not work the way I expect in the post length option \documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture}[...
hpekristiansen's user avatar
0 votes
1 answer
63 views

Dot is misplaced in markings along path

I try to draw a diagram which represent the action of an homotopy. The dot is misplaced on the curve as you can see. MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
Flowt's user avatar
  • 181
4 votes
2 answers
230 views

Obtain closed paths using Tikz random decoration on circles

I would like to use the Tikz decorations library to create some randomly shaped objects. However, I usually obtain open perimeters. Is there a way to obtain a closed path using this approach? \...
tosogoso's user avatar
  • 107
1 vote
1 answer
86 views

Cyclic animation of objects along a path using the tikz decorations library and animate

How could a cyclic animation be achieved using the tikz decorations library and animate? The simple example shows circles moving around the perimeter of a square (the resulting animation is shown ...
tosogoso's user avatar
  • 107
1 vote
1 answer
100 views

Periodic decimal divisions of rational numbers

I would like to code my own Lua(LaTeX) code to obtain periodic decimal divisions like the one below. I know the xlop package, but I want another formatting. My question is just about formatting and ...
projetmbc's user avatar
  • 13.4k
2 votes
1 answer
63 views

Decoration causes line to disappear

I have the following diagram: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture} \newcommand\rad{.75} \foreach \a/\r in {60/0, ...
Sriotchilism O'Zaic's user avatar
0 votes
1 answer
211 views

How to Produce a Replica of This Chapter Decoration with Latex

Can someone either produce, or tell me how (the steps involved) I may produce the following book chapter decoration with Latex (preferably, pdflatex)? I know there exist external sources that allow ...
DDS's user avatar
  • 9,768
3 votes
2 answers
220 views

TikzCD decorated arrows (wavy) and to path produces nightmarish results

Based off of Wavy arrows in xy-pic and the snake lemma code in https://ctan.math.washington.edu/tex-archive/graphics/pgf/contrib/tikz-cd/tikz-cd-doc.pdf % minimal working example (MWE) \documentclass{...
D.R's user avatar
  • 771
2 votes
1 answer
130 views

How do I draw an arrow with a bullet on the line?

Using tikzcd I can (roughly) produce what I want: \begin{tikzcd} [column sep = small] a \ar[r, "\bullet" {description, inner sep=0, outer sep=0}] & b \end{tikzcd}) yielding However ...
Peter Guthmann's user avatar
2 votes
1 answer
40 views

rnd minimum width of node in decoration does not have same size in repeated code

I'd like to decorate path with double line of stars and expect the upper line of stars duplicate the lower ones. But why the stars in the state{initial} part are still random size. I try to set ...
asepsiswu's user avatar
2 votes
2 answers
152 views

Cannot decorate an empty path in pgfplot

I want to save a plot, draw it cropped and put an arrow on it \documentclass[10pt,convert={convertexe=magick,density=1000,outext=.png}]{standalone} \usepackage{tikz,pgfplots} \usetikzlibrary{...
Pygmalion's user avatar
  • 6,329
1 vote
1 answer
145 views

Cannot decorate an empty path

I want to save a path, draw it cropped and put an arrow on it \documentclass[10pt,convert={convertexe=magick,density=1000,outext=.png}]{standalone} \usepackage{tikz} \usetikzlibrary{decorations....
Pygmalion's user avatar
  • 6,329
0 votes
1 answer
53 views

Resize text in mathmode in a bend arrow

I want to change the size of a math text in a curved arrow, but whenever I manage to change the size, the text is no longer curved. My code is \documentclass[tikz, margin=3mm]{standalone} \...
Mrcrg's user avatar
  • 301
1 vote
1 answer
96 views

Align Text Along Sectors Paths

I have 15 departments in my organization and wish to get a tikz representation of them all thus I sector a circle into 15 wishing to label each department in each sector and units of each department ...
Daniel James's user avatar
5 votes
2 answers
302 views

How to draw coil with varying compression

I am trying to a draw a coil with varying compression, along the lines of the image below (not mine). I considered just drawing two different coils with different compressions next to each other \...
igunnarsson's user avatar
2 votes
1 answer
96 views

Nonlinear transformation applied on decorations along path with a custom pic

I am having a problem to apply a single nonlinear transformation to a path decorated with custom pics. A minimal example follows: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \...
iago.oliveira's user avatar
10 votes
3 answers
518 views

Adding small arcs to a path in specific places

I have a path consisting of a series of straight lines and arcs, and now I would like to modify that path by replacing some segments of the line/the arc with another small arc whose centre is on the ...
Manuel Eberl's user avatar
1 vote
2 answers
681 views

Marking angles in tkz-euclide

I am trying to reproduce an example from (an excellent) manual on tkz-euclide. Here is an MWE: \documentclass{article} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture}[...
Sergey Belyaev's user avatar
0 votes
2 answers
83 views

How to make frame decorations bigger?

It is very small and often I can't see them. For instance, those tildes: \tilde{g}_{ij}\de{\tilde{x}^{i}}{x^{k}}\de{\tilde{x}^{j}}{x^{l}}
Phiisnotdead's user avatar
2 votes
1 answer
89 views

How to use a bowtie as a marking for an arrow in tikzpicture

The title pretty much sums it up. The goal: the get a bowtie in the middle of a line segment like the one shown. I have a minimum working example included with the output below. Currently the ...
user avatar
1 vote
1 answer
75 views

Style the first few characters of text along a path

How can this code be modified so that the first few characters (say 3) are colored red? \documentclass[tikz]{standalone} \begin{document} \usetikzlibrary{decorations.text,calc,math} \begin{tikzpicture}...
Michael's user avatar
  • 665
2 votes
1 answer
91 views

Decorations on circuitikz elements

I was trying to create a schematic with TikZ that looks like hand drawn. Unfortunately circuitikz seems not to work nicely with the decorations library. See the following example: \documentclass{...
mais's user avatar
  • 475
0 votes
1 answer
617 views

How can I decorate latex documents like this one?

I have very little knowledge of latex. I use overleaf for writing documents. recently, I saw a very nicely decorated template in overleaf, and here it is https://www.overleaf.com/latex/templates/...
Montasir Ahmed's user avatar
1 vote
1 answer
66 views

How to draw a circular "arc"ed double distance arrow with correctly positioned tips and text with graphics between the double distance lines?

I have a problem with the position of an arrow tip when drawing a circular double distance arrow. Problem seems to be the use of library bending or not. If not, partly correctly positioned tips, but ...
gizeh's user avatar
  • 491
2 votes
1 answer
763 views

Change size of text in tikz decoration

I'm trying to draw some text along an arc, but I can't see how I can change the font size of the text I'm drawing. \foreach \j/\k/\p in {1/30/December,31/61/November}{ \draw [decoration={text ...
thosphor's user avatar
  • 1,203

1
2 3 4 5
7