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

3
votes
2answers
37 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 ...
4
votes
1answer
46 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} ...
3
votes
0answers
161 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 ...
9
votes
2answers
502 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 ...
6
votes
1answer
153 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 ...
6
votes
1answer
105 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 ...
4
votes
1answer
151 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} ...
4
votes
1answer
88 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 ...
5
votes
1answer
87 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 ...
2
votes
0answers
32 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 ...
8
votes
1answer
116 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. ...
3
votes
1answer
184 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 ...
2
votes
1answer
68 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} ...
4
votes
0answers
290 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 ...
7
votes
3answers
570 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 ...
5
votes
1answer
180 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} ...
2
votes
1answer
149 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} ...
5
votes
0answers
111 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} ...
5
votes
1answer
79 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} ...
6
votes
1answer
242 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 ...
1
vote
1answer
541 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, ...
105
votes
12answers
11k 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 – ...
6
votes
2answers
660 views

Coil path decoration without straight segment

When a path is decorated in TikZ, a straight line segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a very nice versatile resolution for ...
6
votes
1answer
362 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 ...
4
votes
1answer
240 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 ...
7
votes
1answer
278 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? ...
3
votes
1answer
186 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} ...
2
votes
1answer
182 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} ...
16
votes
1answer
398 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} ...
7
votes
1answer
315 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 ...
6
votes
2answers
302 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} ...
6
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 ...
8
votes
1answer
246 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} ...
6
votes
1answer
153 views

circle node on an ellipse

I want to put this node on an ellipse at about the 35% mark \node[draw, circle, inner sep = .08cm, scale = .75] (location) {2}; \documentclass{article} \begin{document} \usepackage{tikz} ...
13
votes
2answers
416 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} ...
2
votes
0answers
89 views

How to draw a smooth random blob with TikZ? [duplicate]

How can I draw a smooth, "natural" looking blob with TikZ? My approach \begin{tikzpicture} \draw [] (0,0)node[circle,draw,decorate,decoration={random steps,segment length=.3cm,amplitude=1cm},rounded ...
6
votes
1answer
450 views

TikZ: Add decoration on a smooth coordinates plot

I would like to draw a smooth curve that I get from a coordinate plot after adding some additional decorations. So far I have. \begin{tikzpicture} \path [blue] plot [smooth] coordinates { (0.2,0.2) ...
8
votes
3answers
244 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 ...
13
votes
1answer
638 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 ...
24
votes
1answer
2k views

Trying to do graphical decorations in “ClassicThesis style”

Is there a way to obtain an effect like the page below? I have taken that idea from this .pdf file. The gray tones of the effect in the page below are uniforms but I would to conserve the original ...
1
vote
1answer
466 views

Two markings at one line with decorations in tikz

I would like to draw a path with an arrowtip at the beginning and the end. If there is only one arrowtip everything is perfect. But with a second mark only the first one is visible. Has anybody an ...
4
votes
2answers
170 views

Aligning \overline to “italics” font

In math mode, the slanted characters look somewhat disconnected from an \overline: $\overline{P}$ looks odd; of course I would like the bar to be aligned more on the right, at least as much slanted as ...
6
votes
1answer
183 views

Labeling precisely-positioned “tree” nodes

I'm working with TikZ and am basically drawing a tree, but my needs require that the nodes be precisely positioned on the coordinate space and precisely sized. For this purpose, I've found that using ...
5
votes
1answer
472 views

Arrow heads as plot marks

I would like to draw a plot and put arrow heads pointing in the direction of the plot instead of marks. My first idea was to use the quiver option from pgfplots by duplicating and stagering the ...
6
votes
2answers
276 views

Why can't I apply this decoration to a curve produced using the “to” path operation?

I have found that I cannot make decorations apply to (most) curves drawn using the "to" path operation. Here is a working example: \documentclass[a4paper, reqno]{amsart} \usepackage{tikz} ...
38
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 ...
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 ...
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 ...
4
votes
1answer
1k views

Frame for pieces of algorithms

I would like to put frames around pieces of algorithms like in the following picture. If the background of the rectangle can be changed, it would be nice. Here is the LaTeX code used for the ...
5
votes
1answer
320 views

Connecting normal lines with decorated ones

I've got a problem, I've tried it a lot and I've investigated about it but I haven't found the answer. I've got a code like this.... \documentclass{article} \usepackage{tikz} ...