Mention intersections library in TikZ Tutorial

Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
This commit is contained in:
Daniel - 2016-12-27 21:37:52 +01:00
parent 183783d55d
commit 0cd750b32d
Signed by: dbo
GPG Key ID: 455E361001FF778F
1 changed files with 3 additions and 2 deletions

View File

@ -807,8 +807,9 @@ Kann zum Beispiel in \texttt{figure} Umgebung eingebettet werden.
\small
\begin{lstlisting}
\path[name (*@path@*)=x] (0.3,0.5) -- (6.7,4.7);
\path[name (*@path@*)=y] plot[smooth]
\usetikzlibrary{intersections} % in der Präambel
\path[name path=x] (0.3,0.5) -- (6.7,4.7);
\path[name path=y] plot[smooth]
coordinates {(-0.3,2) (2,1.5) (4,2.8) (6,5)};
\begin{scope}[name intersections = {of = x and y, name = i}]
\fill[gray!20] (i-1) -- (i-2 |- i-1) -- (i-2) -- cycle;