| 1 |
% tkz-lib-eu-shape.tex |
| 2 |
% Copyright 2011-2026 Alain Matthes |
| 3 |
% SPDX-License-Identifier: LPPL-1.3c |
| 4 |
% Maintainer: Alain Matthes |
| 5 |
|
| 6 |
\typeout{2026/01/25 5.13c tkz-lib-eu-shape.tex} |
| 7 |
%<--------------------------------------------------------------------------–> |
| 8 |
% Création des symboles |
| 9 |
%<--------------------------------------------------------------------------–> |
| 10 |
\makeatletter |
| 11 |
% define a new shape for the points |
| 12 |
\pgfdeclareshape{cross} |
| 13 |
{% |
| 14 |
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle |
| 15 |
\inheritanchorborder[from=rectangle] |
| 16 |
\inheritanchor[from=rectangle]{north} |
| 17 |
\inheritanchor[from=rectangle]{north west} |
| 18 |
\inheritanchor[from=rectangle]{north east} |
| 19 |
\inheritanchor[from=rectangle]{center} |
| 20 |
\inheritanchor[from=rectangle]{west} |
| 21 |
\inheritanchor[from=rectangle]{east} |
| 22 |
\inheritanchor[from=rectangle]{mid} |
| 23 |
\inheritanchor[from=rectangle]{mid west} |
| 24 |
\inheritanchor[from=rectangle]{mid east} |
| 25 |
\inheritanchor[from=rectangle]{base} |
| 26 |
\inheritanchor[from=rectangle]{base west} |
| 27 |
\inheritanchor[from=rectangle]{base east} |
| 28 |
\inheritanchor[from=rectangle]{south} |
| 29 |
\inheritanchor[from=rectangle]{south west} |
| 30 |
\inheritanchor[from=rectangle]{south east} |
| 31 |
\foregroundpath{ |
| 32 |
% store lower right in xa/ya and upper right in xb/yb |
| 33 |
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y |
| 34 |
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y |
| 35 |
\pgfpathmoveto{\pgfqpoint{0 pt}{\pgf@ya}} |
| 36 |
\pgfpathlineto{\pgfqpoint{0 pt}{\pgf@yb}} |
| 37 |
\pgfpathmoveto{\pgfqpoint{\pgf@xa}{0 pt}} |
| 38 |
\pgfpathlineto{\pgfqpoint{\pgf@xb}{0 pt}} |
| 39 |
} |
| 40 |
} |
| 41 |
\makeatother |
| 42 |
\endinput |