diff options
Diffstat (limited to 'graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-paths.ortho.tex')
-rw-r--r-- | graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-paths.ortho.tex | 75 |
1 files changed, 61 insertions, 14 deletions
diff --git a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-paths.ortho.tex b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-paths.ortho.tex index 32adea7af0..a46f6be023 100644 --- a/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-paths.ortho.tex +++ b/graphics/pgf/contrib/tikz-ext/doc/tikz-ext-manual-en-library-paths.ortho.tex @@ -11,13 +11,13 @@ \section{More Horizontal and Vertical Lines} \label{library:paths.ortho} -\begin{tikzlibrary}{paths.ortho} +\begin{tikzlibrary}{ext.paths.ortho} This library adds new path specifications \verb!|-|!, \verb!-|-! as well as |r-ud|, |r-du|, |r-lr| and |r-rl|. \end{tikzlibrary} \subsection{Zig-Zag} -Similar to the path operations \verb!|-! and \verb!-|! this library adds +Similar to the path operations \verb!|-! and \verb!-|! this library adds\indexPathOperationO{\protect\pgfmanualbar-}\indexPathOperationO{-\protect\pgfmanualbar} the path operations \verb!|-|! and \verb!-|-!. {\catcode`\|=12 \begin{pathoperation}[noindex]{|-|}{\opt{\oarg{options}}\meta{coordinate or cycle}} @@ -38,33 +38,33 @@ the path operations \verb!|-|! and \verb!-|-!. For values $\meta{ratio} < 0$ and $\meta{ratio} > 1$ the Zig-Zag lines will look more like Zig-Zig lines. - \begin{codeexample}[preamble=\usetikzlibrary{paths.ortho}] -\begin{tikzpicture}[very thick] +\begin{codeexample}[preamble=\usetikzlibrary{paths.ortho}] +\begin{tikzpicture}[very thick, rounded corners] \draw[help lines] (-.25, -1.25) grid (2.25, 1.25); \draw (0, 0) -|- (2, 1) -- (2, 0) -|-[ratio=.25] (0,-1) -- cycle; \end{tikzpicture} - \end{codeexample} +\end{codeexample} \end{key} -%TODO: hvvh/distance needs fixing. +%TODO: hvvh/distance needs fixing, maybe? \begin{key}{/tikz/hvvh/distance=\meta{distance}} This sets the distance between the start point and the middle part of the Zig-Zag connection. For values $\meta{distance} < 0$ the distance will be used for the target coordinate. -\begin{codeexample}[width=8cm,preamble=\usetikzlibrary{paths.ortho}] +\begin{codeexample}[width=8cm,preamble=\usetikzlibrary{ext.paths.ortho}] \begin{tikzpicture}[very thick,-latex] \draw[help lines,-] (-.25, -.25) grid (5.25, 3.25); -\draw (0, 0) -|-[distance= .5cm] ++(2, 1); -\draw (0, 1.5) -|-[distance=-.5cm] ++(2, 1); +\draw (0, 0) -|-[distance= .5cm] ++(2, 1); +\draw (0, 2) -|-[distance=-.5cm] ++(2, 1); \tikzset{xshift=3cm} -\draw (2, 1) -|-[distance= .5cm] ++(-2, -1); -\draw (2, 2.5) -|-[distance=-.5cm] ++(-2, -1); +\draw (2, 1) -|-[distance= .5cm] ++(-2, -1); +\draw (2, 3) -|-[distance=-.5cm] ++(-2, -1); \end{tikzpicture} \end{codeexample} \end{key} -\begin{key}{/tikz/hvvh/from center=\opt{\meta{true or false}} (initially false, default true)} +\begin{key}{/tikz/hvvh/from center=\opt{\meta{true or false}} (default true)} When nodes get connected the placement of the middle part of the Zig-Zag and the Zig-Zig (see below) connections will be calculated from the border of these nodes. @@ -82,7 +82,7 @@ these can be configured through the following keys. \begin{key}{/tikz/hvvh/spacing=\meta{number} (initially 4)} Unless $\meta{number} = 0$ is set \begin{itemize} - \item |pos = 0| will be at the start, + \item |pos = 0| will be at the start,\indexKeyO{pos} \item |pos = 1| will be at the end, \item |pos = |$\frac{1}{\meta{number}}$ will be at the first kink, \item |pos = |$\frac{\meta{number}-1}{\meta{number}}$ will be at the second kink and @@ -135,4 +135,51 @@ All distances can be set with on key. \begin{key}{/tikz/udlr/from center=\opt{\meta{true or false}} (initially false, default true)} This is an alias for |/tikz/hvvh/from center|. -\end{key}
\ No newline at end of file +\end{key} + +\subsection{Even more Horizontal and Vertical Lines} + +The following keys can be used to access vertical and horizontal line path operations. +\begin{stylekey}{/tikz/horizontal vertical} + This installs \verb!to path = -| (\tikztotarget) \tikztonodes! that can be used with\indexKeyO{to path} + the path operations |to| or |edge|. +\end{stylekey} +\begin{stylekey}{/tikz/vertical horizontal} + This installs \verb!to path = |- (\tikztotarget) \tikztonodes! that can be used with + the path operations |to| or |edge|. +\end{stylekey} +\begin{stylekey}{/tikz/horizontal vertical horizontal} + This installs \verb!to path = -|- (\tikztotarget) \tikztonodes! that can be used with + the path operations |to| or |edge|. +\end{stylekey} +\begin{stylekey}{/tikz/vertical horizontal vertical} + This installs \verb!to path = |-| (\tikztotarget) \tikztonodes! that can be used with + the path operations |to| or |edge|. +\end{stylekey} + +When connecting rectangular nodes, these keys could be useful as well. +They all need to be given to a |to| or |edge| path operation. +\begin{stylekey}{/tikz/only vertical second=\opt{\meta{length}} (default 0pt)} +This draws a vertical line from the start point to the target point so that +it connects to the target point in the center (or at its border in case it is a node). + +The optional \meta{length} can be used to shift the line orthogonally to its direction. +\end{stylekey} +\begin{stylekey}{/tikz/only horizontal second=\opt{\meta{length}} (default 0pt)} +This draws a horizontal line from the start point to the target point so that +it connects to the target point in the center (or at its border in case it is a node). + +The optional \meta{length} can be used to shift the line orthogonally to its direction. +\end{stylekey} +\begin{stylekey}{/tikz/only vertical first=\opt{\meta{length}} (default 0pt)} +This draws a vertical line from the start point to the target point so that +it connects to the start point in the center (or at its border in case it is a node). + +The optional \meta{length} can be used to shift the line orthogonally to its direction. +\end{stylekey} +\begin{stylekey}{/tikz/only horizontal first=\opt{\meta{length}} (default 0pt)} +This draws a horizontal line from the start point to the target point so that +it connects to the start point in the center (or at its border in case it is a node). + +The optional \meta{length} can be used to shift the line orthogonally to its direction. +\end{stylekey} |