# Tagged Questions

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

286 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 ...
667 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 ...
504 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} ...
256 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: ...
181 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. : After being made aware that the main thrust of the question ...
956 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, ...
362 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: ...
518 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} ...
487 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 ...
378 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 ...
312 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), ...
236 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 ...
332 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 ...
214 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, ...
545 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 ...
233 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 ...
425 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. ...
209 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 ...
2k 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 ...
375 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 ...
167 views

### Tikz wave not covering multiple tabular columns

This is a follow-up to my earlier questions here and here. In short, what I want to achieve is an arc over multiple columns, which I am achieving using Tikz. Code is shown below. ...
340 views

### shortening of braces (or padding tikz brace decorations)

Feels a bit weird doing this, but I found this unanswered question: PGF and TikZ (mailing list) - shortening of braces, and as I'm interested in the answer, I'll repost: many times i need to give ...
859 views

### Problem with pgfornament and vectorian package

When I compile the file \documentclass[12pt,francais]{article} \PassOptionsToPackage{dvipsnames,svgnames}{xcolor} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[francais]{babel} ...
586 views

### Decorating a PGFPlots bar graph with Tikz decorations

Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line ...
689 views

### Drawing a bent path as a loop in tikz

I am drawing an optical experiment that involves making a path take a detour. This is possible with PSTricks, but I haven't found a way to achieve this with TikZ. What I currently have: The ...
426 views

### fancyhdr page decorations and page numbering

Hello there are several examples of decorative pages. Most examples work with a single page,when numbering is not necessary. When i try to make for every page. It does not work, or i have problems ...
387 views

### Completly draw line with Fast Triangles (TikZ)

Can I use the arrow tip Fast Triangle (page 212 in 3.0.0 manual) for the complete path? (or make it look like this) What I got so far (needs TikZ 3.0.0) \documentclass[margin=5]{standalone} ...
199 views

### Unfitting brace decoration in TikZ

I've just created a TikZ image and somehow the delimiter in the right bottom corner is a little bit too wide. The delimiter should be 3 cm wide. Placing its middle at x=6.5 it should end at x=5 and ...
466 views

### Avoiding Dimension too large' and ill-formatted floating point' errors in tikz

I am attempting to draw some pictures using tikz, with the decorations library, and am encountering a `Dimension too large' error. I have read the 20+ other questions/answers about this error, and ...
67 views

### How does \pgfdecoratedpathlength work?

I am trying to understand how it works the decoration pgf module, in order to solve the unanswered question Fiber-Optic-Style decoration. I am having an hard time with some macros, for example ...
376 views

### How to correctly decorate an ellipse with random steps

To create something that looks like the shape of a lake, the following code transforms the border of a blue ellipse with smooth random steps. The idea is taken from another answer. ...
584 views

### Fiber-Optic-Style decoration

It would be nice to have a decoration style that reproduces the sign of an optic fiber. In this way, when drawing optic schemes it would be really easy to indicate that a fiber (drawn as a line with ...
192 views

### Disable decoration for pgfplot nested in tikzpicture

I have the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations,decorations.pathmorphing} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} ...
884 views

### TikZ path decorated with coil or snake

A recurrent question on the forum is... How to draw a decorated path without a straight segment at the end? Usually the path described are straight lines (See post1, post2 or post3), but there are ...
2k views

### How to draw an arrow with two colors?

I want to draw arrow with two colors, the resulted arrow should be filled by one color at the top and by other color at the bottom, like the following code do to a rectangle: \draw[top ...
548 views

### How can I move a “text along path” vertically?

How can I move a "text along path" vertically? Currently, I'm using a path with modified endpoints to place the text, and then draw the actual line. \documentclass{article} \usepackage{tikz} ...
284 views

### TikZ: Why would a decoration cause a dimension too big?

\documentclass[tikz]{standalone} \usepackage{tikz-3dplot} \usetikzlibrary{decorations.markings} \usetikzlibrary{intersections} \begin{document} \tdplotsetmaincoords{60}{130} ...
218 views

### TikZ: compilation time performance of decorations

I want to produce a picture that contains lots of two-part cylinder-kind shapes (maybe about 200) along certain paths. Here is an example of such a shape: \documentclass{standalone} ...
137 views

### TikZ: Can a \foreach command run inside decoration = {markings,?

Can I use \foreach inside of decoration = {markings, ...? \documentclass[convert = false, tikz]{standalone} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} \begin{document} ...
1k views

### How to decorate a line with arrows and circles

I would like to draw an arrow (ray of light) overlayed with perpendicular double headed arrows and circles (to show both s & p polarisation), but I am struggling with decoration commands. I have ...
992 views

### TikZ: using the -latex arrow head in decorations.markings

Is there a way to get -latex arrow heads to work when using decorations.markings? \documentclass[convert = false, border = 1cm]{standalone} \usepackage{tikz} \usetikzlibrary{calc, arrows, ...
587 views

### Small text near arrow tips

How can I add some tiny text near arrow tips? Details I have an automaton like Now I want each edge to have the usual arrow tip, and close to the tip additionally a tiny text $\tau$. How can I ...
471 views

### tikz extending spring with constant number of segments

Is there as simple way to create a pdf animation with tikz of an oscillating mass attached to a spring which extends and compresses as the mass oscillates. The number of "spring elements" should be ...
325 views

### How to improve the decoration ends with tikz decorate

you will see two problems on the example below 1) how to make the plot line is not under the terminal markings 2) Why is it the text in bold \documentclass{article} \usepackage[latin1]{inputenc} ...
502 views

### Draw snake around the rectangular node

I want to draw the "coiled snake " around the rectangle named "Obstacle". The rectangle consist of node "O". I could not figure it out as I am new to tikz. can anyone give me good suggestion in this? ...
388 views

### Text decoration is trimmed off with standalone package

I am decorating an arc with text as shown in this MWE using the standalone class: \documentclass[10pt,class=article]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.text} ...
534 views

### Problems with filling a path that includes decorations in TikZ

I want to construct a rectangle with two sides having a slight curvature and the other two sides being zigzag lines. In the end, I want to fill it. While the construction of the path worked the way I ...
756 views

### Can I define a new shape with predefined filling and shading to be used in decoration?

I defined a new shape that draws a flower with predefined filling and coloring: \makeatletter \pgfdeclareshape{flower}{ \savedanchor{\center}{% \pgfpointorigin} \anchor{center}{\center} ...
How can I add text to both the top and bottom of a path? My commutative diagram below is 90% complete. I would, however, like text={${gKer({\varphi}){\mapsto}{\varphi(G)}}$} following the path below ...