summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex')
-rw-r--r--graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex22
1 files changed, 11 insertions, 11 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex
index b20b312e0e..9bc7a69a99 100644
--- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex
+++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-spy.tex
@@ -24,7 +24,7 @@ The idea behind the |spy| library is to make is easy to create high-density
pictures in which some important parts are repeated somewhere, but magnified as
if you were looking through a spyglass:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using outlines={circle, magnification=4, size=2cm, connect spies}]
@@ -41,7 +41,7 @@ if you were looking through a spyglass:
\end{tikzpicture}
\end{codeexample}
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}[spy using overlays={size=12mm}]
\draw [decoration=Koch snowflake]
decorate { decorate{ decorate{ decorate{ (0,0) -- (2,0) }}}};
@@ -146,7 +146,7 @@ automatically.
scope, whereas |\spy| commands outside the inner |spy scope| but inside the
outer |spy scope| allow you to ``spy on the spy''.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using outlines={rectangle, red, magnification=5,
size=1.5cm, connect spies}]
@@ -240,7 +240,7 @@ automatically.
to-be-magnified area. You can change this by providing the |at|
option yourself:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using outlines={circle, magnification=3, size=1cm}]
@@ -283,7 +283,7 @@ automatically.
node is (also) always named |tikzspyinnode|. Following the spy
scope, you can use this node like any other node:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
\begin{scope}
[spy using outlines={circle, magnification=3, size=2cm, connect spies}]
@@ -324,7 +324,7 @@ automatically.
resulting in a node whose size and shape exactly corresponds to the area in
the picture that is shown in the spy-on node.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using outlines={lens={scale=3,rotate=20}, size=2cm, connect spies}]
@@ -364,7 +364,7 @@ way.
filled, using a thick line; and the spy-on node is drawn, but not filled,
using a very thin line.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using outlines={circle, magnification=3, size=1cm, connect spies}]
@@ -381,7 +381,7 @@ way.
This key creates a |spy scope| in which both the spy-in and spy-on nodes
are filled, but with the fill opacity set to 20\%.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using overlays={circle, magnification=3, size=1cm, connect spies}]
@@ -399,7 +399,7 @@ The following style is useful for connecting the spy-in and the spy-on nodes:
\begin{key}{/tikz/connect spies}
Causes the spy-in and the spy-on nodes to be connected by a thin line.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,spy}}]
\begin{tikzpicture}
[spy using overlays={circle, magnification=3, size=1cm}]
@@ -420,7 +420,7 @@ Usually, the spy-in node and the spy-on node should have the same shape.
However, you might also wish to use the |circle| shape for the spy-on node and
the |magnifying glass| shape for the spy-in node:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,shadows,shapes.symbols,spy}}]
\tikzset{spy using mag glass/.style={
spy scope={
every spy on node/.style={
@@ -442,7 +442,7 @@ the |magnifying glass| shape for the spy-in node:
With the magnifying glass, you can also put it ``on top'' of the picture
itself:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.fractals,shadows,shapes.symbols,spy}}]
\begin{tikzpicture}
[spy scope={magnification=4, size=1cm},
every spy in node/.style={