向您问一个关于 Latex+tikz 的问题:我似乎无法让蛇工作(科学版 Linux 6.3)。我一直在查看 tikz 手册;当然想知道如何获得这些蛇!
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations,backgrounds}
\begin{document}
% p43 : can't get snakes to work
% \usetikzlibrary{arrows,snakes,backgrounds} \draw [->,snakes=snake] (0,0) -- (2,0) : Package pgfkeys Error: I do not know the key '/tikz/snakes' and I am going to...
% \usetikzlibrary{arrows,snakes,backgrounds} \draw [->,snake=snake] (0,0) -- (2,0) : Package tikz Warning: Snakes have been superseded by decorations. Please use th...
% \usetikzlibrary{arrows,decorations,backgrounds} \draw [->,snake=snake] (0,0) -- (2,0) : I can't find file `tikzlibrarydecoration.code.tex'...
% \usetikzlibrary{arrows,decorations,backgrounds} \draw [->,decoration=snake] (0,0) -- (2,0) : Package pgfkeys Error: I do not know the key '/pgf/decoration/snake' and I am...
% \usetikzlibrary{arrows,decorations,backgrounds} \draw [->,decoration=snakes] (0,0) -- (2,0) : Package pgfkeys Error: I do not know the key '/pgf/decoration/snakes' and I a
\begin{tikzpicture}
\draw [->,decoration=snake] (0,0) -- (2,0);
\end{tikzpicture}
\end{document}