| 1 |
%% xyps-r.tex from $Id: xyps-r.doc,v 3.11 2011/03/14 20:14:00 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``PostScript Rotations and Scaling''. |
| 4 |
%% Copyright (c) 1993-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-rloaded\endcsname\empty |
| 28 |
\message{not reloaded}\endinput \fi |
| 29 |
\expandafter\let\csname xyps-rloaded\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@\installPSrotscale@{\installPSstyle@ |
| 34 |
\let\xyRotate@@=\xyPSrotate@@ |
| 35 |
\let\doSpecialRotate@@=\doPSspecialRotate@@ |
| 36 |
\let\xyscale@@=\xyPSscale@@ |
| 37 |
\xyPSshapes@true |
| 38 |
\xyuncatcodes } |
| 39 |
\xydef@\UsePSrotate{\installPSrotscale@} |
| 40 |
\xydef@\NoPSrotate{\UnloadRotate@\relax} |
| 41 |
\xydef@\xyPSpretransform@{\xyPSrawA@{\preXYtransform@@}} |
| 42 |
\xydef@\xyPSposttransform@{\xyPSrawZ@{\postXYtransform@@}} |
| 43 |
\let\preXYtransform@=\xyPSpretransform@ |
| 44 |
\let\postXYtransform@=\xyPSposttransform@ |
| 45 |
\xydef@\xyPSrotSplit@{% |
| 46 |
\expandafter\def\expandafter\preShape@@\expandafter{\xyPSpre@}% |
| 47 |
\expandafter\def\expandafter\postShape@@\expandafter{\xyPSpost@}} |
| 48 |
\xydef@\xyPSscale@@#1#2{% |
| 49 |
\xyPSsplitPS@{\xyscale@start(#1,#2)}{\xyscale@end}% |
| 50 |
\xyPSrotSplit@\xyPSpsxy@ } |
| 51 |
\xydef@\xyPSrotate@@#1{% |
| 52 |
\xyPSsplitPS@{\xyrot@start(#1 xyd)}{\xyrot@end}% |
| 53 |
\xyPSrotSplit@\xyPSpsxy@ } |
| 54 |
\xydef@\xyPSspecialRotate@#1{% |
| 55 |
\xyPSsplitPS@{\xyrot@start(#1)}{\xyrot@end}\xyPSrotSplit@\xyPSpsxy@ } |
| 56 |
\xydef@\doPSspecialRotate@@#1@@{\xyPSspecialRotate@{#1}} |
| 57 |
\xydef@\xyRotScale@@{% |
| 58 |
\def\xyrot@start(##1){{xyt ##1\space xyr}}% |
| 59 |
\def\xyscale@start(##1,##2){{xyt ##1\space##2\space xys}}% |
| 60 |
\def\xyrot@end{}\def\xyscale@end{}} |
| 61 |
\endinput |