Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to draw a Spring-Mass-Damping system by TikZ. I found the example in Drawing Mechanical Systems in LaTeX

But I have problems compiling it. If I delete the damper code \draw [dampener] (ground2.north) -- ($(M.south east)!(ground2.north)!(M.south west)$) it works well

The error message as below:

! Package pgfkeys Error: I do not know the key '/pgf/decoration/mark connection node' and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.30 \draw [dampener]
                      (ground2.north) -- ($(M.south east)!(ground2.north)!(M...

? 
[1

As I can't reply to the original question, I have to posted a new question about this issue.

share|improve this question
    
I wonder if this is a version issue. What version of pgf do you have installed? –  Joseph Wright Dec 23 '11 at 15:07
    
version information as below: (d:\CTEX\MiKTeX\tex\generic\pgf\frontendlayer\tikz\libraries\tikzlibrarytopaths .code.tex File: tikzlibrarytopaths.code.tex 2008/06/17 v2.00-cvs (rcs-revision 1.2) ))) PGFVersion=2.00-cvs ) –  laplace Dec 23 '11 at 15:19
    
There is no problem with my system with Miktex 2.9/pgf-TikZ 2.10 –  percusse Dec 23 '11 at 15:30
    
@laplace: Can you remove everything from your document except for this tikzpicture, and post the code in the question please? –  qubyte Dec 23 '11 at 15:35
1  
Can anyone else reproduce this problem? If not then perhaps we should close this question. –  qubyte Dec 23 '11 at 16:37
show 1 more comment

closed as too localized by Alan Munn, Joseph Wright Dec 23 '11 at 21:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

It works perfect for me. Did you forget to add TikZ libraries?

\usetikzlibrary{calc,patterns,decorations.markings}
share|improve this answer
    
Fernando, thanks for you answer. I have copy the whole codes, also contains \usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings} –  laplace Dec 23 '11 at 15:11
add comment

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