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
0 answers
7 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} \...
user avatar
10 votes
3 answers
331 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 ...
user avatar
0 votes
2 answers
57 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}[...
user avatar
0 votes
2 answers
55 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}}
user avatar
2 votes
1 answer
51 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
0 votes
1 answer
35 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}...
user avatar
  • 615
2 votes
1 answer
44 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{...
user avatar
  • 455
0 votes
1 answer
88 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/...
user avatar
1 vote
1 answer
36 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 ...
user avatar
  • 579
2 votes
1 answer
75 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 ...
user avatar
  • 1,163
6 votes
2 answers
138 views

Is it possible to typeset over and underbraces in NiceMatrix?

I am trying to draw matrices with overbraces and underbraces. This may be done with the assistance of node numbering and \tikzset to process a few options for the calligraphic braces. According to how ...
user avatar
4 votes
1 answer
66 views

Attach arrow head to curveto decoration

In relation to this question: Shorten curved arrow proportionally to length I have tried to use a curveto decoration to make a proportional shortening of a curve. My only problem is the arrow head. ...
user avatar
0 votes
1 answer
77 views

Is it possible to create my own decorative titles and page numbers? ( How can I put my own image and page number on the header at the same time?)

updated 10/12 Thank you @Rmano, I failed to reply well in the comment section, so I show my problem here: I tried \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[L,C]{} \...
user avatar
  • 103
0 votes
1 answer
88 views

How to make this scheme look a bit better? [closed]

Im working on the next scheme What improvements can be added? Specially the decoration item. MWE \documentclass{article} \usepackage{circuitikz} \usetikzlibrary{shapes,arrows} \usetikzlibrary{...
user avatar
  • 383
3 votes
1 answer
44 views

Decorations overlap with meta arrows

When using decorations with open meta arrows, the decorations seem to go through the arrow. Is there some way to prevent this? (I know that adjusting post length would work, but I would like ...
user avatar
  • 691
1 vote
3 answers
104 views

Recreate this image in Latex [closed]

Can anyone please guide me in how I can recreate this image in Latex ?
user avatar
3 votes
1 answer
68 views

Decorate a multi-segment path without changing segment endpoints

I'd like to draw multi-segment "wavy" paths, so I tried both the standard snake decoration, and the very promising complete sines one as well, but in both cases, the segment endpoints are ...
user avatar
  • 945
6 votes
1 answer
128 views

Drawing a smooth, tapered path ending in an arrow

I'm looking for a convenient way to draw a smooth, tapered path (i.e. a path of variable line width) ending in an arrowhead using TikZ — something like this (drawn in Inkscape): One approach would be ...
user avatar
  • 1,143
10 votes
2 answers
337 views

tikz-cd `shorten` in combination with `squiggly`

I want to draw a shortened squiggly arrow, like the following: However, when I use shorten in combination with squiggly, I get a strange effect, where the shortened segment is drawn both as squiggly ...
user avatar
  • 413
4 votes
1 answer
243 views

How to draw text along the path defined by a function?

I'm still dabbling in the use of pgfplots but I'm trying to draw arrows on this plot to show an inverse correlation between the variation in the arc length along the curve and the changes in x. Given ...
user avatar
  • 113
2 votes
1 answer
85 views

Text along path decoration with white background

I want to have some text appear along a line but not be obstructed by the line itself. I tried the following: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \...
user avatar
  • 1,531
3 votes
1 answer
69 views

Adjusting distance of two decorative ornamentals at the top of the page

I'm trying to reproduce the preface page ornament design of the Westlake's How to write letters book. This is a capture of that page with the decoration: In doing so, I've used the pgfornament package,...
user avatar
3 votes
0 answers
33 views

Improving TikZ curved arrow with decorated path text

I have two questions working with this example: Circular Arrows and Text on Path 1. Is it possible to position the \arcarrow relative to some node? 2. Is it possible to have the text in the arrows 0, ...
user avatar
  • 253
2 votes
1 answer
60 views

Venn diagram: how split the set in two parts

With this code \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \draw[pattern=north east lines,pattern color=yellow] (4.5,2) ellipse[x radius = ...
user avatar
  • 625
5 votes
2 answers
186 views

Drawing a set of elliptical shape partitions using tikz

I would like to draw a region of elliptical shape with 3 partitions. Each partition should be shaded and labeled differently (e.g., green, yellow and orange partition).
user avatar
  • 625
2 votes
2 answers
59 views

Node contents when placing a node on path

In TikZ one can specify a node by a command like \path (0,0) node[node contents=A]; This is very useful if one wishes to apply a command to the text in the node, say, to avoid writing \node at (0,0) {...
user avatar
0 votes
1 answer
47 views

Why are lines appearing away from TikZ graph?

I'm trying to connect the ends of child nodes in TikZ. The lines form the correct shape (it should look like a triangle), but they are appearing weirdly displaced. I want the lines to connect the ...
user avatar
4 votes
2 answers
324 views

Decorating an edge of a cycle in tikz

I would like to decorate the top edge of this shaded square with rounded corners by a little circle. (Hopefully, I would use the decor defined below. My trials and errors got me errors only.) \...
user avatar
  • 679
1 vote
1 answer
123 views

Decorations behave strange with tcolorbox frames

I'm trying to change how the frame of a tccolorbox looks like. The decoration works fine with a normal tikzpicture, but looks really odd when used as the decoration for a tcolorbox. Code: \...
user avatar
1 vote
2 answers
72 views

How to decorate 2 paths in the same graph?

There is a graph made of two addplot commands But the arrows must be in the same direction (the way of the top one), and the axis are gone (or made transparent). The two sections are two separate ...
user avatar
  • 1,137
1 vote
2 answers
99 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, ...
user avatar
3 votes
1 answer
67 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. EDIT: ...
user avatar
  • 6,230
1 vote
1 answer
94 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. ...
user avatar
  • 2,024
0 votes
0 answers
66 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 ...
user avatar
  • 2,024
0 votes
1 answer
66 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}[] \...
user avatar
  • 6,217
1 vote
2 answers
315 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,-...
user avatar
  • 291
2 votes
2 answers
122 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 ...
user avatar
  • 11.4k
0 votes
3 answers
95 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 ...
user avatar
  • 1,861
7 votes
2 answers
1k 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. ...
user avatar
  • 1,861
5 votes
2 answers
449 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 \...
user avatar
  • 2,447
1 vote
1 answer
54 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. ...
user avatar
  • 862
1 vote
1 answer
84 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 ...
user avatar
  • 862
6 votes
1 answer
131 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 (...
user avatar
  • 928
3 votes
1 answer
100 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, ...
user avatar
  • 440
6 votes
1 answer
550 views

Book Chapter Decoration

How can I produce the following decoration, meant to be used in the chapters of a book?
user avatar
  • 4,530
2 votes
1 answer
462 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 ...
user avatar
  • 473
0 votes
0 answers
125 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 ...
user avatar
2 votes
2 answers
112 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 ...
user avatar
  • 2,659
0 votes
1 answer
55 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 ...
user avatar
  • 969
4 votes
2 answers
574 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{...
user avatar

1
2 3 4 5
7