Debian Codegraph @

texmf-dist/doc/generic/pgf/pgfmanual-en-library-through.tex

raw
1 % Copyright 2019 by Till Tantau
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Free Documentation License.
7 %
8 % See the file doc/generic/pgf/licenses/LICENSE for more details.
9
10
11 \section{Through Library}
12 \label{section-through-library}
13
14 \begin{tikzlibrary}{through}
15 This library defines keys for creating shapes that go through given points.
16 \end{tikzlibrary}
17
18 \begin{key}{/tikz/circle through=\meta{coordinate}}
19 When this key is given as an option to a node, the following happens:
20 %
21 \begin{enumerate}
22 \item The |inner sep| and the |outer sep| are set to zero.
23 \item The shape is set to |circle|.
24 \item The |minimum size| is set such that the circle around the center
25 of the node (which is specified using |at|), goes through
26 \meta{coordinate}.
27 \end{enumerate}
28 %
29 \begin{codeexample}[preamble={\usetikzlibrary{through}}]
30 \begin{tikzpicture}
31 \draw[help lines] (0,0) grid (3,2);
32 \node (a) at (2,1.5) {$a$};
33 \node [draw] at (1,1) [circle through={(a)}] {$c$};
34 \end{tikzpicture}
35 \end{codeexample}
36 %
37 \end{key}
38
39
40 %%% Local Variables:
41 %%% mode: latex
42 %%% TeX-master: "pgfmanual-pdftex-version"
43 %%% End: