part of the tikz/pgf bundle: the decoration libraries define a number of (more or less useful) decorations that can be applied to paths.

learn more… | top users | synonyms

1
vote
1answer
42 views

How to correct tikz '\draw' location by hand?

I want to make a brace to the right of two nodes but I don't want it to be attached to but I want some extra space. For the starting location my solution seems to work well but for some reason the ...
1
vote
2answers
105 views

Drawing a picture in texmaker showing decorations errors

Here is the code that I want to use in Tex Maker. \documentclass[12pt]{report} \usepackage{amssymb} \usepackage{amsmath} \usepackage{tikz} \usepackage{pgf} \usetikzlibrary{decorations} ...
3
votes
1answer
51 views

Additional parallel paths and “shorten”

A while ago, I have stumbled upon a very nice solution for parallel paths drawn with TikZ, which can be found here: Draw additional parallel paths in TikZ. However, when trying to use this for my ...
1
vote
0answers
49 views

TikZ: correct position for arrowhead when using partway modifiers

My question is a more complicated case of this one. I am trying to make the arrowhead of an arrow decorated with snake be well-centered, but using the solution suggested in the other question causes ...
1
vote
2answers
39 views

How to get decoration text to be right side up instead of upside down

I am drawing arrows in a block diagram and using decorations.text to label them. Arrows going left to right are fine: the labels are upright. But arrows going right to left are appearing upside down. ...
1
vote
0answers
45 views

enumeration lists with special decorations

Within an enumerated list, I would like some "meta"-level annotations: Mark a single, specific item in boldface, or another colour, or have an arrow point at it from the left margin, or surround it ...
4
votes
1answer
118 views

Chapter title with decorative separator [duplicate]

Where can I find the decorative separator pictured here? I want to add it to the (nearly complete) chapter title below. Note: the program I use (Latexian) has the most common packages installed, ...
2
votes
1answer
66 views

drawing snake decoration in a box tikz

I am trying to draw some snake decorations in a box using tikz library but couldn't achieve what I want. Why there is mis-alignment between the actual markings and the snakes. I am using the following ...
3
votes
2answers
119 views

Adding arrows to rectangles in TikZ

Is it possible to decorate rectangles with arrows? I used: \node [draw,rectangle,minimum width=4cm,minimum height=4cm](r){}; But then it is really difficult to line up an edge so that it's level ...
10
votes
1answer
207 views

TikZ decoration to draw a winding or twisting ribbon

I enjoy TikZ styles and decorations a lot, but I still dabble with them. I know how to draw ribbons with a style, if they aren't meant to twist. But I'd like to define a style that has a twist of the ...
6
votes
1answer
168 views

Pgfplots: plot text along function

I want to illustrate a material model, especially the identical loading and unloading path, which are illustrated via arrows that follow the material model in the following picture. I want to put ...
2
votes
1answer
38 views

How can I use a variable from xstring with the text along path decoration from tikz?

Issue How can I get proper text expansion for text=\somevariable in a tikz text decoration. I think I have an expansion problem here. Set \releasedate Extract year from \releasedate in ...
2
votes
1answer
148 views

How can I set the position of text along path in tikz more precisely?

Explanation It seems that nodes can be carefully placed on paths using pos=.25 (i.e. 25% from node BEGIN to node END) when using -- syntax (see Example A). Problem I cannot have the same precision ...
5
votes
1answer
127 views

How to add arrows near the plot path and fill the area under this path?

I'd like to draw a closed plot path filled with pattern and surrounded by arrows: When I used @Jake's solution to add arrows (Decorate a path with little arrows parallel to it) then the pattern ...
1
vote
0answers
45 views

Solved: border decoration produces an additional but displaced arrow tip [closed]

