| 1 |
%% xyps-s.tex from $Id: xyps-s.doc,v 3.11 2011/03/14 20:14:00 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``Style extension'' PostScript support. |
| 4 |
%% Copyright (c) 1995-1996 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-sloaded\endcsname\empty |
| 28 |
\message{not reloaded}\endinput \fi |
| 29 |
\expandafter\let\csname xyps-sloaded\endcsname=\empty \xycatcodes |
| 30 |
\xydef@\xykillstyles@@{\Unloadstyle@}% |
| 31 |
\xywarnifdefined\xyPSescapestyle@ |
| 32 |
\xywarnifdefined\xyPSsplitescape@ |
| 33 |
{\xyuncatcodes \catcode`@=11 |
| 34 |
\gdef\xyPSescapestyle@#1@@{\xyPSsplitescape@#1<><>@@}% |
| 35 |
\gdef\xyPSsplitescape@#1<>#2<>#3@@{\xyescape@@{#1}{#2}}} |
| 36 |
\xydef@\xyPSsplitPS@#1#2{% |
| 37 |
\def\xyPSpre@{#1}\def\xyPSpost@{#2}\modPSboxz@ } |
| 38 |
\xydef@\xyescape@@#1#2{\checkXyStyle@ |
| 39 |
\applyFIFOstyle@\prexyescape@{#1}\postxyescape@{#2}} |
| 40 |
\xydef@\prexyescape@{\xyescapeSpecial@} |
| 41 |
\xydef@\postxyescape@{\xyescapeSpecial@} |
| 42 |
\xylet@\xyescapeSpecial@=\eat@ |
| 43 |
\let\xyescapeSpecial@=\addtostyletoks@ |
| 44 |
\xydef@\installPSstyle@{% |
| 45 |
\def\preXYstyle@@{\xyPSpre@}% |
| 46 |
\let\xydoprestyles@=\xyPSrawstyleA@ |
| 47 |
\let\xydopoststyles@=\xyPSrawZ@ |
| 48 |
\let\xykillstyles@=\xykillstyles@@ |
| 49 |
} |
| 50 |
\xydef@\xyPSrawstyleA@#1{\xyPSrawA@{{#1}{}}} |
| 51 |
\endinput |