summaryrefslogtreecommitdiff
path: root/graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-20 03:00:48 +0000
committerNorbert Preining <norbert@preining.info>2019-12-20 03:00:48 +0000
commit18d9ec0eba21e6b8c55cdd50afb91c56e02ce7bf (patch)
tree56de5f55a6575a68557d5a384f57e3e8566c536d /graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex
parent3b24b0599bb35e1a3338fa33bfb24044a6125ba4 (diff)
CTAN sync 201912200300
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex')
-rw-r--r--graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex57
1 files changed, 33 insertions, 24 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex
index 03c619eb97..a889467fb5 100644
--- a/graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex
+++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-tikz-actions.tex
@@ -126,8 +126,8 @@ The most unspecific option for setting colors is the following:
hours or so). The emulation allows you to do the following:
%
\begin{itemize}
- \item Specify a new color using |\definecolor|. Only the two color
- models |gray| and |rgb| are supported\footnote{Con\TeX t users
+ \item Specify a new color using |\definecolor|. Only the color models
+ |gray|, |rgb|, and |RGB| are supported\footnote{Con\TeX t users
should be aware that \texttt{\textbackslash definecolor} has a
different meaning in Con\TeX t. There is a low-level equivalent
named \texttt{\textbackslash pgfutil@definecolor} which can be
@@ -364,12 +364,12 @@ setting the line width. You can also redefine these styles.
\begin{key}{/tikz/dash expand off}
Makes the |off| part of a dash pattern expandable such that it can stretch.
This only works when there is a single |on| and a single |off| field and
- requires the |decorations| library. Right now this option has to be
- specified on the path where it is supposed to take effect after the |dash
- pattern| option because the dash pattern has to be known at the point where
- it is applied.
+ requires the |decorations| library. Right now this option has to be
+ specified on the path where it is supposed to take effect after the
+ |dash pattern| option because the dash pattern has to be known at the point
+ where it is applied.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations}}]
\begin{tikzpicture}[|-|, dash pattern=on 4pt off 2pt]
\draw [dash expand off] (0pt,30pt) -- (26pt,30pt);
\draw [dash expand off] (0pt,20pt) -- (24pt,20pt);
@@ -582,19 +582,28 @@ transparency in more detail.
This style selects a double line distance such that it corresponds to the
distance of the two lines in an equal sign.
%
-\begin{codeexample}[]
+\begin{codeexample}[
+ preamble={\usepackage{amsmath}
+\usetikzlibrary{arrows.meta}}
+]
\Huge $=\implies$\tikz[baseline,double equal sign distance]
- \draw[double,thick,-implies](0,0.55ex) --++(3ex,0);
+ \draw[double,thick,-{Implies[]}](0,0.55ex) --++(3ex,0);
\end{codeexample}
%
-\begin{codeexample}[]
+\begin{codeexample}[
+ preamble={\usepackage{amsmath}
+\usetikzlibrary{arrows.meta}}
+]
\normalsize $=\implies$\tikz[baseline,double equal sign distance]
- \draw[double,-implies](0,0.6ex) --++(3ex,0);
+ \draw[double,-{Implies[]}](0,0.6ex) --++(3ex,0);
\end{codeexample}
%
-\begin{codeexample}[]
+\begin{codeexample}[
+ preamble={\usepackage{amsmath}
+\usetikzlibrary{arrows.meta}}
+]
\tiny $=\implies$\tikz[baseline,double equal sign distance]
- \draw[double,very thin,-implies](0,0.5ex) -- ++(3ex,0);
+ \draw[double,very thin,-{Implies[]}](0,0.5ex) -- ++(3ex,0);
\end{codeexample}
%
\end{stylekey}
@@ -623,11 +632,11 @@ the beginning and at the end of the current path. This is true even when
``only'' arrow tips get drawn for a path without drawing the path itself. Here
is an example:
%
-\begin{codeexample}[width=2cm]
+\begin{codeexample}[width=2cm,preamble={\usetikzlibrary{arrows.meta,bending}}]
\tikz \path[tips, -{Latex[open,length=10pt,bend]}] (0,0) to[bend left] (1,0);
\end{codeexample}
%
-\begin{codeexample}[width=2cm]
+\begin{codeexample}[width=2cm,preamble={\usetikzlibrary{arrows.meta,bending}}]
\tikz \draw[tips, -{Latex[open,length=10pt,bend]}] (0,0) to[bend left] (1,0);
\end{codeexample}
@@ -714,7 +723,7 @@ simulated ones.
instance the |patterns| library, see
Section~\ref{section-library-patterns}, to install predefined patterns.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{patterns}}]
\begin{tikzpicture}
\draw[pattern=dots] (0,0) circle (1cm);
\draw[pattern=fivepointed stars] (0,0) rectangle (3,1);
@@ -727,14 +736,14 @@ simulated ones.
This option is used to set the color to be used for form-only patterns.
This option has no effect on inherently colored patterns.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{patterns}}]
\begin{tikzpicture}
\draw[pattern color=red,pattern=fivepointed stars] (0,0) circle (1cm);
\draw[pattern color=blue,pattern=fivepointed stars] (0,0) rectangle (3,1);
\end{tikzpicture}
\end{codeexample}
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{patterns}}]
\begin{tikzpicture}
\def\mypath{(0,0) -- +(0,1) arc (180:0:1.5cm) -- +(0,-1)}
\fill [red] \mypath;
@@ -1306,7 +1315,7 @@ the following two options:
\end{codeexample}
Naturally, you would normally create a style |shadow| that contains the
- above code. The shadow library, see Section~\ref{section-libs-shadows},
+ above code. The |shadows| library, see Section~\ref{section-libs-shadows},
contains predefined shadows of this kind.
It is possible to use the |preaction| option multiple times. In this case,
@@ -1317,7 +1326,7 @@ the following two options:
In the following example, we use one |preaction| to add a shadow and
another to provide a shading, while the main action is to use a pattern.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{patterns}}]
\begin{tikzpicture}
\draw[help lines] (0,0) grid (3,2);
\draw [pattern=fivepointed stars]
@@ -1333,7 +1342,7 @@ the following two options:
is used several times with different fadings and shadings to create a
special visual effect:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fadings,patterns}}]
\begin{tikzpicture}
[
% Define an interesting style
@@ -1396,7 +1405,7 @@ the following two options:
In another example, we use a postaction to ``colorize'' a path:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{fadings}}]
\begin{tikzpicture}
\draw[help lines] (0,0) grid (3,2);
\draw
@@ -1420,7 +1429,7 @@ described in detail in Section~\ref{section-tikz-decorations}. For instance, in
the following example the path is drawn twice: Once normally and then in a
morphed (=decorated) manner.
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.pathmorphing}}]
\begin{tikzpicture}
\draw (0,0) rectangle (3,2);
\draw [red, decorate, decoration=zigzag]
@@ -1431,7 +1440,7 @@ morphed (=decorated) manner.
Naturally, we could have combined this into a single command using pre- or
postaction. It is also possible to deform shapes:
%
-\begin{codeexample}[]
+\begin{codeexample}[preamble={\usetikzlibrary{decorations.pathmorphing,shadows}}]
\begin{tikzpicture}
\node [circular drop shadow={shadow scale=1.05},minimum size=3.13cm,
decorate, decoration=zigzag,