I would like to use decorated paths with arrow heads. But if I use the border decoration, something happens with the arrow tip positioning: \documentclass{article} \usepackage{tikz,amsmath, ...
-1
votes
1answer
149 views

Fractals in TikZ [closed]

How to draw a shape like below using fractals in tikZ?
2
votes
1answer
97 views

A random, smooth ellipse in TikZ

I've tried to do a random, smooth ellipse in TikZ with decorations and I came up with something similar like this, but the endpoints don't match: \documentclass{article} \usepackage{tikz} ...
7
votes
3answers
322 views

Position arrow decoration by center, not by tip

I have lots of curves, each of which I would like to decorate with an arrow precisely at the centre. Here is a simple attempt to do this with TikZ: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
139 views

TikZ crosses-decoration does not work

When trying to compile the examples from the manual like \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \tikz \fill ...
5
votes
1answer
112 views

How do I use the `every character` key in tikz decorations?

Assuming I have the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture}[node distance=5cm] \node[draw, rectangle] (a) ...
3
votes
2answers
81 views

\texttt in decoration causes LaTeX to hang

I have the following code: \documentclass{standalone} \usepackage{tikz} \begin{document} \usetikzlibrary{decorations.text} \begin{tikzpicture} \path [->,decorate,decoration={raise=-5pt, text ...
4
votes
1answer
107 views

Beamer uncover decoration bug

\documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{pgf,tikz} \usepackage{tikz} \begin{document} \frame{ \usetikzlibrary{decorations.pathmorphing} \tikzstyle{kringel}=[decoration={random ...
4
votes
1answer
202 views

outline a plotted graph?

To outline a path in white, one usually the draw the path larger and fill it in white, then copies the original path filled in black over it. This is to better separate it from the background. But ...
2
votes
2answers
766 views

draw round/rectangular bracket embracing nodes in tikz

I know how to draw a curly bracket with the following code: \draw[decorate,decoration={brace,amplitude=5},-] (0.8,-0.75) -- (0.8,0.75); But now I want to draw a round bracket, or a rectangular one. ...
1
vote
2answers
149 views

mdframed, TikZ and zigzag decoration [duplicate]

I would like to have a zigzag decoration around a box created with mdframed. Minimal example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} ...
1
vote
1answer
78 views

Rounded corners don't work properly in custom decoration

I want to create some chemical Lewis structures with TikZ - I can't use chemfig for this since I need to draw the atoms according to their coordinates - and need to define some custom bond types, for ...
2
votes
1answer
301 views

tikz: setting up a spring

I am trying to set up a spring command but keep receiving the message: ! Package pgfkeys Error: I do not know the key '/pgf/decoration/\pgfkeyscurrentname ' and I am going to ignore it. Perhaps ...
6
votes
1answer
287 views

Text decoration below path

This should be very a very simple question. \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} ...
2
votes
0answers
33 views

Curly Brace tikZ [duplicate]

Im trying to force Latex to do a \newline on the text of my curly brace, or it doesn't allow me and the result is the following: As you see, there are some curly braces very close, so the texts ...
7
votes
3answers
227 views

Decorate with text along the perimeter of a circle using TikZ

Using the following code I am trying to visualize nested circles: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,fpu} \usetikzlibrary{decorations.text} \begin{document} ...
3
votes
2answers
205 views

TikZ decorated paths and fixedpointarithmetic library

Background: I am trying to apply multiple decorations to a path in a TikZ picture. In this particular case, my attempts fail as the maximum dimension PGF can calculate with is exceeded. This is not ...
15
votes
3answers
535 views

tikz, drawing a rectangle with spikes on borders

I would like to draw a scrabble board. On my long journey to do that, I would like to set nodes which I could use around the board. The grid, that I can do. Now I'am looking at coding for "triple word ...
20
votes
2answers
370 views

How to decorate a \pic path?

Consider the following example using the angles library and a pic path to mark an angle: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{angles,decorations.markings} \begin{document} ...
7
votes
1answer
188 views

How to fix this problem with tikz knots and decorations?

Using the knots package, which is part of Andrew Stacey's spath3, one can draw beautiful paths that cross each other. However, there are problems when combining it with decorations: ...
3
votes
0answers
131 views

Node at tip/pinch of brace in Tikz

I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. [Edit]: After being made aware that the main thrust of the question ...
9
votes
2answers
560 views

Tikz, decorations

I use tikz as a general purpose drawing package because of its flexibility etc... I need to draw some Feynman diagrams like these: I tried to draw arc like \begin{tikzpicture} \draw [decorate, ...
12
votes
3answers
321 views

How to improve on this “twolines” decoration?

I'm typesetting an article on graphical calculus in tensor categories in TikZ and I wanted to define a decoration that draws two parallel lines at the same time. Here is my first try: ...
8
votes
2answers
443 views

Drawing circular paths in random locations (TikZ)

How can I draw circular paths as shown below in random locations (randomly spaced in the x and y directions)? MWE: \documentclass[border = 0.12cm,tikz]{standalone} ...
10
votes
2answers
365 views

Decorating a path's edge with a hatch pattern in TikZ

Problem I would like to indicate an infeasible region in one of my pgfplots by manually drawing a path in the canvas. This should be a hatched pattern that is decorated on the path, something like ...
10
votes
1answer
229 views

how to decorate a parametric function drawn with \datavisualization?

I have to plot a few parametric curves like the one on the left below, and I would like to add small arrows to represent the direction of the plot as parameter t increases from 0 to π. I know how to ...
2
votes
0answers
230 views

Controlling the orientation of a Tikz decoration markings arrow?

I thought that my woes in Decoration marking arrow style ignored in custom node shape? were temporarily solved, but alas: if I do a dimension line (A) -- (B), then all is fine; but if I do (B) -- (A), ...
2
votes
1answer
179 views

Decoration marking arrow style ignored in custom node shape?

I have this dimension line macro which I've put together from examples here; and as it should be visible from the MWE (below) output: ... it works just dandy fine when called from "regular" \draw ...
3
votes
1answer
214 views

Workaround for “dimension too large” for short, custom decorated, arcs?

I have already seen Avoiding `Dimension too large' and `ill-formatted floating point' errors in tikz, and probably there is no answer, but let's see... I have this MWE, with a custom ...
8
votes
1answer
189 views

Dashed loop in TikZ

How can I draw a dashed loop in TikZ? I tried \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (X) [circle, draw] {X}; \draw (X) to [in=60, out=120, dashed, ...
2
votes
0answers
380 views

Special decoration for TikZ pin feature

I try to achieve the curvy pin style I sketched below. It would help to distinguish pin lines from grid and other lines in the diagram. How can I realize a decoration that automatically draws such ...
7
votes
1answer
188 views

“Torn page” decoration for Beamer

I am Basilio, I've been using stackexchange for a while and it's of course really useful. Here's my first question: in the thread Alternatives to the horizontal line in fancyhdr the user Gonzalo ...
2
votes
1answer
223 views

Piecewise styling and decoration of a tikz path?

I have this path, which I would like to style "piecewise" from a single specification, shown on the image below: As the image says, I'd like to decorate segments 2-3 and 5-6, and colorize only 3-4. ...
6
votes
1answer
186 views

One style for one chapter at a time

I saw some of the questions that may not answer my question, this question is more on decoration-like aspect. When reading some (coloured illustrated) textbooks, one may find that the chapters have ...
2
votes
0answers
769 views

Installing pfgornament? [closed]

Note: I have already searched through this site on how to do this but a lot of the things explained make little to no sense to me, I am a novice at this stuff so I was wondering if could get a little ...
9
votes
1answer
294 views

How to get a tangent coordinate system for the decoration of a path?

I want to draw some lines in a tangent coordinate system of the decoration of a path. Especially I want to draw a tangent segment at the end of the decoration with full controll, i.e. with having the ...