| 1 |
% tkz-lib-shape.tex |
| 2 |
% Copyright 2024 Alain Matthes |
| 3 |
% This work may be distributed and/or modified under the |
| 4 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 5 |
% of this license or (at your option) any later version. |
| 6 |
% The latest version of this license is in |
| 7 |
% http://www.latex-project.org/lppl.txt |
| 8 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 9 |
% version 2005/12/01 or later. |
| 10 |
% This work has the LPPL maintenance status “maintained”. |
| 11 |
% The Current Maintainer of this work is Alain Matthes. |
| 12 |
|
| 13 |
\def\fileversion{4.21c} |
| 14 |
\def\filedate{2024/01/16} |
| 15 |
\typeout{2024/01/16 4.21c tkz-lib-shape.tex} |
| 16 |
\makeatletter |
| 17 |
%<--------------------------------------------------------------------------–> |
| 18 |
% Création des symboles |
| 19 |
%<--------------------------------------------------------------------------–> |
| 20 |
% define a new shape for the points |
| 21 |
\pgfdeclareshape{cross} |
| 22 |
{% |
| 23 |
\inheritsavedanchors[from=rectangle] % this is nearly a rectangle |
| 24 |
\inheritanchorborder[from=rectangle] |
| 25 |
\inheritanchor[from=rectangle]{north} |
| 26 |
\inheritanchor[from=rectangle]{north west} |
| 27 |
\inheritanchor[from=rectangle]{north east} |
| 28 |
\inheritanchor[from=rectangle]{center} |
| 29 |
\inheritanchor[from=rectangle]{west} |
| 30 |
\inheritanchor[from=rectangle]{east} |
| 31 |
\inheritanchor[from=rectangle]{mid} |
| 32 |
\inheritanchor[from=rectangle]{mid west} |
| 33 |
\inheritanchor[from=rectangle]{mid east} |
| 34 |
\inheritanchor[from=rectangle]{base} |
| 35 |
\inheritanchor[from=rectangle]{base west} |
| 36 |
\inheritanchor[from=rectangle]{base east} |
| 37 |
\inheritanchor[from=rectangle]{south} |
| 38 |
\inheritanchor[from=rectangle]{south west} |
| 39 |
\inheritanchor[from=rectangle]{south east} |
| 40 |
\foregroundpath{ |
| 41 |
% store lower right in xa/ya and upper right in xb/yb |
| 42 |
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y |
| 43 |
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y |
| 44 |
\pgfpathmoveto{\pgfqpoint{0 pt}{\pgf@ya}} |
| 45 |
\pgfpathlineto{\pgfqpoint{0 pt}{\pgf@yb}} |
| 46 |
\pgfpathmoveto{\pgfqpoint{\pgf@xa}{0 pt}} |
| 47 |
\pgfpathlineto{\pgfqpoint{\pgf@xb}{0 pt}} |
| 48 |
} |
| 49 |
} |
| 50 |
\makeatother |
| 51 |
\endinput |