diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex index e8c5a77dc9a..8288a0797f6 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-tikz-matrices.tex @@ -68,6 +68,11 @@ tree, and so on. Also, you can refer to the different anchors of a matrix. \begin{stylekey}{/tikz/every matrix (initially \normalfont empty)} This style is used in every matrix. \end{stylekey} + % + \begin{stylekey}{/tikz/every outer matrix (initially \normalfont empty)} + While the |every matrix| key also applies to the matrix contents, this + only applies to the outer node which holds the matrix. + \end{stylekey} \end{key} Even more so than nodes, matrices will often be the only object on a path. @@ -87,6 +92,11 @@ normal nodes: transformation matrix is reset. \item For multi-part shapes you can only set the |text| part of the node. \item All options starting with |text| such as |text width| have no effect. + \item If you place a matrix on a path, the matrix contents will be + collected into a macro, which tokenizes them. This means that |&| will + lose its meaning as an alignment character, resulting in an error. If + you need to place a matrix on a path, use |ampersand replacement| to + work around that problem. \end{enumerate} @@ -614,7 +624,7 @@ The following examples are adapted from code by Mark Wibrow. The first two redraw pictures from Timothy van Zandt's PStricks documentation: % {\catcode`\|=12 -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of math nodes,row sep=1cm] { @@ -633,7 +643,10 @@ redraw pictures from Timothy van Zandt's PStricks documentation: \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[ + preamble={\usetikzlibrary{matrix}}, + pre={\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}}, +] \begin{tikzpicture}[>=stealth,->,shorten >=2pt,looseness=.5,auto] \matrix [matrix of math nodes, column sep={2cm,between origins}, @@ -658,7 +671,7 @@ redraw pictures from Timothy van Zandt's PStricks documentation: \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix (network) [matrix of nodes,% @@ -688,7 +701,7 @@ is based on the following paper: K.~Bossley, M.~Brown, and C.~Harris, Neurofuzzy identification of an autonomous underwater vehicle, \emph{International Journal of Systems Science}, 1999, 30, 901--913. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{arrows,shapes.geometric}}] \begin{tikzpicture} [auto, decision/.style={diamond, draw=blue, thick, fill=blue!20, |