Browse Source

Mention intersections library in TikZ Tutorial

Signed-off-by: Daniel Borchmann <daniel@algebra20.de>
master
Daniel 3 years ago
parent
commit
0cd750b32d
Signed by: Daniel Borchmann <daniel@algebra20.de> GPG Key ID: 455E361001FF778F
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      lectures/lecture-06-TiKZ.tex

+ 3
- 2
lectures/lecture-06-TiKZ.tex View File

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

Loading…
Cancel
Save