Debian Codegraph @

texmf-dist/tex/generic/tikz-ext/tikzlibraryext.node-families.shapes.geometric.code.tex

raw
1 % Copyright 2022 by Qrrbrbirlbel
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
9 \usetikzlibrary{ext.node-families,shapes.geometric}
10
11 \let\tikzext@nf@function@ellipse \tikzext@nf@function@default@double
12 \let\tikzext@nf@function@star \tikzext@nf@function@circle
13 \let\tikzext@nf@function@diamond \tikzext@nf@function@default@double
14 \let\tikzext@nf@function@star \tikzext@nf@function@circle@double
15 \expandafter\let\csname tikzext@nf@function@regular polygon\endcsname
16 \tikzext@nf@function@circle@double
17 \let\tikzext@nf@function@trapezium\tikzext@nf@function@default@double
18 \def\tikzext@nf@function@semicircle {{\the\dimexpr2\pgf@x\relax}{\the\pgf@x}}
19 \expandafter\def\csname tikzext@nf@function@isosceles triangle\endcsname
20 {{\the\dimexpr2\pgf@ya\relax}{\the\pgf@xa}}
21 \def\tikzext@nf@function@kite {{\the\dimexpr2\pgf@xa\relax}{\the\dimexpr\pgf@ya+\pgf@yb\relax}}
22 \def\tikzext@nf@function@dart {{\the\dimexpr2\pgf@ya\relax}{\the\pgf@xb}}
23 \expandafter\def\csname tikzext@nf@function@circular sector\endcsname{{\the\pgf@xc}{\the\pgf@xa}}
24 \def\tikzext@nf@function@cylinder{{\the\dimexpr2\pgfutil@tempdimb\relax}{\the\pgf@x}}
25
26 \tikzextset{node family/setup shape/.list={
27 ellipse,
28 star,
29 diamond,
30 regular polygon,
31 trapezium,
32 semicircle,
33 isosceles triangle,
34 kite,
35 dart,
36 circular sector,
37 cylinder
38 }}