summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex')
-rw-r--r--graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex
index 1e0fbbd8f2..d528a2a4e8 100644
--- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex
+++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-fit.tex
@@ -38,7 +38,7 @@ When you load this library, the following options become available:
fit these points again in a circular node. Note how the circle encompasses
exactly the same bounding box.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fit}}]
\begin{tikzpicture}[inner sep=0pt,thick,
dot/.style={fill=blue,circle,minimum size=3pt}]
\draw[help lines] (0,0) grid (3,2);
@@ -92,7 +92,7 @@ When you load this library, the following options become available:
Suppose, for instance, that in the above example we want the word ``box''
to appear inside the box, but at its top. This can be achieved as follows:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fit}}]
\begin{tikzpicture}[inner sep=0pt,thick,
dot/.style={fill=blue,circle,minimum size=3pt}]
\draw[help lines] (0,0) grid (3,2);
@@ -109,7 +109,7 @@ When you load this library, the following options become available:
Here is a real-life example that uses fitting:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fit,shapes.geometric}}]
\begin{tikzpicture}
[vertex/.style={minimum size=2pt,fill,draw,circle},
open/.style={fill=none},
@@ -144,7 +144,7 @@ When you load this library, the following options become available:
This key fits \meta{coordinates or nodes} inside a node that is rotated by
\meta{angle}. As a side effect, it also sets the |/tikz/rotate| key.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fit}}]
\begin{tikzpicture}[inner sep=0pt,thick,
dot/.style={fill=blue,circle,minimum size=3pt}]
\draw[help lines] (0,0) grid (3,2);