diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tutorial-nodes.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tutorial-nodes.tex | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tutorial-nodes.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tutorial-nodes.tex index 71e1486b1c9..66cacc41aff 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tutorial-nodes.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tutorial-nodes.tex @@ -1,4 +1,4 @@ -% Copyright 2006 by Till Tantau +% Copyright 2020 by Till Tantau % % This file may be distributed and/or modified % @@ -107,7 +107,7 @@ should look like this, ideally: \node (r2) [fill=black!10,rounded corners,fit=(w1')(w2')(e1')(e2')(l1')(l2')] {}; \end{scope} - \draw [shorten >=1mm,-to,thick,decorate,decoration={snake,amplitude=.4mm,segment + \draw [shorten >=1mm,->,thick,decorate,decoration={snake,amplitude=.4mm,segment length=2mm,pre=moveto,pre length=1mm,post length=2mm}] (r1) -- (r2) node [above=1mm,midway,text width=3cm,align=center] @@ -125,9 +125,9 @@ the previous tutorial. However, Hagen will also need to load some additional additional definitions like extra arrow tips that are typically not needed in a picture and that need to be loaded explicitly. -Hagen will need to load several libraries: The |arrows| library for the special -arrow tip used in the graphic, the |decorations.pathmorphing| library for the -``snaking line'' in the middle, the |backgrounds| library for the two +Hagen will need to load several libraries: The |arrows.meta| library for the +special arrow tip used in the graphic, the |decorations.pathmorphing| library +for the ``snaking line'' in the middle, the |backgrounds| library for the two rectangular areas that are behind the two main parts of the picture, the |fit| library to easily compute the sizes of these rectangles, and the |positioning| library for placing nodes relative to other nodes. @@ -141,7 +141,7 @@ When using \LaTeX\ use: \documentclass{article} % say \usepackage{tikz} -\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri} +\usetikzlibrary{arrows.meta,decorations.pathmorphing,backgrounds,positioning,fit,petri} \begin{document} \begin{tikzpicture} @@ -158,7 +158,7 @@ When using plain \TeX\ use: \begin{codeexample}[code only] %% Plain TeX file \input tikz.tex -\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri} +\usetikzlibrary{arrows.meta,decorations.pathmorphing,backgrounds,positioning,fit,petri} \baselineskip=12pt \hsize=6.3truein \vsize=8.7truein @@ -176,7 +176,7 @@ When using Con\TeX t, use: \begin{codeexample}[code only] %% ConTeXt file \usemodule[tikz] -\usetikzlibrary[arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri] +\usetikzlibrary[arrows.meta,decorations.pathmorphing,backgrounds,positioning,fit,petri] \starttext \starttikzpicture @@ -571,7 +571,7 @@ anchor's name: \node[place] (semaphore) [below=of critical] {}; \node[transition] (leave critical) [right=of critical] {}; \node[transition] (enter critical) [left=of critical] {}; - \draw [->] (critical.west) -- (enter critical.east); + \draw [->] (enter critical.east) -- (critical.west); \end{tikzpicture} \end{codeexample} @@ -997,7 +997,7 @@ The code for the background and the snake is the following: \node (r2) [fill=black!10,rounded corners,fit=(w1')(w2')(e1')(e2')(l1')(l2')] {}; \end{scope} - \draw [shorten >=1mm,-to,thick,decorate, + \draw [shorten >=1mm,->,thick,decorate, decoration={snake,amplitude=.4mm,segment length=2mm, pre=moveto,pre length=1mm,post length=2mm}] (r1) -- (r2) node [above=1mm,midway,text width=3cm,align=center] |