|
1 %% xypdf-s.tex from $Id: xypdf-s.doc,v $ |
|
2 %% |
|
3 %% Xy-pic ``Style extension'' PDF support. |
|
4 %% Copyright (c) 1999-1999 Ross Moore <ross@mpce.mq.edu.au> |
|
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-1999 Kristoffer H. Rose <krisrose@brics.dk> |
|
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, write to the Free Software Foundation, Inc., |
|
22 %% 675 Mass Ave, Cambridge, MA 02139, USA. |
|
23 %% |
|
24 %% As a special exception, you may use this file and all files derived |
|
25 %% from it without restrictions. This special exception was added with |
|
26 %% version 3.7 of Xy-pic. |
|
27 %% |
|
28 \expandafter\ifx\csname xypdf-sloaded\endcsname\empty |
|
29 \message{not reloaded}\endinput \fi |
|
30 \expandafter\let\csname xypdf-sloaded\endcsname=\empty \xycatcodes |
|
31 \xydef@\xykillstyles@@{\Unloadstyle@}% |
|
32 \xywarnifdefined\xyPDFescapestyle@ |
|
33 \xywarnifdefined\xyPDFsplitescape@ |
|
34 {\xyuncatcodes \catcode`@=11 |
|
35 \gdef\xyPDFescapestyle@#1@@{\xyPDFsplitescape@#1<><>@@}% |
|
36 \gdef\xyPDFsplitescape@#1<>#2<>#3@@{\xyescape@@{#1}{#2}}} |
|
37 \xydef@\xyPDFsplitPDF@#1#2{% |
|
38 \def\xyPDFpre@{#1}\def\xyPDFpost@{#2}\modPDFboxz@ } |
|
39 \xydef@\xyescape@@#1#2{\checkXyStyle@ |
|
40 \applyFIFOstyle@\prexyescape@{#1}\postxyescape@{#2}} |
|
41 \xydef@\prexyescape@{\xyescapeSpecial@} |
|
42 \xydef@\postxyescape@{\xyescapeSpecial@} |
|
43 \xylet@\xyescapeSpecial@=\eat@ |
|
44 \let\xyescapeSpecial@=\addtostyletoks@ |
|
45 \xydef@\installPDFstyle@{% |
|
46 \def\preXYstyle@@{\xyPDFpre@}% |
|
47 \let\xydoprestyles@=\xyPDFrawstyleA@ |
|
48 \let\xydopoststyles@=\xyPDFrawZ@ |
|
49 \let\xykillstyles@=\xykillstyles@@ |
|
50 } |
|
51 \xydef@\xyPDFrawstyleA@#1{\xyPDFrawA@{{#1}{}}} |
|
52 \endinput |