Debian Codegraph @

texmf-dist/tex/generic/xypic/xyps-t.tex

raw
1 %% xyps-t.tex from $Id: xyps-t.doc,v 3.11 2011/03/14 20:14:00 krisrose Exp $
2 %%
3 %% Xy-pic ``Pattern and Tile extension'' PostScript support.
4 %% Copyright (c) 1993-1997 Ross Moore <[email protected]>
5 %%
6 %% This file is part of the Xy-pic package for graphs and diagrams in TeX.
7 %% See the companion README and INSTALL files for further information.
8 %% Copyright (c) 1991-2011 Kristoffer H. Rose <[email protected]>
9 %%
10 %% The Xy-pic package is free software; you can redistribute it and/or modify
11 %% it under the terms of the GNU General Public License as published by the
12 %% Free Software Foundation; either version 2 of the License, or (at your
13 %% option) any later version.
14 %%
15 %% The Xy-pic package is distributed in the hope that it will be useful, but
16 %% WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 %% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 %% for more details.
19 %%
20 %% You should have received a copy of the GNU General Public License along
21 %% with this package; if not, see http://www.gnu.org/licenses/.
22 %%
23 %% As a special exception, you may use this file and all files derived
24 %% from it without restrictions. This special exception was added with
25 %% version 3.7 of Xy-pic.
26 %%
27 \expandafter\ifx\csname xyps-tloaded\endcsname\empty
28 \message{not reloaded}\endinput \fi
29 \expandafter\let\csname xyps-tloaded\endcsname=\empty \xycatcodes
30 \expandafter\ifx\csname xyps-sloaded\endcsname\empty\else
31 \xyinputorelse@{xyps-s}{\xyerror@{Could not load xyps-s}{}}%
32 \xycatcodes\fi
33 \xydef@\installPSpatterns@{\installPSstyle@
34 \let\xypattern@=\xyPSpattern@@
35 \let\xypatternwarning@=\relax
36 \xystandardpatterns@
37 \xyuncatcodes }
38 \xylet@\UnloadPSpatterns@=\Unloadpattern@
39 \xydef@\UsePStiles{\installPSpatterns@}
40 \xydef@\NoPStiles{\UnloadPSpatterns@\relax}
41 \xydef@\xyPSnewpattern@#1#2#3#4#5{%
42 \expandafter\DN@\expandafter{\csname shape [#1]\endcsname}%
43 \DNii@{\relax}\ifx\next@\nextii@\newxypattern{#1}{}\relax\fi
44 \DNii@{#4}\ifx\nextii@\empty
45 \expandafter\DNii@\expandafter{\csname xyPSshape@#1@\endcsname}%
46 \expandafter\def\nextii@{\xyPSpattern@{#2 #3}}\else
47 \expandafter\DNii@\expandafter{\csname xyPSshape@#1@\endcsname}%
48 \expandafter\def\nextii@{\xyPSpattern@{#4}}\fi
49 \ifx\nextii@\empty\expandafter\def\next@{\xyPSnotimplemented@@`#1'@@}%
50 \else
51 \edef\tmp@{\noexpand\let\expandafter\noexpand\next@
52 \expandafter\noexpand\nextii@}\expandafter\tmp@\fi }
53 \xydef@\xyPSpattern@{\ifPSspecials@\expandafter\xyPSpattern@@
54 \else\expandafter\eat@\fi}%
55 \xydef@\xyPSpattern@@#1{\bgroup \checkXyStyle@
56 \def\preStyle@@{\expandafter\addtostyletoks@\expandafter{\xyPSpre@}}%
57 \def\postStyle@@{\expandafter\addtostyletoks@\expandafter{\xyPSpost@}}%
58 \let\modPSboxz@=\modXYstyle@ \xyPS@pattern@@{#1}%
59 \toks@={\egroup\let\xy@style@=\relax \def\Drop@@}%
60 \expandafter\addtotoks@\expandafter{\expandafter{\Drop@@}\def\Connect@@}%
61 \expandafter\addtotoks@\expandafter{\expandafter{\Connect@@}}%
62 \the\toks@ }
63 \xydef@\xyPS@pattern@@#1{\xyPSsplitPS@{{#1}sp}{}}
64 \endinput