summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex24
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex
index b24a38860a0..7755003fbe3 100644
--- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex
+++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-backgrounds.tex
@@ -30,7 +30,7 @@ The first use of this library is to make the following key available:
be executed \emph{before} the actual background material starts and, thus,
will have no effect on it.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}
% On main layer:
\fill[blue] (0,0) circle (1cm);
@@ -62,7 +62,7 @@ The first use of this library is to make the following key available:
you have a global setup in |every picture|, you should consider putting
that part of it that concerns the graphics state into this style.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\tikzset{
every picture/.style={line width=1ex},
every on background layer/.style={every picture}
@@ -84,7 +84,7 @@ When this package is loaded, the following styles become available:
option must be given to the |{tikzpicture}| environment or to the |\tikz|
command.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}[show background rectangle]
\draw (0,0) ellipse (10mm and 5mm);
\end{tikzpicture}
@@ -130,7 +130,7 @@ When this package is loaded, the following styles become available:
causes a light blue background to be added to the picture. You can also
use more fancy settings as shown in the following example:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}
[background rectangle/.style=
{double,ultra thick,draw=red,top color=blue,rounded corners},
@@ -142,7 +142,7 @@ When this package is loaded, the following styles become available:
Naturally, no one in their right mind would use the above, but here is
a nice background:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}
[background rectangle/.style=
{draw=blue!50,fill=blue!20,rounded corners=1ex},
@@ -163,7 +163,7 @@ When this package is loaded, the following styles become available:
right corner of the grid is computed in the same way as for the background
rectangle:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}[show background grid]
\draw (0,0) ellipse (10mm and 5mm);
\end{tikzpicture}
@@ -174,7 +174,7 @@ When this package is loaded, the following styles become available:
\begin{stylekey}{/tikz/background grid (initially draw,help lines)}
This style dictates how the background grid path is drawn.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}
[background grid/.style={thick,draw=red,step=.5cm},
show background grid]
@@ -186,7 +186,7 @@ When this package is loaded, the following styles become available:
This option can be combined with the |framed| option (use the |framed|
option first):
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\tikzset{background grid/.style={thick,draw=red,step=.5cm},
background rectangle/.style={rounded corners,fill=yellow}}
\begin{tikzpicture}[framed,gridded]
@@ -205,7 +205,7 @@ When this package is loaded, the following styles become available:
rectangle. Normally, the line coincides exactly with the top line of the
background rectangle:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}[
background rectangle/.style={fill=yellow},
framed,show background top]
@@ -218,7 +218,7 @@ When this package is loaded, the following styles become available:
\begin{key}{/tikz/outer frame xsep=\meta{dimension} (initially 0pt)}
The \meta{dimension} is added at the left and right side of the line.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}
[background rectangle/.style={fill=yellow},
framed,
@@ -238,7 +238,7 @@ When this package is loaded, the following styles become available:
Sets both the $x$- and $y$-separation.
\end{key}
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\begin{tikzpicture}
[background rectangle={fill=blue!20},
outer frame sep=1ex,%
@@ -254,7 +254,7 @@ When this package is loaded, the following styles become available:
style:
%
\begin{stylekey}{/tikz/background top (initially draw)}
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{backgrounds}}]
\tikzset{background rectangle/.style={fill=blue!20},
background top/.style={draw=blue!50,line width=1ex}}
\begin{tikzpicture}[framed,show background top]