diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-matrices.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-matrices.tex | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-matrices.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-matrices.tex index 5eaed540fa0..1e0e15e49cb 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-matrices.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-library-matrices.tex @@ -31,7 +31,7 @@ typesetting such matrices. example, if the matrix has the name |my matrix|, then the node in the upper left cell will get the name |my matrix-1-1|. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix (magic) [matrix of nodes] { @@ -51,7 +51,7 @@ typesetting such matrices. \item You can modify, say, the |row 2 column 3| style to pass special options to this particular cell. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture}[row 2 column 3/.style=red] \matrix [matrix of nodes] { @@ -67,7 +67,7 @@ typesetting such matrices. and the next bar is passed on to the |node| command. % {\catcode`\|=12 -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of nodes] { @@ -86,7 +86,7 @@ typesetting such matrices. is an extra column skip. % {\catcode`\|=12 -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of nodes] { @@ -103,7 +103,7 @@ typesetting such matrices. This means that for this particular cell you can provide totally different contents. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of nodes] { @@ -122,7 +122,7 @@ typesetting such matrices. on in all nodes. % {\catcode`\|=12 -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of math nodes] { @@ -140,7 +140,7 @@ typesetting such matrices. Normally, empty cells are just, well, empty. The style can be used together with both a |matrix of nodes| and a |matrix of math nodes|. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of math nodes,nodes={circle,draw}] { @@ -151,7 +151,7 @@ typesetting such matrices. \end{tikzpicture} \end{codeexample} % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of math nodes,nodes={circle,draw},nodes in empty cells] { @@ -206,7 +206,7 @@ indicator; if you want to use it as an end-of-line indicator in a cell, just put the whole cell in curly braces. The following example illustrates the difference: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of nodes,nodes={text width=16mm,draw}] { @@ -215,7 +215,8 @@ difference: }; \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +% +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of nodes,nodes={text width=16mm,draw}] { @@ -235,7 +236,7 @@ of braces). \subsection{Delimiters} Delimiters are parentheses or braces to the left and right of a formula or a -matrix. The matrix library offers options for adding such delimiters to a +matrix. The |matrix| library offers options for adding such delimiters to a matrix. However, delimiters can actually be added to any node that has the standard anchors |north|, |south|, |north west| and so on. In particular, you can add delimiters to any |rectangle| box. They are implemented by ``measuring @@ -247,7 +248,7 @@ left or right using some after node magic. |north|, |south| and so on. The \meta{delimiter} can be any delimiter that is acceptable to \TeX's |\left| command. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of math nodes,left delimiter=(,right delimiter=\}] { @@ -258,7 +259,7 @@ left or right using some after node magic. \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \node [fill=red!20,left delimiter=(,right delimiter=\}] {$\displaystyle\int_0^1 x\,dx$}; @@ -273,7 +274,7 @@ left or right using some after node magic. \begin{stylekey}{/tikz/every left delimiter (initially \normalfont empty)} This style is additionally executed for every left delimiter. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} [every left delimiter/.style={red,xshift=1ex}, every right delimiter/.style={xshift=-1ex}] @@ -300,7 +301,7 @@ left or right using some after node magic. This option allows you to add a delimiter above the node. It is implemented by rotating a left delimiter. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{matrix}}] \begin{tikzpicture} \matrix [matrix of math nodes,% left delimiter=\|,right delimiter=\rmoustache,% |