% Copyright 2006 by Till Tantau % % This file may be distributed and/or modified % % 1. under the LaTeX Project Public License and/or % 2. under the GNU Free Documentation License. % % See the file doc/generic/pgf/licenses/LICENSE for more details. \section{Pattern Library} \label{section-library-patterns} \begin{pgflibrary}{patterns} The package defines patterns for filling areas. \end{pgflibrary} \newcommand\patternindex[1]{% \index{#1@\protect\texttt{#1} pattern}% \index{Patterns!#1@\protect\texttt{#1}}% \texttt{#1}& \begin{tikzpicture}[baseline=.5ex] % Background \pattern [path fading=west,pattern=checkerboard light gray] (0,0) rectangle (5cm,2em); \pattern [pattern=#1,pattern color=black] (0,0) rectangle +(1.5cm,2em); \pattern [pattern=#1,pattern color=blue] (1.75,0) rectangle +(1.5cm,2em); \pattern [pattern=#1,pattern color=red] (3.5,0) rectangle +(1.5cm,2em); \end{tikzpicture} \\[1ex] } \newcommand\patternindexinherentlycolored[1]{% \index{#1@\protect\texttt{#1} pattern}% \index{Patterns!#1@\protect\texttt{#1}}% \texttt{#1}& \begin{tikzpicture}[baseline=.5ex] % Background \pattern [path fading=west,pattern=checkerboard light gray] (0,0) rectangle (5cm,2em); \pattern [pattern=#1,pattern color=blue] (0,0) rectangle +(5cm,2em); \end{tikzpicture} \\[1ex] } \subsection{Form-Only Patterns} \begin{tabular}{ll} \emph{Pattern name} & \emph{Example (pattern in black, blue, and red on faded checkerboard)} \\ \patternindex{horizontal lines} \patternindex{vertical lines} \patternindex{north east lines} \patternindex{north west lines} \patternindex{grid} \patternindex{crosshatch} \patternindex{dots} \patternindex{crosshatch dots} \patternindex{fivepointed stars} \patternindex{sixpointed stars} \patternindex{bricks} \patternindex{checkerboard} \end{tabular} \subsection{Inherently Colored Patterns} \begin{tabular}{ll} \emph{Pattern name} & \emph{Example} \\ \patternindexinherentlycolored{checkerboard light gray} \patternindexinherentlycolored{horizontal lines light gray} \patternindexinherentlycolored{horizontal lines gray} \patternindexinherentlycolored{horizontal lines dark gray} \patternindexinherentlycolored{horizontal lines light blue} \patternindexinherentlycolored{horizontal lines dark blue} \patternindexinherentlycolored{crosshatch dots gray} \patternindexinherentlycolored{crosshatch dots light steel blue} \end{tabular} %%% Local Variables: %%% mode: latex %%% TeX-master: "pgfmanual-pdftex-version" %%% End: