diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex index 3fa9d3f8f46..64d6fc44f88 100644 --- a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex +++ b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex @@ -7,13 +7,13 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -\ProvidesFileRCS[v\pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarysnakes.code.tex,v 1.7 2013/07/15 12:05:31 tantau Exp $ +\ProvidesFileRCS{tikzlibrarysnakes.code.tex} \pgfwarning{Snakes have been superseded by decorations. Please use the decoration libraries instead of the snakes -library} +library}% -\usetikzlibrary{decorations.pathmorphing,decorations.pathreplacing,decorations.shapes} +\usetikzlibrary{decorations.pathmorphing,decorations.pathreplacing,decorations.shapes}% % Old snakes stuff: @@ -29,48 +29,48 @@ library} \tikz@snakedtrue% \let\tikz@snake=\tikz@@snake% \fi% - \fi} + \fi}% -\tikzoption{raise snake}{\def\pgf@snake@raise{\pgftransformyshift{#1}}} +\tikzoption{raise snake}{\def\pgf@snake@raise{\pgftransformyshift{#1}}}% \tikzoption{mirror snake}[true]{% \csname if#1\endcsname \def\pgf@snake@mirror{\pgftransformyscale{-1}}% \else% \let\pgf@snake@mirror=\pgfutil@empty% \fi -} +}% -\tikzoption{gap before snake}{\def\tikz@presnake{{moveto}{#1}{\noexpand\tikz@snake@install@trans}{}}} -\tikzoption{line before snake}{\def\tikz@presnake{{lineto}{#1}{\noexpand\tikz@snake@install@trans}{}}} +\tikzoption{gap before snake}{\def\tikz@presnake{{moveto}{#1}{\noexpand\tikz@snake@install@trans}{}}}% +\tikzoption{line before snake}{\def\tikz@presnake{{lineto}{#1}{\noexpand\tikz@snake@install@trans}{}}}% -\tikzoption{gap after snake}{\def\tikz@postsnake{{moveto}{#1}{\noexpand\tikz@snake@install@trans}{}}\def\tikz@mainsnakelength{\pgfsnakeremainingdistance-#1}} -\tikzoption{line after snake}{\def\tikz@postsnake{{lineto}{#1}{\noexpand\tikz@snake@install@trans}{}}\def\tikz@mainsnakelength{\pgfsnakeremainingdistance-#1}} +\tikzoption{gap after snake}{\def\tikz@postsnake{{moveto}{#1}{\noexpand\tikz@snake@install@trans}{}}\def\tikz@mainsnakelength{\pgfsnakeremainingdistance-#1}}% +\tikzoption{line after snake}{\def\tikz@postsnake{{lineto}{#1}{\noexpand\tikz@snake@install@trans}{}}\def\tikz@mainsnakelength{\pgfsnakeremainingdistance-#1}}% \tikzoption{gap around snake}{% \def\tikz@presnake{{moveto}{#1}{\noexpand\tikz@snake@install@trans}{}}% \def\tikz@postsnake{{moveto}{#1}{\noexpand\tikz@snake@install@trans}{}}% \def\tikz@mainsnakelength{\pgfsnakeremainingdistance-#1}% -} +}% \tikzoption{line around snake}{% \def\tikz@presnake{{lineto}{#1}{\noexpand\tikz@snake@install@trans}{}}% \def\tikz@postsnake{{lineto}{#1}{\noexpand\tikz@snake@install@trans}{}}% \def\tikz@mainsnakelength{\pgfsnakeremainingdistance-#1}% -} +}% \let\pgf@snake@mirror=\pgfutil@empty \let\pgf@snake@raise=\pgfutil@empty -\def\tikz@snake@install@trans{\pgfsetsnakesegmenttransformation{\pgf@snake@mirror\pgf@snake@raise}} +\def\tikz@snake@install@trans{\pgfsetsnakesegmenttransformation{\pgf@snake@mirror\pgf@snake@raise}}% -\def\tikz@snake{zigzag} +\def\tikz@snake{zigzag}% \let\tikz@presnake=\pgfutil@empty \let\tikz@postsnake=\pgfutil@empty -\def\tikz@mainsnakelength{\pgfsnakeremainingdistance} +\def\tikz@mainsnakelength{\pgfsnakeremainingdistance}% -\tikzstyle{snake triangles 45}= [snake=triangles,segment object length=2.41421356\pgfsnakesegmentamplitude] -\tikzstyle{snake triangles 60}= [snake=triangles,segment object length=1.73205081\pgfsnakesegmentamplitude] -\tikzstyle{snake triangles 90}= [snake=triangles,segment object length=\pgfsnakesegmentamplitude] +\tikzset{snake triangles 45/.style= {snake=triangles,segment object length=2.41421356\pgfsnakesegmentamplitude}}% +\tikzset{snake triangles 60/.style= {snake=triangles,segment object length=1.73205081\pgfsnakesegmentamplitude}}% +\tikzset{snake triangles 90/.style= {snake=triangles,segment object length=\pgfsnakesegmentamplitude}}% |