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

114
votes
12answers
13k views

Contest: Show Off Your Skillz in TeX & Friends [TeX.sx birthday]

Submission Deadline and Voting are over, thank you for participating! Results Academic Gonzalo Medina – 31 Andy – 19 cmhughes – 11 mbork – 6 Other Yiannis Lazarides – 38 szantaii – 20 Ant – ...
98
votes
14answers
32k views

Totally sweet horizontal rules in LaTeX

I have been trying to find a way to easily drop a nice horizontal rule into a LaTeX document. \hline just makes a line across the page. It would seem that some package must provide something that is ...
55
votes
6answers
16k views

Package for certificates

Since LaTex can produce outstanding typesetting results and excellent graphics design, I began to wonder if it can recreate certificates. With so many packages and styles out there does anyone know if ...
40
votes
6answers
14k views

TikZ: How to draw an arrow in the middle of the line?

Like this: .------<------. | | v ^ | | '------>------' I am currently using \begin{scope}[very thick,->] \draw (-4,1)--(-4,0)--(0.1,0); \draw ...
40
votes
4answers
4k views

Does anybody know a good source of (free) ornaments, decorations, frames, backgrounds etc.?

I'd like to prepare a "fancy" typographical project, more interesting visually than a "boring" black-on-white text. I'm not very talented at drawing, though, so I'd like to ask about a place to find ...
26
votes
1answer
2k views

Trying to do graphical decorations in “ClassicThesis style”

Is there a way to obtain an effect like the page below? The gray tones of the effect in the page below are uniforms but I would have different tones among the various shapes. The main gray tone should ...
22
votes
3answers
2k views

Modify TikZ coil decoration

Can I modify the existing tikz coil decoration, so that the downstrokes are not drawn in a certain interval, to produce a picture like this? Edit: Previous attempts, code and MWE has been moved to ...
21
votes
2answers
2k views

TikZ: multiple decorations on a path.

I would like to draw a squiggly line with an arrow somewhere in the middle of it. TikZ has a pathmorphing decoration that draws a squiggly line and a markings decoration to place an arrow tip. So a ...
20
votes
2answers
962 views

How can I put a coloured outline around fraction lines?

I use the contour package to put thick white outlines around labels in graphs, so they remain readable above the grid lines without taking up too much space. Unfortunately, the package is not able to ...
20
votes
2answers
245 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} ...
19
votes
2answers
2k views

Looking for TikZ flourishes and vignettes

I'm a sucker for the fancy section markers (commonly called vignettes or ornaments). For an example, look at the beautiful symbol beneath the {TeX} logo on this site, or this flourish below ...
18
votes
1answer
484 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} ...
17
votes
4answers
5k views

End of paragraph with ornament

How to make a line with ornament like one below {TEX} logo on this site? What is specific term for it?
15
votes
5answers
791 views

How to put a star (or other symbol) in sections that are “special” (difficult, optional, etc)?

