| 1 |
%% xyps.tex from $Id: xyps.doc,v 3.12 2011/05/27 04:51:17 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``PostScript backend''. |
| 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 |
\ifx\xyloaded\undefined \input xy \fi |
| 28 |
\xyprovide{ps}{PostScript backend}{\stripRCS$Revision: 3.12 $}% |
| 29 |
{Ross Moore}{[email protected]}% |
| 30 |
{Mathematics Department, Macquarie University, NSW~2109, Australia} |
| 31 |
\xydef@\UsePSspecials{\DNii@{{[4]}}\xyFN@\UsePSspecials@i} |
| 32 |
\xydef@\UsePSspecials@i{% |
| 33 |
\ifx \space@\next \expandafter\DN@\space{\xyFN@\UsePSspecials@i}% |
| 34 |
\else\ifx [\next \DN@[##1]{\DNii@{{[##1]}}\xyFN@\UsePSspecials@i}% |
| 35 |
\else\ifcat 5\noexpand\next \DN@##1{\DNii@{{[##1]}}\xyFN@\UsePSspecials@i}% |
| 36 |
\else\ifx\bgroup\next \DN@{\expandafter\UsePS@specials\nextii@}% |
| 37 |
\else \DN@{\UsePS@specials{[4]}}% |
| 38 |
\fi\fi\fi\fi \next@ } |
| 39 |
\xydef@\UsePS@specials#1#2{% |
| 40 |
\ifx\empty\whichPSspecials@ |
| 41 |
\DN@{#2}\ifx\next@\empty |
| 42 |
\else |
| 43 |
\expandafter\let\expandafter\next\csname#2@\endcsname |
| 44 |
\ifx\next\relax \DN@{\UsePSspecials@{#2}{}}% |
| 45 |
\else \DN@{\UsePSspecials@{#2}{#1}}\fi |
| 46 |
\fi |
| 47 |
\else |
| 48 |
\DN@{#2}\ifx\next@\empty \DN@{\PSspecials@true}% |
| 49 |
\else |
| 50 |
\DN@{#2}% |
| 51 |
\edef\nextii@{\expandafter\string\whichPSspecials@}% |
| 52 |
\ifx\next@\nextii@\DN@{\PSspecials@true}% |
| 53 |
\else |
| 54 |
\ifx\firstPS@@\relax |
| 55 |
\DN@{\xyerror@{Only one PS <driver> allowed: \dvitype@ already loaded}{}}% |
| 56 |
\else |
| 57 |
\expandafter\let\expandafter\next\csname#2@\endcsname |
| 58 |
\ifx\next\relax |
| 59 |
\DN@{\xyerror@{PostScript specials for `#2' not supported}{}}% |
| 60 |
\else |
| 61 |
\xywarning@{Changing PS <driver> to #2 }% |
| 62 |
\DN@{\UsePSspecials@{#2}{#1}}% |
| 63 |
\fi |
| 64 |
\fi |
| 65 |
\fi |
| 66 |
\fi |
| 67 |
\fi \next@} |
| 68 |
\xydef@\UseDVIPSspecials{\UsePSspecials@\dvips@} |
| 69 |
\xydef@\UseTexturesPSspecials{\UsePSspecials@\Textures@} |
| 70 |
\xydef@\UseTexturesSpecials{\UsePSspecials@\Textures@} |
| 71 |
\xydef@\UsePostScriptSpecials{\UsePSspecials@\dvips@} |
| 72 |
\xydef@\UseOzTeXspecials{\UsePSspecials@\OzTeX@} |
| 73 |
\xydef@\UseDVITOPSspecials{\UsePSspecials@\dvitops@} |
| 74 |
\message{drivers,} |
| 75 |
\xydef@\loadPSdriver@#1#2{\xyinputorelse@{xy#1}% |
| 76 |
{\xyrequire{#2}\expandafter\ifx\csname xy#2loaded\else |
| 77 |
{\xyerror@{Unable to load xy#1.tex for #2 driver}{}}\fi}} |
| 78 |
\xydef@\dvips@{\loadPSdriver@{ps-dvi}{dvips}} |
| 79 |
\xydef@\Textures@{\loadPSdriver@{ps-txt}{Textures}} |
| 80 |
\xydef@\OzTeX@{\loadPSdriver@{ps-oz}{OzTeX}} |
| 81 |
\xydef@\dvitops@{\loadPSdriver@{ps-dto}{dvitops}} |
| 82 |
\xydef@\dvipsone@{\loadPSdriver@{ps-one}{dvipsone}} |
| 83 |
\global\newif\ifPSspecials@ |
| 84 |
\xydef@\UsePSspecials@#1{\def\whichPSspecials@{#1}% |
| 85 |
\DN@{\Textures@}\ifx\next@\whichPSspecials@ |
| 86 |
\DN@##1{\xyrequire{textures}% |
| 87 |
\def\whichPSspecials@{textures}\xyps@options}% |
| 88 |
\else\DN@{\dvips@}\ifx\next@\whichPSspecials@ |
| 89 |
\DN@##1{\xyrequire{dvips}% |
| 90 |
\def\whichPSspecials@{dvips}\xyps@options}% |
| 91 |
\else\DN@{\OzTeX@}\ifx\next@\whichPSspecials@ |
| 92 |
\DN@##1{\xyrequire{oztex}% |
| 93 |
\def\whichPSspecials@{oztex}\xyps@options}% |
| 94 |
\else\DN@{\dvitops@}\ifx\next@\whichPSspecials@ |
| 95 |
\DN@##1{\xyrequire{dvitops}% |
| 96 |
\def\whichPSspecials@{dvitops}\xyps@options}% |
| 97 |
\else |
| 98 |
\DN@##1{\xyrequire{ps}\xyrequire{#1}\xyps@options}% |
| 99 |
\fi\fi\fi\fi \next@ } |
| 100 |
\xydef@\xyps@options{% |
| 101 |
\xyrequire{ps}\xyrequire{line}\xyrequire{color}\xyrequire{crayon}% |
| 102 |
\xyrequire{rotate}\xyrequire{tile}\xyrequire{frame}\xyuncatcodes } |
| 103 |
\xydef@\whichPSspecials@{} |
| 104 |
\xydef@\NoPSspecials{\xyPSwarning@{off}% |
| 105 |
\PSspecials@false\aftergroup\resetPS@} |
| 106 |
\xydef@\resetPS@{\ifPSspecials@\xyPSwarning@{back on}\fi} |
| 107 |
\xydef@\UsePSspecials@x{\PSspecials@true\resetPS@} |
| 108 |
\xydef@\xyPSwarning@#1{\xywarning@{PostScript switched #1}} |
| 109 |
\xyaddunsupport{ps}{\csname UnloadPS@@\endcsname} |
| 110 |
\xydef@\PSspecials@{% |
| 111 |
\ifx\next[\DN@[##1]{\setxyPSlevel@{##1}\xyFN@\PSspecials@}% |
| 112 |
\else\DN@{\whichPSspecials@\PSspecials@@}% |
| 113 |
\fi \next@ }% |
| 114 |
\xydef@\PSspecials@@{% |
| 115 |
\ifx\und@fined\PSmessage\hidePSmessages\fi \setupxyPS@} |
| 116 |
\xydef@\setupxyPSlevelO@{\relax} |
| 117 |
\xydef@\setxyPSlevel@#1{\ifcase#1% |
| 118 |
\gdef\setupxyPS@{\setupxyPSlevelO@}% |
| 119 |
\or\gdef\setupxyPS@{\setupxyPSlevelA@}% |
| 120 |
\or\gdef\setupxyPS@{\setupxyPSlevelB@}% |
| 121 |
\or\gdef\setupxyPS@{\setupxyPSlevelC@}% |
| 122 |
\or\gdef\setupxyPS@{\setupxyPSlevelD@}% |
| 123 |
\else\gdef\setupxyPS@{\setupxyPSlevelD@}\fi } |
| 124 |
\xywarnifdefined\setupxyPS@ |
| 125 |
\gdef\setupxyPS@{\setupxyPSlevelD@ \gdef\setupxyPS@{\PSspecials@true}} |
| 126 |
\xydef@\PSincrease@#1{% |
| 127 |
\xywarning@{The PS level may only increase: #1 is already active}} |
| 128 |
\DN@{\csname newif\endcsname\ifUsePSdict@@\DN@{}} |
| 129 |
\ifx\undefined\UsePSdict@@true\else\DN@{}\fi \next@ |
| 130 |
\ifx\undefined\xyPSdefaultdict |
| 131 |
\xydef@\xyPSdefaultdict{% |
| 132 |
\DN@##1.##2.##3@{\gdef\xyPSdictname{xy##1##2dict.pro}}% |
| 133 |
\expandafter\next@\xyversion.@}% |
| 134 |
\fi |
| 135 |
\ifx\undefined\UsePSheader@ |
| 136 |
\xydef@\UsePSheader@#1{% |
| 137 |
\DN@{#1}\ifx\next@\empty |
| 138 |
\else \gdef\xyPSdictname{#1}\fi |
| 139 |
\ifx\xyPSdictname\undefined\xyPSdefaultdict\fi |
| 140 |
\gdef\xyHeaderMessage@{% |
| 141 |
It includes a reference to the PostScript file \xyPSdictname.^^J}% |
| 142 |
\UsePSdict@@true}% |
| 143 |
\let\UsePSheader=\UsePSheader@ |
| 144 |
\fi |
| 145 |
\xydef@\dumpPSdict#1{\DN@{#1}\ifx\next@\empty |
| 146 |
\ifx\undefined\xyPSdictname\xyPSdefaultdict\fi |
| 147 |
\else\gdef\xyPSdictname{#1}\fi |
| 148 |
\def\dumpPSdict@@{\writePSdict@@}% |
| 149 |
\ifx\xydriversselected@@\empty\DN@{\xysetup@@\null@xy@ps}% |
| 150 |
\else \DN@{\installxyps@x}\fi \next@} |
| 151 |
\message{hooks,} |
| 152 |
\gdef\xyPSalternative@#1#2{% |
| 153 |
\expandafter\global\expandafter\let\csname origxy#2@\endcsname=#1% |
| 154 |
\xdef#1{\noexpand\ifPSspecials@ |
| 155 |
\noexpand\expandafter\expandafter\noexpand\csname xyPS#2@\endcsname |
| 156 |
\noexpand\else |
| 157 |
\noexpand\expandafter\expandafter\noexpand\csname origxy#2@\endcsname |
| 158 |
\noexpand\fi}}% |
| 159 |
\xydef@\setupxyPSlevelA@{\xyPStips@% |
| 160 |
\xyPSalternative@{\Tip@@}{Tip}% |
| 161 |
\xyPSalternative@{\Ttip@@}{Ttip}% |
| 162 |
\xyPSalternative@{\Tip@@eu}{Tip@eu}% |
| 163 |
\xyPSalternative@{\Ttip@@eu}{Ttip@eu}% |
| 164 |
\xyPSalternative@{\hook@@}{hook}% |
| 165 |
\xyPSalternative@{\ahook@@}{ahook}% |
| 166 |
\xyPSalternative@{\bhook@@}{bhook}% |
| 167 |
\xyPSalternative@{\aturn@@}{aturn}% |
| 168 |
\xyPSalternative@{\bturn@@}{bturn}% |
| 169 |
\xyPSalternative@{\squiggle@@}{squiggle}% |
| 170 |
\xyPSalternative@{\stopper@@}{stopper}% |
| 171 |
\xyPSalternative@{\line@@}{dash}% |
| 172 |
\xyPSalternative@{\circhar@@}{circhar@}% |
| 173 |
\gdef\setupxyPSlevelA@{\PSincrease@{1}}% |
| 174 |
\global\let\UsePSspecials=\UsePSspecials@x \PSspecials@true} |
| 175 |
\xydef@\setupxyPSlevelB@{% |
| 176 |
\let\xyPSfont@=\empty \let\xyPSsemifont@=\empty |
| 177 |
\xyPSalternative@{\cirrestrict@@}{cirrest}% |
| 178 |
\gdef\setupxyPSlevelB@{\PSincrease@{2}}% |
| 179 |
\setupxyPSlevelA@ } |
| 180 |
\xydef@\setupxyPSlevelC@{% |
| 181 |
\xyPSalternative@{\cirbuild@}{cirbuild}% |
| 182 |
\xyPSalternative@{\CIRfull@}{CIRfull}% |
| 183 |
\xyPSalternative@{\solid@}{solid}% |
| 184 |
\xyPSalternative@{\point@}{point}% |
| 185 |
\xywithoption{curve}{% |
| 186 |
\xyPSalternative@{\splinesolid@}{splinesolid}}% |
| 187 |
\gdef\setupxyPSlevelC@{\PSincrease@{3}}% |
| 188 |
\setupxyPSlevelB@ }% |
| 189 |
\xydef@\setupxyPSlevelD@{% |
| 190 |
\xyPSalternative@{\dash@}{dashed}% |
| 191 |
\xywithoption{curve}{% |
| 192 |
\xyPSalternative@{\splinedashed@}{splinedashed}% |
| 193 |
\xyPSalternative@{\splinedotted@}{splinedotted}}% |
| 194 |
\gdef\setupxyPSlevelD@{}% |
| 195 |
\setupxyPSlevelC@ } |
| 196 |
\xydef@\xyPSchar@#1{% |
| 197 |
\PSmacro@{\the\Direction\space \xyPSfont@ #1}} |
| 198 |
\xydef@\xyPSsemichar@#1{% |
| 199 |
\PSmacro@{\the\Direction\space \xyPSsemifont@ #1}} |
| 200 |
\xydef@\xyPSfont@{f }% |
| 201 |
\xydef@\xyPSsemifont@{fs }% |
| 202 |
\xydef@\xyPStip@{\xyPSchar@{t}}% |
| 203 |
\xydef@\xyPSTip@{\xyPSchar@{/XT tt}}% |
| 204 |
\xydef@\xyPSTtip@{\setboxz@h\bgroup |
| 205 |
\reverseDirection@\line@ \wdz@=\z@ \ht\z@=\z@ \dp\z@=\z@ |
| 206 |
\kern-\L@c \boxz@ \kern\L@c \xyPSchar@{/Xt tT}}% |
| 207 |
\xydef@\xyPSTip@eu@{\xyPSchar@{/ET tt}}% |
| 208 |
\xydef@\xyPSTtip@eu@{\setboxz@h\bgroup |
| 209 |
\reverseDirection@\line@ \wdz@=\z@ \ht\z@=\z@ \dp\z@=\z@ |
| 210 |
\kern-\L@c \boxz@ \kern\L@c \xyPSchar@{/ET tT}}% |
| 211 |
\xydef@\xyPScm@\tip@x{\xyFN@\xyPScm@@}% |
| 212 |
\xydef@\xyPScm@@{% |
| 213 |
\ifx\next\tip@@ \DN@\tip@@{\tip@x\xyPScmtip@}% |
| 214 |
\else\ifx\next\atip@@ \DN@\atip@@{\tip@x\xyPScmatip@}% |
| 215 |
\else\ifx\next\btip@@ \DN@\btip@@{\tip@x\xyPScmbtip@}% |
| 216 |
\else\DN@{}% |
| 217 |
\fi\fi\fi \next@}% |
| 218 |
\xydef@\xyPScmtip@{\xyPSchar@{ct}}% |
| 219 |
\xydef@\xyPScmatip@{\xyPSchar@{ca}}% |
| 220 |
\xydef@\xyPScmbtip@{\xyPSchar@{cb}}% |
| 221 |
\xydef@\xyPStips@{% |
| 222 |
\xyPSalternative@{\atip@@}{atip}% |
| 223 |
\xyPSalternative@{\btip@@}{btip}% |
| 224 |
\xyPSalternative@{\tip@@}{abtip}% |
| 225 |
}% |
| 226 |
\xydef@\xyPSatip@{\xyPSwhichatip@ |
| 227 |
\expandafter\xyPSchar@\expandafter{\xyPSfont@@}}% |
| 228 |
\xydef@\xyPSbtip@{\xyPSwhichbtip@ |
| 229 |
\expandafter\xyPSchar@\expandafter{\xyPSfont@@}}% |
| 230 |
\xydef@\xyPSabtip@{\xyPSwhichabtip@ |
| 231 |
\expandafter\xyPSchar@\expandafter{\xyPSfont@@}}% |
| 232 |
\xydef@\xyPSwhichatip@{\ifx\xyatipfont\xy@@atfont |
| 233 |
\expandafter\xyPSatip@i \else\def\xyPSfont@@{10 /xy A}\fi }% |
| 234 |
\xydef@\xyPSwhichbtip@{\ifx\xybtipfont\xy@@btfont |
| 235 |
\expandafter\xyPSbtip@i \else\def\xyPSfont@@{10 /xy B}\fi }% |
| 236 |
\xydef@\xyPSwhichabtip@{\ifx\xyatipfont\xy@@atfont |
| 237 |
\expandafter\xyPSabtip@i \else\def\xyPSfont@@{10 /xy AB}\fi }% |
| 238 |
\xydef@\xyPSatip@i{% |
| 239 |
\edef\xyPSfont@@{\tipsize@@\space/\tipfamily@@\space A}} |
| 240 |
\xydef@\xyPSbtip@i{% |
| 241 |
\edef\xyPSfont@@{\tipsize@@\space/\tipfamily@@\space B}} |
| 242 |
\xydef@\xyPSabtip@i{% |
| 243 |
\edef\xyPSfont@@{\tipsize@@\space/\tipfamily@@\space AB}} |
| 244 |
\xydef@\xyPSTtips@{% |
| 245 |
\let\Ttip@xy=\Ttip@ |
| 246 |
\let\Ttip@cm=\Ttip@ |
| 247 |
\let\Ttip@eu=\Ttip@ } |
| 248 |
\xydef@\xyPShook@{\xyPSchar@{h}}% |
| 249 |
\xydef@\xyPSahook@{\xyPSchar@{ha}}% |
| 250 |
\xydef@\xyPSbhook@{\xyPSchar@{hb}}% |
| 251 |
\xydef@\xyPSaturn@{\xyPSchar@{ta}}% |
| 252 |
\xydef@\xyPSbturn@{\xyPSchar@{tb}}% |
| 253 |
\xydef@\xyPSsquiggle@{\xyPSchar@{g}}% |
| 254 |
\xydef@\xyPSstopper@{\xyPSchar@{st}}% |
| 255 |
\xydef@\xyPSfliptrue@{\DN@{\xyPSsemichar@{T d}}} |
| 256 |
\xydef@\xyPSdash@{% |
| 257 |
\DN@{\xyPSsemichar@{F d}}% |
| 258 |
\ifnum\SemiDirectionChar=31 |
| 259 |
\ifdim\d@Y<\z@ |
| 260 |
\ifdim\d@X<\z@ \ifx\xyPSsemifont@\empty\xyPSfliptrue@\fi\fi |
| 261 |
\else |
| 262 |
\ifdim\z@>\d@X |
| 263 |
\ifx\xyPSsemifont@\empty\else\xyPSfliptrue@\fi |
| 264 |
\else\xyPSfliptrue@\fi |
| 265 |
\fi\fi |
| 266 |
\next@ \setboxz@h{\origxydash@}\kern\wdz@ |
| 267 |
\setbox\z@=\box\voidb@x } |
| 268 |
\xydef@\xyPScirchar@#1{\count@=#1\edef\tmp@{\the\count@}% |
| 269 |
\ifcase#1% |
| 270 |
\xyPScirchar@@@{-180}{-135}{\tmp@}\dimen@=\partroottwo\R@ |
| 271 |
\or\xyPScirchar@@@{-135}{-90}{\tmp@}\dimen@=\halfroottwo\R@ |
| 272 |
\or\xyPScirchar@@@{-90}{-45}{\tmp@}\dimen@=\halfroottwo\R@ |
| 273 |
\or\xyPScirchar@@@{-45}0{\tmp@}\dimen@=\partroottwo\R@ |
| 274 |
\or\xyPScirchar@@@0{45}{\tmp@}\dimen@=\partroottwo\R@ |
| 275 |
\or\xyPScirchar@@@{45}{90}{\tmp@}\dimen@=\halfroottwo\R@ |
| 276 |
\or\xyPScirchar@@@{90}{135}{\tmp@}\dimen@=\halfroottwo\R@ |
| 277 |
\or\xyPScirchar@@@{135}{180}{\tmp@}\dimen@=\partroottwo\R@ |
| 278 |
\fi} |
| 279 |
\xydef@\xyPScirrest@{\relax}% |
| 280 |
\xydef@\xyPScirchar@@#1{\relax\count@=#1\edef\tmp@{\the\count@}% |
| 281 |
\expandafter\xyPScirchar@@@\ifcase#1% |
| 282 |
{-180}{-135}{\tmp@}\kern\partroottwo\R@ |
| 283 |
\or{-135}{-90}{\tmp@}\kern\halfroottwo\R@ |
| 284 |
\or{-90}{-45}{\tmp@}\kern\halfroottwo\R@ |
| 285 |
\or{-45}0{\tmp@}\kern\partroottwo\R@ |
| 286 |
\or 0{45}{\tmp@}\kern\partroottwo\R@ |
| 287 |
\or{45}{90}{\tmp@}\kern\halfroottwo\R@ |
| 288 |
\or{90}{135}{\tmp@}\kern\halfroottwo\R@ |
| 289 |
\or{135}{180}{\tmp@}\kern\partroottwo\R@ |
| 290 |
\fi} |
| 291 |
\xydef@\xyPScirchar@@@#1#2#3{\edef\tmp@{#1\space#2\space |
| 292 |
\expandafter\removePT@\the\R@\space #3\space c}% |
| 293 |
\PSmacro@{\tmp@}} |
| 294 |
\xydef@\xyPScirc@#1#2{\edef\tmp@{\expandafter\removePT@\the\R@}% |
| 295 |
\PSmacro@{\tmp@\space #1 #2 o}} |
| 296 |
\xydef@\xyPSCIRfull@{\setboxz@h{\kern\R@\xyPScirc@0{360}\kern\R@}% |
| 297 |
\wd\z@=\z@ \ht\z@=\R@ \dp\z@=\R@ \boxz@}% |
| 298 |
\xydef@\xyPScirbuild@{{% |
| 299 |
\count@=\CIRlo@@ \count@@=\CIRhi@@ |
| 300 |
\multiply\count@ by45 \advance\count@-180 \relax |
| 301 |
\multiply\count@@ by45 \advance\count@@-180 \relax |
| 302 |
\def\tmp@{}% |
| 303 |
\ifx\CIRtest@@\CIRtest@inside |
| 304 |
\ifnum\count@@>\count@ |
| 305 |
\edef\tmp@{\noexpand\xyPScirc@{\the\count@}{\the\count@@}}\fi |
| 306 |
\else\ifx\CIRtest@@\CIRtest@outside |
| 307 |
\ifnum\count@>-180 \advance\count@ by360 \relax |
| 308 |
\edef\tmp@{\noexpand\xyPScirc@{\the\count@@}{\the\count@}}% |
| 309 |
\else |
| 310 |
\ifnum\count@@<180 \relax |
| 311 |
\edef\tmp@{\noexpand\xyPScirc@{\the\count@@}{180}}% |
| 312 |
\fi\fi |
| 313 |
\fi\fi |
| 314 |
\kern\R@\tmp@\kern\R@}} |
| 315 |
\xydef@\xyPSstraight@#1{\setupDirection@ |
| 316 |
\edef\Creset@@{\cfromthec@ \pfromthep@ \DirectionfromtheDirection@}% |
| 317 |
\DN@##1##2{\def\checkoverlap@@{% |
| 318 |
\ifdim##1\X@p>##1\X@c \let\next@=\relax \fi |
| 319 |
\ifdim##2\Y@p>##2\Y@c \let\next@=\relax \fi}}% |
| 320 |
\edef\nextii@{{\sd@X}{\sd@Y}}\expandafter\next@\nextii@ |
| 321 |
\noCshavep@@ |
| 322 |
\edef\Cshavep@@{\pfromthep@ \noexpand\resetDirection@}% |
| 323 |
\noCshavec@@ |
| 324 |
\edef\Cshavec@@{\cfromthec@ \noexpand\resetDirection@}% |
| 325 |
\ifHidden@\else |
| 326 |
\ifdim\Y@c>\Y@max \Y@max=\Y@c \fi \ifdim\Y@p>\Y@max \Y@max=\Y@p \fi |
| 327 |
\ifdim\Y@c<\Y@min \Y@min=\Y@c \fi \ifdim\Y@p<\Y@min \Y@min=\Y@p \fi |
| 328 |
\ifdim\X@c>\X@max \X@max=\X@c \fi \ifdim\X@p>\X@max \X@max=\X@p \fi |
| 329 |
\ifdim\X@c<\X@min \X@min=\X@c \fi \ifdim\X@p<\X@min \X@min=\X@p \fi \fi |
| 330 |
\ifInvisible@\let\next@=\relax \else |
| 331 |
\DN@{\setboxz@h{\kern\X@c \raise\Y@c\hbox{#1}}% |
| 332 |
\ht\z@=\z@ \wd\z@=\z@ \dp\z@=\z@ {\xykillstyles@\Drop@@}}% |
| 333 |
\fi |
| 334 |
\checkoverlap@@ |
| 335 |
\ifdim\d@X=\z@ \ifdim\d@Y=\z@ \DN@{\relax}\fi\fi \next@ |
| 336 |
\def\Cslidep@@{\noCslidep@@}\def\Cslidec@@{\noCslidec@@}% |
| 337 |
\def\Calong@@{\noCalong@@}\Creset@@ } |
| 338 |
\xylet@\xykillstyles@=\relax |
| 339 |
\xydef@\xyPSsolid@{\straight@\xyPSsolidSpread@}% |
| 340 |
\xydef@\xyPSsolidSpread@{\xyPSspread@{solid}{l}@@}% |
| 341 |
\xydef@\xyPSdottedSpread@{\xyPSspread@{dotted}{dt}@@}% |
| 342 |
\xydef@\xyPSdashed@{\line@ \def\Connect@@{\straight@\xyPSdashedSpread@}} |
| 343 |
\xydef@\xyPSdashedSpread@{\xyPSspread@{dashed}{dd}@@}% |
| 344 |
\xydef@\xyPSspread@#1#2@@#3\repeat@{\edef\tmp@{% |
| 345 |
\expandafter\removePT@\the\d@X\space\expandafter\removePT@\the\d@Y}% |
| 346 |
\setboxz@h{\kern\X@c \raise\Y@c\hbox{% |
| 347 |
\PSmessage{#1 line:}\PSmacro@{\tmp@\space #2}}}% |
| 348 |
\ht\z@=\z@ \wd\z@=\z@ \dp\z@=\z@ \boxz@} |
| 349 |
\xydef@\xyPSpoint@{\xyPSzerodot@\egroup |
| 350 |
\Invisible@false \Hidden@false \def\Leftness@{.5}\def\U@pness@{.5}\ctipEdge@ |
| 351 |
\def\Drop@@{\styledboxz@}\def\Connect@@{\straight@\xyPSdottedSpread@}} |
| 352 |
\xydef@\xyPSzerodot@{\PSmessage{dot:}\PSmacro@{p}} |
| 353 |
\xydef@\xyPScubic@#1{\readsplineparams@ |
| 354 |
\PSmessage{CUBIC:}% |
| 355 |
\DN@{#1}\ifx\next@\empty\PSmacro@{mark \cubicinfo@\space bz}% |
| 356 |
\else\PSmacro@{mark \cubicinfo@\space b#1}\fi} |
| 357 |
\xydef@\xyPSsquine@#1{\readsplineparams@ |
| 358 |
\PSmessage{SQUINE:}% |
| 359 |
\DN@{#1}\ifx\next@\empty\PSmacro@{mark \squineinfo@\space q#1}% |
| 360 |
\else\PSmacro@{mark \squineinfo@\space q#1}\fi} |
| 361 |
\xydef@\xyPSsplinesolid@{\ifx\splineinfo@\squineinfo@ |
| 362 |
\expandafter\xyPSsquine@\else\expandafter\xyPScubic@\fi{}} |
| 363 |
\xydef@\xyPSsplinedashed@{\ifx\splineinfo@\squineinfo@ |
| 364 |
\expandafter\xyPSsquine@\else\expandafter\xyPScubic@\fi{d}} |
| 365 |
\xydef@\xyPSsplinedotted@{\ifx\splineinfo@\squineinfo@ |
| 366 |
\expandafter\xyPSsquine@\else\expandafter\xyPScubic@\fi{t}} |
| 367 |
\xyendinput |