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