I'm currently writing a book, and I'd like some of the sections to be clearly marked as "difficult" or "optional". Not only sections, but also exercises (I'm using the exercise package) and theorems ...
15
votes
2answers
2k views

Placement of arrowtips with TikZ’s markings

With the decoration library it is possible to place arrow tips at arbitrary positions along a path. TikZ places the front end of the arrow at the specified position, which is often exactly what one ...
14
votes
3answers
370 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 ...
14
votes
2answers
477 views

Complicated tikzpicture for theorem of multivariabe continuous functions

I'm attempting to construct a tikzpicture that looks like this: Here's what I have: \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage[english]{babel} ...
14
votes
1answer
819 views

How to draw a simple but beautiful decorative head-rule?

The picture shown below is the desired simple head-rule, but the rule width should be much thinner like 1pt. Real one: So how to use Tikz or other packages to draw this kind of line as a ...
13
votes
3answers
1k views

Draw the discontinuity symbol with tikz

Is there an easy way to draw the discontinuity symbol with tikz? It is the symbol shown at the y axis in the following picture (taken from the pgfplots documentation. I can always draw it manually ...
13
votes
3answers
1k views

Help on decorations: how to draw a spiral coiled tube in TikZ

Hi everybody I was trying to draw a spiral coiled tube with TikZ decoration library. This is what i got so far: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations} ...
13
votes
2answers
665 views

Faded or blurred lines

My question was inspired by Rotate fading in tikz where the inquiror is drawing laser beams that shall look somewhat blurred not as lines but as boxes with a fading. The problem with this approach is ...
13
votes
1answer
324 views

Decorate a path with little arrows parallel to it

I want to decorate a path with little arrows (with definable length) parallel to it. I tried to modify an example from the manual, but I was only able to get arrowtips and not complete arrows where I ...
12
votes
4answers
6k views

Is there a TikZ dashed line decorator or some other way to make part of a path dashed?

The problem I would like to draw a parabolic path in TikZ that changes (abruptly) from a continuous line to a dashed line. The obvious way to change the appearance of a path over the course of its ...
12
votes
3answers
270 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: ...
11
votes
1answer
482 views

TikZ: Decorated paths without straight segment

When a path is decorated in TikZ a straight segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a resolution for the snake decoration has ...
11
votes
1answer
3k views

TiKZ decoration doesn't work

I am trying to get TikZ decorations to work, but so far without success. In this minimal example, I am trying to compile an example found in pgfmanual.pdf in section 20.2: \documentclass{article} ...
11
votes
1answer
774 views

TikZ finishes a morphed path with a straight segment

When, in TikZ, I apply a path morphing decoration (say, "snake") and specify the segment length option, I often finish up with a straight segment at the end of the path, such as which often is not ...
11
votes
1answer
427 views

How to decorate a path with arrows at certain coordinates?

Next example (taken from TiKZ manual) shows how to find intersection points between two paths. Once you know intersection points it's easy to decorate them with any marking. But if I want to use an ...
10
votes
2answers
228 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
2k views

Calligraphic logo in tikz

Yep, it's that time again. I want to design a calligraphic logo and my obvious choice as LaTeX enthousiast is TikZ as implementation. Only, I lack the proper skills to do so and need some inspiration. ...
10
votes
3answers
754 views

Decorate path with arrows at nodes

Standalone example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \draw[black, very thick] plot[smooth] coordinates {(4,1) (2,2) (1,3) ...
10
votes
1answer
3k views

Controlling the amplitude of the snake function in TikZ

I have been using TikZ with some success, but I can't figure out why the following code doesn't produce anything: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} ...
9
votes
3answers
294 views

path with both mark connection node and arrow tip

I would like to use a mark connection node decoration on a line that also has an arrow tip. Unfortunately, using the decoration causes the arrow tip to point in the wrong direction (always straight ...
9
votes
1answer
936 views

Persistent random steps decorations during beamer \uncover

I'm using a random steps decoration with a path that appears through several uncover transitions. Currently the decoration is redrawn in each instance of the slide. How can I change this behavior. ...
9
votes
2answers
775 views

TikZ: How to decorate a path with the open diamond arrow tip that “bends” with the path?

I have a curved path that I want to put an open diamond arrow tip on. Here is a MWE with my best attempt: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} ...
9
votes
1answer
113 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 ...
8
votes
1answer
973 views

Appending a line (of fixed length) to a spring drawn with tikz coil

Looking at the nice answer here: Draw mechanical springs in TikZ, I would like to attach a line of fixed length (say 5mm) to the top of the spring (to the platform) and bottom of the spring (to the ...
8
votes
1answer
148 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, ...
8
votes
1answer
179 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 ...
8
votes
1answer
161 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. ...
8
votes
1answer
154 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 ...
8
votes
1answer
299 views

decoration nodes not being placed on the circle they are intended to be on

I "placed" some nodes on a circular path but they aren't showing up in the correct place and they aren't even on the circle. What is going wrong? \begin{document} \usepackage{tikz, pgfplots} ...
8
votes
1answer
781 views

Multiple marks on a path

I want to add a multitude of marks to a single path. However, sometimes these marks are heavily misplaced. For example, the blue arrows should be a little bit ahead of the red ones. ...
8
votes
2answers
205 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, ...
7
votes
3answers
721 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 ...
7
votes
2answers
349 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} ...
7
votes
2answers
373 views

How to position multiple decorations on a path while keeping their separation constant?

The at position=<value> syntax for decorations obviously makes the positioning of the decorations dependent on the path length: \documentclass{article} \usepackage{tikz} ...
7
votes
1answer
367 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 ...
7
votes
3answers
105 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} ...
7
votes
1answer
2k views

Tikz: Text along top and bottom of arrow path

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 ...