Debian Codegraph @

texmf-dist/tex/latex/pgfornament/pgflibraryam.code.tex

raw
1 % pgflibraryam.code.tex (utf8 encoding)
2 % Copyright 2020 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 %
11 % This work has the LPPL maintenance status “maintained”.
12 %
13 % The Current Maintainer of this work is Alain Matthes.
14 % Original idea of F Fradin and H Voss
15 \typeout{2020/04/06 1.1 pgflibraryam.code.tex}
16 \makeatletter
17
18 % dimensions des motifs
19 \def\@pgfornamentDim#1{% dim en bp
20 \ifcase#1\relax%
21 \or\def\@pgfornamentX{136}\def\@pgfornamentY{107}% 1
22 \or\def\@pgfornamentX{133}\def\@pgfornamentY{48}% 2
23 \or\def\@pgfornamentX{133}\def\@pgfornamentY{48}% 2
24 \fi%
25 }%
26 % appels des motifs
27 \def\pgf@@ornament#1{%
28 \begingroup
29 \def\i{\pgfusepath{clip}}
30 \let\o\pgfpathclose
31 \let\s\pgfusepathqfillstroke
32 \def\p ##1##2{\pgfqpoint{##1bp}{##2bp}}
33 \def\m ##1 ##2 {\pgfpathmoveto{\p{##1}{##2}}}
34 \def\l ##1 ##2 {\pgfpathlineto{\p{##1}{##2}}}
35 \def\r ##1 ##2 ##3 ##4 {\pgfpathrectangle{\p{##1}{##2}}{\p{##3}{##4}}}
36 \def\c ##1 ##2 ##3 ##4 ##5 ##6 {%
37 \pgfpathcurveto{\p{##1}{##2}}{\p{##3}{##4}}{\p{##5}{##6}}}%
38 \@@input am#1.pgf
39 %\@nameuse{pgf@@am@#1}%
40 \endgroup}%
41 \makeatother
42 \endinput