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
702 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, ...
6
votes
1answer
438 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
306 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 ...
3
votes
1answer
244 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} ...
7
votes
1answer
336 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? ...
4
votes
1answer
255 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} ...
7
votes
1answer
384 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 ...
18
votes
1answer
521 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
2answers
429 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
3k 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
320 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
166 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} ...
14
votes
2answers
512 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
94 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
575 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) ...
9
votes
3answers
314 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 ...
14
votes
1answer
946 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 ...
1
vote
1answer
694 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 ...
6
votes
2answers
272 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
204 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 ...
6
votes
2answers
316 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} ...
26
votes
1answer
3k 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 ...
13
votes
2answers
747 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 ...
4
votes
1answer
2k 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
340 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} ...
5
votes
1answer
776 views

How to insert math with curly brackets into tikz decoration text along path?

I was going to write along an arc some math expression with curly brackets. Somehow the following snippet causes pdflatex to freeze. \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
565 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 ...
12
votes
1answer
475 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
3answers
802 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) ...
5
votes
1answer
2k views

Snake decoration does not work with decorations.pathmorphing in tikz

I have simple example that works fine \documentclass[a4paper,12pt,oneside,titlepage]{report} \usepackage{tikz} \usetikzlibrary{snakes} \begin{document} \begin{figure}[H] ...
2
votes
1answer
901 views

Arrow decoration in TIKZ [duplicate]

Possible Duplicate: TikZ: How to draw an arrow in the middle of the line? I'd like to use Tikz for drawing Feynman diagrams. I found an example in TeXample, but it looks inefficient. One ...
6
votes
1answer
175 views

Constraint for a decoration: only if edge is long enough

Title+Picture might make you guess my question: My goal is to modify the tikz-style companion such that in this example the text along path-decoration will only be shown if it fits, i.e. between ...
1
vote
0answers
659 views

Illuminated manuscripts & LaTeX [closed]

How can I produce Illuminated manuscripts (something like this)? Are there existing examples of illuminated manuscripts made with latex, or websites that provide initials or decorations with this ...
6
votes
2answers
841 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 ...
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} ...
11
votes
1answer
524 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 ...
13
votes
1answer
341 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 ...
4
votes
0answers
449 views

Decorate pgfplots mesh

In my quest to solve this question I'm trying to see if I can decorate a mesh-plot by drawing many circles or maybe rectangles with a radius determined by \pgfplotspointmetatransformed. But I can't ...
8
votes
1answer
1k 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 ...
4
votes
2answers
244 views

Placing long table inside \shadowbox

I have a multi-page table produced by long table package and I want to put each page of the longtable inside \shadowbox. Here is what I have tried: \documentclass{article} \usepackage{fancybox} ...
5
votes
1answer
1k views

multi-line text for brace decoration in tikz

I'm trying to make a time-line with events by means of tikZ. Everything is going fine, I found (here) some nice examples and explanations but... I do a brace decoration for my time-line which has long ...
7
votes
2answers
564 views

TikZ: Bug with multiple decorations “at position 1”?

If I try to put two decorations on the same path, both at position 1, only the first shows up: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} \begin{document} ...
9
votes
2answers
805 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} ...
5
votes
2answers
477 views

I want a “Go on to next page” arrow where text is inscribed in arrow

I was wondering how i can create an arrow that says embedded "Go on to next page" the arrow should be something like the implies arrow or the rightarrow.
11
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. ...
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
4answers
5k 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 ...
8
votes
1answer
826 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. ...
115
votes
12answers
14k 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 – ...
7
votes
2answers
2k views

TIKZ : How to decorate a \path?

My question is about drawing a "commutative-type diagram" in mathematics. I would like to integrate an arrow of the type \rightsquigarrow, which is described how to be obtained here : Squiggly arrows ...