TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to decorate a snake path, but I don't get any output using a postaction. Here's the example code.

  \draw [snake=expanding waves, segment amplitude = 1.5cm, segment length = 0.3 cm, postaction={decorate, decoration={random steps,segment length=3pt,amplitude=5pt}}] (0,0) -- (-2,0);

Any help would be greatly appreciated.

share|improve this question
up vote 5 down vote accepted

The postaction is newer drawn. You need to add a draw option to it. On the other hand, I guess that you don't want to draw the main path. In that case, you should change \draw to \path.

    \path [
           snake=expanding waves, segment amplitude = 1.5cm, segment length = 0.3 cm, 
           postaction={draw,decorate, decoration={random steps,segment length=3pt,amplitude=5pt}}
          (0,0) -- (-2,0);



share|improve this answer
Thanks, that worked. As a note, I had to change the \draw to a \path in order to achieve the effect I wanted (only the randomized postaction path). – Derek Mar 15 '11 at 23:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.