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.
327
questions
5
votes
1
answer
119
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{...
2
votes
2
answers
104
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....
0
votes
1
answer
42
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 ...
4
votes
3
answers
162
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}[...
0
votes
1
answer
47
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}
\...
4
votes
2
answers
197
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?
\...
1
vote
1
answer
57
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 ...
1
vote
1
answer
60
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 ...
2
votes
1
answer
29
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, ...
1
vote
1
answer
171
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 ...
3
votes
2
answers
86
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{...
2
votes
1
answer
88
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 ...
1
vote
1
answer
33
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 ...
2
votes
2
answers
78
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{...
1
vote
1
answer
90
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....
0
votes
1
answer
35
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}
\...
1
vote
1
answer
76
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 ...
5
votes
2
answers
175
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
\...
2
votes
1
answer
75
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}
\...
10
votes
3
answers
399
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 ...
0
votes
2
answers
239
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}[...
0
votes
2
answers
70
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}}
2
votes
1
answer
68
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 ...
1
vote
1
answer
55
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}...
2
votes
1
answer
65
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{...
0
votes
1
answer
256
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/...
1
vote
1
answer
49
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 ...
2
votes
1
answer
261
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 ...
6
votes
2
answers
215
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 ...
4
votes
1
answer
83
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. ...
0
votes
1
answer
88
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]{}
\...
0
votes
1
answer
90
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{...
3
votes
1
answer
47
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 ...
1
vote
3
answers
112
views
Recreate this image in Latex [closed]
Can anyone please guide me in how I can recreate this image in Latex ?
3
votes
1
answer
97
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 ...
6
votes
1
answer
187
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 ...
10
votes
2
answers
390
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 ...
4
votes
1
answer
408
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 ...
2
votes
1
answer
139
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}
\...
3
votes
1
answer
78
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,...
3
votes
0
answers
39
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, ...
2
votes
1
answer
71
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 = ...
5
votes
2
answers
277
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).
2
votes
2
answers
61
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) {...
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 ...
4
votes
2
answers
433
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.)
\...
2
votes
1
answer
181
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:
\...
1
vote
2
answers
88
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 ...
1
vote
2
answers
134
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
1
answer
81
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:
...