| 1 |
%% xy2cell.tex from $Id: xy2cell.doc,v 3.7 2011/03/14 20:14:00 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``2-cell'' feature. |
| 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 macro package; if not, see http://www.gnu.org/licenses/. |
| 22 |
%% |
| 23 |
\ifx\xyloaded\undefined \input xy \fi |
| 24 |
\xyprovide{2cell}{Two-cell feature}{\stripRCS$Revision: 3.7 $}% |
| 25 |
{Ross Moore}{[email protected]}% |
| 26 |
{Mathematics Department, Macquarie University, NSW~2109, Australia} |
| 27 |
\xyrequire{curve}\xycatcodes |
| 28 |
\message{two-cells,} |
| 29 |
\xydef@\UseTwocells{\definesupermorphism{twocell}{% |
| 30 |
\xy@{start of 2-cell}{\begingroup}% |
| 31 |
\twocell@}} |
| 32 |
\xydef@\UseHalfTwocells{% |
| 33 |
\definesupermorphism{uppertwocell}{% |
| 34 |
\xy@{start of 2-cell}{\begingroup}% |
| 35 |
\uppertwocell@}% |
| 36 |
\definesupermorphism{lowertwocell}{% |
| 37 |
\xy@{start of 2-cell}{\begingroup}% |
| 38 |
\lowertwocell@}} |
| 39 |
\xydef@\UseCompositeMaps{\definesupermorphism{compositemap}{% |
| 40 |
\xy@{start composite-map}{\begingroup}% |
| 41 |
\compositemap@}} |
| 42 |
\xydef@\UseAllTwocells{% |
| 43 |
\UseTwocells \UseHalfTwocells \UseCompositeMaps } |
| 44 |
\xydef@\supermorphism#1[#2]#3{\def\afterMORPHISM{[#2]#3}#1} |
| 45 |
\xydef@\afterMORPHISM{} |
| 46 |
\xydef@\definesupermorphism#1#2{% |
| 47 |
\expandafter\def\csname x#1\endcsname{\supermorphism{#2}}% |
| 48 |
\expandafter\def\csname u#1\endcsname{\supermorphism{#2}[-1,0]{}}% |
| 49 |
\expandafter\def\csname d#1\endcsname{\supermorphism{#2}[1,0]{}}% |
| 50 |
\expandafter\def\csname l#1\endcsname{\supermorphism{#2}[0,-1]{}}% |
| 51 |
\expandafter\def\csname r#1\endcsname{\supermorphism{#2}[0,1]{}}% |
| 52 |
\expandafter\def\csname uu#1\endcsname{\supermorphism{#2}[-2,0]{}}% |
| 53 |
\expandafter\def\csname dd#1\endcsname{\supermorphism{#2}[2,0]{}}% |
| 54 |
\expandafter\def\csname ll#1\endcsname{\supermorphism{#2}[0,-2]{}}% |
| 55 |
\expandafter\def\csname rr#1\endcsname{\supermorphism{#2}[0,2]{}}% |
| 56 |
\expandafter\def\csname ur#1\endcsname{\supermorphism{#2}[-1,1]{}}% |
| 57 |
\expandafter\def\csname ul#1\endcsname{\supermorphism{#2}[-1,-1]{}}% |
| 58 |
\expandafter\def\csname dr#1\endcsname{\supermorphism{#2}[1,1]{}}% |
| 59 |
\expandafter\def\csname dl#1\endcsname{\supermorphism{#2}[1,-1]{}}% |
| 60 |
\expandafter\def\csname uul#1\endcsname{\supermorphism{#2}[-2,-1]{}}% |
| 61 |
\expandafter\def\csname uur#1\endcsname{\supermorphism{#2}[-2,1]{}}% |
| 62 |
\expandafter\def\csname ull#1\endcsname{\supermorphism{#2}[-1,-2]{}}% |
| 63 |
\expandafter\def\csname urr#1\endcsname{\supermorphism{#2}[-1,2]{}}% |
| 64 |
\expandafter\def\csname ddl#1\endcsname{\supermorphism{#2}[2,-1]{}}% |
| 65 |
\expandafter\def\csname ddr#1\endcsname{\supermorphism{#2}[2,1]{}}% |
| 66 |
\expandafter\def\csname dll#1\endcsname{\supermorphism{#2}[1,-2]{}}% |
| 67 |
\expandafter\def\csname drr#1\endcsname{\supermorphism{#2}[1,2]{}}% |
| 68 |
\expandafter\def\csname uull#1\endcsname{\supermorphism{#2}[-2,-2]{}}% |
| 69 |
\expandafter\def\csname uurr#1\endcsname{\supermorphism{#2}[-2,2]{}}% |
| 70 |
\expandafter\def\csname ddll#1\endcsname{\supermorphism{#2}[2,-2]{}}% |
| 71 |
\expandafter\def\csname ddrr#1\endcsname{\supermorphism{#2}[2,2]{}}} |
| 72 |
\newdir{=>}{!/5pt/\dir{=}!/2.5pt/\dir{=}*!/-5pt/\dir2{>}} |
| 73 |
\xydef@\arrowobject#1{\def\Arrowobject@{#1}} |
| 74 |
\xydef@\Arrowobject@{\dir{=>}} |
| 75 |
\xydef@\twocell@{\toks6={3.5}\toks5={@}\toks7={@}\toks8={@}\toks3={f}% |
| 76 |
\tw@cell@ } |
| 77 |
\xydef@\uppertwocell@{\toks6={7}\toks5={@}\toks7={@}\toks8={@}\toks3={o}% |
| 78 |
\tw@cell@ } |
| 79 |
\xydef@\lowertwocell@{\toks6={-7}\toks5={@}\toks7={@}\toks8={@}\toks3={o}% |
| 80 |
\tw@cell@ } |
| 81 |
\xydef@\compositemap@{\toks6={3.5}\toks5={@}\toks7={@}\toks8={@}\toks3={t}% |
| 82 |
\tw@cell@ } |
| 83 |
\xydef@\tw@cell@@@{% |
| 84 |
\expandafter\ifx\the\toks6\omit\relax\toks6={}\else |
| 85 |
\expandafter\ifx\expandafter @\the\toks7\relax\expandafter\dimen@\the\toks6\p@ |
| 86 |
\expandafter\if\the\toks3t\relax\dimen@=\p@ |
| 87 |
\else\expandafter\if\the\toks3o\divide\dimen@\tw@ |
| 88 |
\ifdim\dimen@<\z@ \dimen@ii-\p@ \advance\dimen@ii\dimen@ |
| 89 |
\dimen@=\dimen@ii \else \dimen@\p@ \fi |
| 90 |
\else\dimen@\p@ |
| 91 |
\fi\fi |
| 92 |
\edef\tmp@{\expandafter\removePT@\the\dimen@}% |
| 93 |
\expandafter\toks\expandafter7\expandafter{\tmp@}\fi |
| 94 |
\expandafter\ifx\expandafter @\the\toks8\relax |
| 95 |
\expandafter\dimen@\the\toks6\p@ |
| 96 |
\expandafter\if\the\toks3t\relax\dimen@\p@ |
| 97 |
\else\expandafter\if\the\toks3o\divide\dimen@\tw@ |
| 98 |
\ifdim\dimen@<\z@ \dimen@ii-\p@ \advance\dimen@ii\dimen@ |
| 99 |
\dimen@=\dimen@ii \else \dimen@\p@ \fi |
| 100 |
\else\dimen@\p@ |
| 101 |
\fi\fi |
| 102 |
\edef\tmp@{\expandafter\removePT@\the\dimen@}% |
| 103 |
\expandafter\toks\expandafter8\expandafter{\tmp@}\fi |
| 104 |
\expandafter\ifx\expandafter @\the\toks5\relax |
| 105 |
\expandafter\dimen@\the\toks6\p@ |
| 106 |
\expandafter\if\the\toks3o\divide\dimen@ by-4\relax |
| 107 |
\else\dimen@\z@\fi |
| 108 |
\edef\tmp@{\expandafter\removePT@\the\dimen@}% |
| 109 |
\expandafter\toks\expandafter5\expandafter{\tmp@}\fi |
| 110 |
\fi |
| 111 |
\twocellmod@ |
| 112 |
\expandafter\if\the\toks3t\relax |
| 113 |
\edef\tmp@{.[\noexpand\twocell@@@@{\the\toks6}{\the\toks5}% |
| 114 |
{\the\toks7}{\the\toks8}{\the\toks3}% |
| 115 |
{\the\toks2}{\the\toks1}{\the\toks@}{\the\toks4}!!!].\afterMORPHISM}% |
| 116 |
\else |
| 117 |
\edef\tmp@{.[\noexpand\twocell@@@@{\the\toks6}{\the\toks5}% |
| 118 |
{\the\toks7}{\the\toks8}{\the\toks3}% |
| 119 |
{\the\toks1}{\the\toks2}{\the\toks@}{\the\toks4}!!!].\afterMORPHISM}% |
| 120 |
\fi |
| 121 |
\toks@={\endgroup}% |
| 122 |
\expandafter\def\expandafter\next@\expandafter{% |
| 123 |
\expandafter\def\expandafter\twocellhead@\expandafter{\twocellhead@}}% |
| 124 |
\expandafter\addtotoks@\expandafter{\next@}% |
| 125 |
\expandafter\def\expandafter\next@\expandafter{% |
| 126 |
\expandafter\def\expandafter\twocelltail@\expandafter{\twocelltail@}}% |
| 127 |
\expandafter\addtotoks@\expandafter{\next@}% |
| 128 |
\expandafter\addtotoks@\expandafter{\expandafter\twocellPATH\tmp@}% |
| 129 |
\the\toks@ }% |
| 130 |
\xydef@\twocellstyle{\scriptstyle} |
| 131 |
\xydef@\droptwocelllabel@#1{\xyFN@\droptwocelllabel@@#1@!} |
| 132 |
\xydef@\droptwocelllabel@@{% |
| 133 |
\ifx*\next\DN@*{\droptwocelldrop@}% |
| 134 |
\else\DN@##1@!{\droptwocelltext@{##1}}% |
| 135 |
\fi \next@ } |
| 136 |
{\xyuncatcodes \gdef\next#1{\drop+!C{\twocellstyle #1}}} |
| 137 |
\xylet@\droptwocelltext@=\next |
| 138 |
\xydef@\droptwocelldrop@#1@!{\bgroup \let\xy@=\oxy@ |
| 139 |
\let\objectstyle=\twocellstyle \drop#1{}% |
| 140 |
\edef\tmp@{\egroup \X@min=\the\X@min \X@max=\the\X@max |
| 141 |
\Y@min=\the\Y@min \Y@max=\the\Y@max}\tmp@ } |
| 142 |
\xydef@\twocellhead#1{\def\twocellhead@{#1}} |
| 143 |
\xydef@\twocelltail#1{\def\twocelltail@{#1}} |
| 144 |
\xydef@\twocellhead@{\dir{>}} |
| 145 |
\xydef@\twocelltail@{} |
| 146 |
\xywarnifdefined\twocellmod@ |
| 147 |
\xydef@\tw@cell@{\begingroup |
| 148 |
\toks@={{}}\toks1={{}}\toks2={{}}\toks4={{}}% |
| 149 |
\def\twocellmod@{}\xyFN@\tw@@cell@}% |
| 150 |
\xydef@\tw@@cell@{% |
| 151 |
\ifx\space@\next\expandafter\DN@\space{\xyFN@\tw@@cell@}% |
| 152 |
\else\ifx\bgroup\next \let\next@=\toks@\afterassignment\tw@@cell@@ |
| 153 |
\else\ifx ^\next \DN@^##1{\toks@={##1}\nudgepos@71\tw@@cell@}% |
| 154 |
\else\ifx _\next \DN@_##1{\toks@={##1}\nudgepos@82\tw@@cell@}% |
| 155 |
\else\addLT@\ifx \next \addGT@{\addLT@\DN@##1}{% |
| 156 |
\toks6={##1}\ifx\omit##1\relax\toks3={t}\toks5={0}\fi\xyFN@\tw@@cell@}% |
| 157 |
\else\ifx\omit\next \DN@\omit{\omitarrows@\xyFN@\tw@@cell@}% |
| 158 |
\else\ifx~\next \DN@~{\xyFN@\whichCurveObject@}% |
| 159 |
\else \DN@{\xyFN@\tw@cell@@\empty @}% |
| 160 |
\fi\fi\fi\fi\fi\fi\fi% |
| 161 |
\next@ } |
| 162 |
\xydef@\whichCurveObject@{% |
| 163 |
\ifx\space@\next\expandafter\DN@\space{\xyFN@\whichCurveObject@}% |
| 164 |
\else\ifx\next^\DN@^##1{\xy@{~^{##1}}{\uppercurveobject{##1}}\xyFN@\tw@@cell@}% |
| 165 |
\else\ifx\next_\DN@_##1{\xy@{~_{##1}}{\lowercurveobject{##1}}\xyFN@\tw@@cell@}% |
| 166 |
\else\addRQ@\ifx\next \addRQ@\DN@##1{% |
| 167 |
\xy@{~'{##1}}{\def\twocellhead@{##1}}\xyFN@\tw@@cell@}% |
| 168 |
\else\addLQ@\ifx\next \addLQ@\DN@##1{% |
| 169 |
\xy@{~`{##1}}{\def\twocelltail@{##1}}\xyFN@\tw@@cell@}% |
| 170 |
\else\ifx!\next \DN@!{\xyFN@\checkmodmap@}% |
| 171 |
\else\ifx\next\bgroup\DN@##1{\xy@{~{##1}}{\curveobject{##1}}\xyFN@\tw@@cell@}% |
| 172 |
\else\DN@##1{\xy@{~##1}{\curveobject{##1}}\xyFN@\tw@@cell@}% |
| 173 |
\fi\fi\fi\fi \fi\fi\fi |
| 174 |
\next@ } |
| 175 |
\xydef@\checkmodmap@{% |
| 176 |
\ifx\space@\next\expandafter\DN@\space{\xyFN@\checkmodmap@}% |
| 177 |
\else \def\twocellmod@{\modmap@}% |
| 178 |
\ifx\next!\DN@!##1{% |
| 179 |
\xy@{~!!{##1}}{\def\modmapobject@{##1}}\xyFN@\tw@@cell@}% |
| 180 |
\else \DN@{\xyFN@\tw@@cell@}\fi |
| 181 |
\fi \next@ } |
| 182 |
\xydef@\omitarrows@{\toks5={0}\toks6={}\toks7={0}\toks8={0}} |
| 183 |
\xydef@\tw@@cell@@{\expandafter\xyFN@\expandafter\tw@cell@@\the\toks@ @} |
| 184 |
\xydef@\tw@cell@@{\ifx \space@\next\expandafter\DN@\space{\xyFN@\tw@cell@@}% |
| 185 |
\else\ifx ^\next |
| 186 |
\DN@^##1@{\toks@={##1}\toks4={^}\nudgepos@50\tw@cell@@@}% |
| 187 |
\else\addEQ@\ifx\next |
| 188 |
\addEQ@\DN@##1@{\toks@={##1}\toks4={=}\nudgepos@50\tw@cell@@@}% |
| 189 |
\else\ifx _\next |
| 190 |
\DN@_##1@{\toks@={##1}\toks4={_}\nudgepos@50\tw@cell@@@}% |
| 191 |
\else\addLT@\ifx \next |
| 192 |
\DN@##1@{\toks@={##1}\toks4={_}\nudgepos@50\tw@cell@@@}% |
| 193 |
\else\ifx\omit\next \DN@\omit##1@{\toks4={@}\toks@={##1}\tw@cell@@@}% |
| 194 |
\else\addRQ@\ifx\next \addRQ@\DN@##1@{\toks4={@}\toks3={/}\toks@={##1}% |
| 195 |
\nudgepos@50\tw@cell@@@}% |
| 196 |
\else\addLQ@\ifx\next \addLQ@\DN@##1@{\toks4={@}\toks3={b}\toks@={##1}% |
| 197 |
\nudgepos@50\tw@cell@@@}% |
| 198 |
\else\ifx"\next \DN@"##1@{\toks4={@}\toks3={B}\toks@={##1}% |
| 199 |
\nudgepos@50\tw@cell@@@}% |
| 200 |
\else\ifx!\next \DN@!##1@{\toks4={@}\toks3={@}\toks@={##1}% |
| 201 |
\nudgepos@50\tw@cell@@@}% |
| 202 |
\else\ifx\next\empty\DN@##1@{\toks@={{}}\toks4={_}\tw@cell@@@}% |
| 203 |
\else\DN@##1@{\toks@={##1}\toks4={_}\tw@cell@@@}% |
| 204 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi \next@ } |
| 205 |
\xywarnifdefined\whichnudge |
| 206 |
\xywarnifdefined\whichinfo |
| 207 |
\xywarnifdefined\afternudge |
| 208 |
\xydef@\nudgepos@#1#2#3{\def\whichnudge{\toks#1}\def\whichinfo{\toks#2}% |
| 209 |
\def\afternudge{#3}\expandafter\xyFN@\expandafter\nudgepos@@\the\toks@ @} |
| 210 |
\xydef@\nudgepos@@{\ifx \space@\next\expandafter\DN@\space{\xyFN@\nudgepos@}% |
| 211 |
\else\addLT@\ifx \next |
| 212 |
\addGT@{\addLT@\DN@##1}##2@{% |
| 213 |
\ifx\omit##1\relax\whichnudge={0}\whichinfo={}% |
| 214 |
\else\whichnudge={##1}\whichinfo={##2}\fi\xyFN@\afternudge}% |
| 215 |
\else \DN@##1@{\whichinfo={##1}\xyFN@\afternudge}% |
| 216 |
\fi\fi \next@ } |
| 217 |
\xydef@\modmap@{% |
| 218 |
\expandafter\ifx\the\toks4@\toks4={!}% |
| 219 |
\else\expandafter\ifx\the\toks4=\toks4={H}% |
| 220 |
\else\expandafter\ifx\the\toks4^\toks4={A}% |
| 221 |
\else\expandafter\ifx\the\toks4_\toks4={V}\fi\fi\fi\fi |
| 222 |
\expandafter\DN@\expandafter{\the\toks6}% |
| 223 |
\ifx\next@\empty\relax\else\expandafter\moddefs@\fi} |
| 224 |
\xydef@\moddefs@{% |
| 225 |
\expandafter\dimen@\the\toks6\p@ |
| 226 |
\ifdim\dimen@=\z@\relax |
| 227 |
\expandafter\dimen@\the\toks7\p@ |
| 228 |
\ifdim\dimen@<\z@\advance\[email protected]\p@\else\advance\[email protected]\p@\fi |
| 229 |
\edef\tmp@{\noexpand\toks7={\expandafter\removePT@\the\dimen@}}\tmp@ |
| 230 |
\expandafter\dimen@\the\toks8\p@ |
| 231 |
\ifdim\dimen@<\z@\advance\[email protected]\p@\else\advance\[email protected]\p@\fi |
| 232 |
\expandafter\ifx\the\toks3t\advance\dimen@-1\p@\fi |
| 233 |
\edef\tmp@{\noexpand\toks8={\expandafter\removePT@\the\dimen@}}\tmp@ |
| 234 |
\else |
| 235 |
\ifdim\dimen@<\z@\advance\[email protected]\p@\else\advance\[email protected]\p@\fi |
| 236 |
\edef\tmp@{\noexpand\toks6={\expandafter\removePT@\the\dimen@}}\tmp@ |
| 237 |
\expandafter\dimen@\the\toks7\p@ |
| 238 |
\ifdim\dimen@<\z@\advance\[email protected]\p@\else\advance\[email protected]\p@\fi |
| 239 |
\expandafter\ifx\the\toks3t\advance\dimen@-2\p@\fi |
| 240 |
\edef\tmp@{\noexpand\toks7={\expandafter\removePT@\the\dimen@}}\tmp@ |
| 241 |
\expandafter\dimen@\the\toks8\p@ |
| 242 |
\ifdim\dimen@<\z@\advance\[email protected]\p@\else\advance\[email protected]\p@\fi |
| 243 |
\expandafter\ifx\the\toks3t\advance\dimen@-2\p@\fi |
| 244 |
\edef\tmp@{\noexpand\toks8={\expandafter\removePT@\the\dimen@}}\tmp@ |
| 245 |
\fi }% |
| 246 |
\xydef@\modmapobject#1{\def\modmapobject@{#1}} |
| 247 |
\xydef@\modmapobject@{\dir{|}} |
| 248 |
\xydef@\@modmapobject@{{\if\@mod@\relax\expandafter\empty |
| 249 |
\else\expandafter\modmapobject@\fi}} |
| 250 |
\xydef@\curveobject#1{\def\ucurveObject@{~*#1}\def\dcurveObject@{~*#1}} |
| 251 |
\xydef@\uppercurveobject#1{\def\ucurveObject@{~*#1}} |
| 252 |
\xydef@\lowercurveobject#1{\def\dcurveObject@{~*#1}} |
| 253 |
\xydef@\ucurveObject@{} |
| 254 |
\xydef@\dcurveObject@{} |
| 255 |
\xydef@\savetwocellobjects{% |
| 256 |
\xy@{twocell objects}{% |
| 257 |
\expandafter\uppercurveobject\expandafter{\ucurveObject@}% |
| 258 |
\expandafter\lowercurveobject\expandafter{\dcurveObject@}% |
| 259 |
\expandafter\modmapobject\expandafter{\modmapobject@}% |
| 260 |
\expandafter\twocellhead\expandafter{\twocellhead@}% |
| 261 |
\expandafter\twocelltail\expandafter{\twocelltail@}% |
| 262 |
\expandafter\arrowobject\expandafter{Arrowobject@}% |
| 263 |
}} |
| 264 |
\xydef@\twocell@path.[#1].{% |
| 265 |
\expandafter\ifx\csname Q@@c\endcsname\relax |
| 266 |
\DN@{\enter@{\cfromthec@ \pfromthep@ \basefromthebase@}% |
| 267 |
\xy@{}{\expandafter\edef\csname Q@@\endcsname{\cfromthec@}}% |
| 268 |
\afterPOS{\xy@{}% |
| 269 |
{\expandafter\edef\csname Q@@c\endcsname{\cfromthec@}}% |
| 270 |
\xy@{}% |
| 271 |
{\cfromid@{@}\expandafter\edef\csname Q@@p\endcsname{\cfromthec@}}% |
| 272 |
\xy@{twocell #1}{#1}\leave@\aftertwoCELL};p,}% |
| 273 |
\else |
| 274 |
\DN@{\enter@{\cfromthec@ \pfromthep@ \basefromthebase@}% |
| 275 |
\xy@{twocell #1}{#1}\leave@\aftertwoCELL}% |
| 276 |
\fi \next@ } |
| 277 |
\xydef@\twocellpath.[#1].{% |
| 278 |
\expandafter\edef\csname Q@@p\endcsname{\cfromthec@}% |
| 279 |
\xy@{}{\enter@{\pfromthep@}}% |
| 280 |
\xy@{}{\enter@{\cfromthec@ \pfromthep@ \basefromthebase@}% |
| 281 |
\enter@{\pfromthec@}}% |
| 282 |
\afterPOS{\xy@{}{\leave@\setupDirection@}#1\restore\restore |
| 283 |
\xy@{end of 2-cell}\xysaveMinMax@ }}% |
| 284 |
\xydef@\xysaveMinMax@{\edef\tmp@{\endgroup |
| 285 |
\noexpand\ifdim\X@max<\the\X@max \X@max=\the\X@max\noexpand\fi |
| 286 |
\noexpand\ifdim\X@min>\the\X@min \X@min=\the\X@min\noexpand\fi |
| 287 |
\noexpand\ifdim\Y@max<\the\Y@max \Y@max=\the\Y@max\noexpand\fi |
| 288 |
\noexpand\ifdim\Y@min>\the\Y@min \Y@min=\the\Y@min\noexpand\fi |
| 289 |
}\tmp@ } |
| 290 |
\xylet@\twocellPATH=\twocellpath |
| 291 |
\xydef@\aftertwo@CELL{\let\twocellPATH=\twocellpath \def\aftertwoCELL{}} |
| 292 |
\xydef@\aftertwoCELL{} |
| 293 |
\xydef@\twocell@@@@#1!!!{\xy@{twocell #1}{\twocell@@#1!!!}} |
| 294 |
\let\xystatus=\xystatus@ |
| 295 |
\xydef@\twocell{\hbox\bgroup\@twocell} |
| 296 |
\xydef@\uppertwocell{\hbox\bgroup\@uppertwocell} |
| 297 |
\xydef@\lowertwocell{\hbox\bgroup\@lowertwocell} |
| 298 |
\xydef@\compositemap{\hbox\bgroup\@compositemap} |
| 299 |
\xydef@\twocelll#1#{\hbox\bgroup\xy@\save\save@\@twocelll{#1}} |
| 300 |
\xydef@\@twocelll#1#2{% |
| 301 |
\afterPOS{\@twocelll@\xyFN@\twocell@#1{#2}}} |
| 302 |
\xydef@\uppertwocelll#1#{\hbox\bgroup\xy@\save\save@\@uppertwocelll{#1}} |
| 303 |
\xydef@\@uppertwocelll#1#2{% |
| 304 |
\afterPOS{\@twocelll@\xyFN@\uppertwocell@#1{#2}}} |
| 305 |
\xydef@\lowertwocelll#1#{\hbox\bgroup\xy@\save\save@\@lowertwocelll{#1}} |
| 306 |
\xydef@\@lowertwocelll#1#2{% |
| 307 |
\afterPOS{\@twocelll@\xyFN@\lowertwocell@#1{#2}}} |
| 308 |
\xydef@\compositemapp#1#{\hbox\bgroup\xy@\save\save@\@compositemapp{#1}} |
| 309 |
\xydef@\@compositemapp#1#2{% |
| 310 |
\afterPOS{\@twocelll@\xyFN@\compositemap@#1{#2}}} |
| 311 |
\xydef@\@twocelll@{% |
| 312 |
\expandafter\edef\csname Q@@c\endcsname{\cfromthec@}\swap@ |
| 313 |
\expandafter\edef\csname Q@@p\endcsname{\cfromthec@}\swap@ |
| 314 |
\let\twocellPATH=\twocell@path |
| 315 |
\def\aftertwoCELL{\twocell@DONE \xy@\restore \leave@ |
| 316 |
}} |
| 317 |
\xydef@\@twocell#1{\DN@{\@twocell@\twocell@}\xyFN@\next@[#1]} |
| 318 |
\xydef@\@uppertwocell#1{\DN@{\@twocell@\uppertwocell@}\xyFN@\next@[#1]} |
| 319 |
\xydef@\@lowertwocell#1{\DN@{\@twocell@\lowertwocell@}\xyFN@\next@[#1]} |
| 320 |
\xydef@\@compositemap#1{\DN@{\@twocell@\compositemap@}\xyFN@\next@[#1]} |
| 321 |
\xydef@\@twocell@#1{\ifx\next[\DN@[{\toks@={#1}\xyFN@\@@twocell@}% |
| 322 |
\else\DN@{#1{}}\fi |
| 323 |
%% |
| 324 |
\expandafter\edef\csname Q@@c\endcsname{\cfromthec@}\swap@ |
| 325 |
\expandafter\edef\csname Q@@p\endcsname{\cfromthec@}\swap@ |
| 326 |
\let\twocellPATH=\twocell@path |
| 327 |
\def\aftertwoCELL{\twocell@DONE}\next@} |
| 328 |
\xydef@\@@twocell@{\ifx\next\bgroup\DN@##1]{\the\toks@{##1}}% |
| 329 |
\else\DN@##1]{\the\toks@##1}\fi\next@} |
| 330 |
%% \DN@{\twocell}% |
| 331 |
%% \expandafter\def\csname*dir@@\codeof\next@ @\endcsname{\@twocell} |
| 332 |
%% \DN@{\uppertwocell}% |
| 333 |
%% \expandafter\def\csname*dir@@\codeof\next@ @\endcsname{\@uppertwocell} |
| 334 |
%% \DN@{\lowertwocell}% |
| 335 |
%% \expandafter\def\csname*dir@@\codeof\next@ @\endcsname{\@lowertwocell} |
| 336 |
%% \DN@{\compositemap}% |
| 337 |
%% \expandafter\def\csname*dir@@\codeof\next@ @\endcsname{\@compositemap} |
| 338 |
\xydef@\twocell@DONE{% |
| 339 |
\edef\tmp@{\egroup \X@min=\the\X@min \X@max=\the\X@max |
| 340 |
\Y@min=\the\Y@min \Y@max=\the\Y@max}\tmp@ |
| 341 |
\L@c=\X@c \advance\L@c-\X@min \R@c=\X@max \advance\R@c-\X@c |
| 342 |
\D@c=\Y@c \advance\D@c-\Y@min \U@c=\Y@max \advance\U@c-\Y@c |
| 343 |
\ht\z@=\U@c \dp\z@=\D@c \dimen@=\L@c \advance\dimen@\R@c \wdz@=\dimen@ |
| 344 |
\computeLeftUpness@ |
| 345 |
\setboxz@h{\kern-\X@p \raise-\Y@c\boxz@ }% |
| 346 |
\dimen@=\L@c \advance\dimen@\R@c \wdz@=\dimen@ \ht\z@=\U@c \dp\z@=\D@c |
| 347 |
\Edge@c={\rectangleEdge}\Invisible@false \Hidden@false |
| 348 |
\edef\Drop@@{\noexpand\drop@Twocell |
| 349 |
\noexpand\def\noexpand\Leftness@{\Leftness@}% |
| 350 |
\noexpand\def\noexpand\Upness@{\Upness@}}% |
| 351 |
\edef\Connect@@{\noexpand\connect@Twocell |
| 352 |
\noexpand\ifdim\X@max<\the\X@max \X@max=\the\X@max\noexpand\fi |
| 353 |
\noexpand\ifdim\X@min>\the\X@min \X@min=\the\X@min\noexpand\fi |
| 354 |
\noexpand\ifdim\Y@max<\the\Y@max \Y@max=\the\Y@max\noexpand\fi |
| 355 |
\noexpand\ifdim\Y@min>\the\Y@min \Y@min=\the\Y@min\noexpand\fi }}% |
| 356 |
\xydef@\drop@Twocell{\boxz@ } |
| 357 |
\xydef@\connect@Twocell{% |
| 358 |
\setboxz@h{\kern\X@p \raise\Y@c\box\lastobjectbox@ }% |
| 359 |
\wdz@=\z@ \ht\z@=\z@ \dp\z@=\z@ \Drop@@ } |
| 360 |
\xywarnifdefined\@mod@ |
| 361 |
\xywarnifdefined\Arrowtok@ |
| 362 |
\xydef@\twocell@@#1#2#3#4#5#6#7#8#9!!!{% |
| 363 |
\def\@mod@{@}\DN@{#9}% |
| 364 |
\ifx #9!\def\Arrowtok@{@}\else\ifx #9A\def\Arrowtok@{^}% |
| 365 |
\else\ifx #9V\def\Arrowtok@{_}\else\ifx #9H\def\Arrowtok@{=}% |
| 366 |
\else\def\@mod@{\relax}% |
| 367 |
\ifx #5/\def\Arrowtok@{@}\else\ifx #5b\def\Arrowtok@{@}% |
| 368 |
\else\ifx #5B\def\Arrowtok@{@}\else\ifx #5@\def\Arrowtok@{@}% |
| 369 |
\else\def\Arrowtok@{#9}% |
| 370 |
\fi\fi\fi\fi\fi\fi\fi\fi |
| 371 |
\addEQ@\ifx #9\def\Arrowtok@{=}\fi |
| 372 |
\DN@{\omit}\ifx\next@\Arrowtok@\def\Arrowtok@{}\else |
| 373 |
\edef\Arrowtok@{\codeof\Arrowtok@}\fi |
| 374 |
\save@ \idfromc@{@c}\swap@\idfromc@{@p}\swap@ |
| 375 |
\cfromid@{@c}\no@@ |
| 376 |
\ifdim \X@c<\X@p \X@min=\X@c \X@max=\X@p \else \X@min=\X@p \X@max=\X@c \fi |
| 377 |
\ifdim \Y@c<\Y@p \Y@min=\Y@c \Y@max=\Y@p \else \Y@min=\Y@p \Y@max=\Y@c \fi |
| 378 |
\Calong@@{.5}\idfromc@{@m}\idfromc@{@m1}\idfromc@{@m2}% |
| 379 |
\ifx #5t\relax |
| 380 |
\enter@{\cplusthec@\pfromthep@}% |
| 381 |
\enter@\DirectionfromtheDirection@ \begingroup\aboveDirection@ \xydashl@ |
| 382 |
\DN@{#1}\ifx\next@\empty\dimen@=\z@\else\dimen@=#1\p@\fi |
| 383 |
\ifdim\dimen@=\z@ \DN@{\vfromslide@i{\xydashl@}@}\relax |
| 384 |
\else\DN@{\vfromslide@i{#1\xydashl@}@}\fi \next@ |
| 385 |
\czeroEdge@ \leave@ \no@@ \drop@{+}{}\idfromc@{@m1}% |
| 386 |
\DN@{#1}\ifx\next@\empty\DN@{\no@@}\else\DN@{\connect@{\dir}{-}}\fi |
| 387 |
\else |
| 388 |
\DN@{#1}\ifx\next@\empty\dimen@=\z@\else\dimen@=#1\p@\fi |
| 389 |
\ifdim\dimen@=\z@ \enter@{\cplusthec@\pfromthep@}% |
| 390 |
\enter@\DirectionfromtheDirection@ \begingroup\aboveDirection@\xydashl@ |
| 391 |
\vfromslide@i{\xydashl@}@\czeroEdge@ \leave@ \idfromc@{@m1}% |
| 392 |
\cfromid@{@p}\swap@\cfromid@{@c}% |
| 393 |
\DN@{#1}\ifx\next@\empty\DN@{\no@@}\else\DN@{\connect@{\dir}{-}}\fi |
| 394 |
\else \DN@{\enter@\cplusthec@ |
| 395 |
\enter@\DirectionfromtheDirection@ \begingroup\aboveDirection@ \xydashl@ |
| 396 |
\vfromslide@i{#1\xydashl@}@\czeroEdge@ \leave@ |
| 397 |
\idfromc@{@m1}\cfromid@{@p}\swap@\cfromid@{@c}% |
| 398 |
\edef\next@{\codeof\ucurveObject@}% |
| 399 |
\ifx\next@\empty\DN@{\connect@\crv{"@m1"}}% |
| 400 |
\else |
| 401 |
\DNii@####1{\connect@\crv{####1}}\expandafter\DN@\expandafter{% |
| 402 |
\expandafter\nextii@\expandafter{\ucurveObject@"@m1"}}% |
| 403 |
\fi \next@ }% |
| 404 |
%% \ifx\next@\empty\def\ucurveObject@{.}\fi |
| 405 |
%% \enter@\cfromthec@\sinit@\cfromid@{@m1}\senter@\leave@ |
| 406 |
%% \expandafter\connect@\expandafter\crvs\expandafter{\ucurveObject@}% |
| 407 |
%% \sinit@\sleave@ }% |
| 408 |
\fi |
| 409 |
\fi \next@ |
| 410 |
\DN@{#1}\ifx\next@\empty\relax\else |
| 411 |
\if\@mod@ @\relax |
| 412 |
\enter@\pfromthep@ \Creset@@ |
| 413 |
\ifx #5t\relax |
| 414 |
\PLACEedgec@ \PLACEedgep@ \def\PLACEf@{{.5}}% |
| 415 |
\else \def\next@{\crvreset@}% |
| 416 |
\ifx\next@\Creset@@ |
| 417 |
\gettwocelledges@ \edef\PLACEf@{{\expandafter\removePT@\the\dimen@}}% |
| 418 |
\else \PLACEedgec@ \PLACEedgep@ \def\PLACEf@{{.5}}\fi |
| 419 |
\fi |
| 420 |
\expandafter\Calong@@\PLACEf@ \czeroEdge@ \leave@ |
| 421 |
\edef\tmp@{\codeof\modmapobject@}% |
| 422 |
\ifx\tmp@\empty \DN@{\drop@{\dir}{|}}% |
| 423 |
\else \DNii@##1##{\drop@{##1}}% |
| 424 |
\DN@{\expandafter\nextii@\modmapobject@{}}% |
| 425 |
\fi \next@ |
| 426 |
\fi\fi |
| 427 |
\DN@{#6}\ifx\next@\empty\DN@{\relax}\else |
| 428 |
\DNii@{{}}\ifx\next@\nextii@\DN@{\relax}\else |
| 429 |
\ifx @#3\relax\DN@{\relax}\else |
| 430 |
\DN@{\enter@\pfromthep@ \Creset@@ |
| 431 |
\Calong@@{.5}\czeroEdge@ \leave@ |
| 432 |
\enter@\cplusthec@ |
| 433 |
\enter@\DirectionfromtheDirection@\begingroup |
| 434 |
\DN@{#1}\ifx\next@\empty\dimen@\z@\else\dimen@=#1\p@\fi |
| 435 |
\ifdim\dimen@<\z@ \belowDirection@ \xydashl@ |
| 436 |
\else \aboveDirection@ \xydashl@ \fi |
| 437 |
\dimen@=#3\p@ \if\@mod@ @\relax |
| 438 |
\advance\dimen@\ifdim\dimen@<\z@-\fi.5\p@\fi |
| 439 |
\edef\next@{\expandafter\removePT@\the\dimen@}% |
| 440 |
\expandafter\vfromslide@i\expandafter{\next@\xydashl@}@\leave@ |
| 441 |
\droptwocelllabel@{#6}}% |
| 442 |
\fi\fi\fi \next@ |
| 443 |
\DN@{#1}\ifx\next@\empty\relax\else |
| 444 |
\ifx #5b\relax |
| 445 |
\enter@ {\pfromthep@ }\Creset@@ \PLACEedgep@ |
| 446 |
\Calong@@{0}\czeroEdge@ \leave@ |
| 447 |
\edef\next@{\codeof\twocelltail@}% |
| 448 |
\ifx\next@\empty \DN@{\dir{>}}% |
| 449 |
\ifx\next@\twocellhead@\drop@{\dir}{<}% |
| 450 |
\else |
| 451 |
\reverseDirection@ \DNii@##1##{\drop@{##1}}% |
| 452 |
\expandafter\nextii@\twocellhead@{}\reverseDirection@ |
| 453 |
\fi |
| 454 |
\else |
| 455 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocelltail@{}% |
| 456 |
\fi |
| 457 |
\else\ifx #5@\relax |
| 458 |
\else |
| 459 |
\enter@\pfromthep@ \Creset@@ \PLACEedgec@ |
| 460 |
\Calong@@{1}\czeroEdge@ \leave@ |
| 461 |
\edef\next@{\codeof\twocellhead@}% |
| 462 |
\ifx\next@\empty\drop@{\dir}{>}% |
| 463 |
\else |
| 464 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocellhead@{}% |
| 465 |
\fi |
| 466 |
\ifx #5B\relax |
| 467 |
\enter@ {\pfromthep@ }\Creset@@ \PLACEedgep@ |
| 468 |
\Calong@@{0}\czeroEdge@ \leave@ |
| 469 |
\edef\next@{\codeof\twocelltail@}% |
| 470 |
\ifx\next@\empty \DN@{\dir{>}}% |
| 471 |
\ifx\next@\twocellhead@\drop@{\dir}{<}% |
| 472 |
\else |
| 473 |
\reverseDirection@\DNii@##1##{\drop@{##1}}% |
| 474 |
\expandafter\nextii@\twocellhead@{}\reverseDirection@ |
| 475 |
\fi |
| 476 |
\else |
| 477 |
\DNii@##1##{\drop@{##1}}\expandafter\drop\twocelltail@{}% |
| 478 |
\fi |
| 479 |
\else\ifx #5/\relax |
| 480 |
\else \edef\next@{\codeof\twocelltail@}% |
| 481 |
\ifx\next@\empty\relax\else |
| 482 |
\enter@\pfromthep@ \Creset@@ \PLACEedgep@ |
| 483 |
\Calong@@{0}\czeroEdge@ \leave@ |
| 484 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocelltail@{}% |
| 485 |
\fi\fi\fi |
| 486 |
\fi\fi\fi |
| 487 |
\cfromid@{@p}\swap@\cfromid@{@c}\no@@ \cfromid@{@m}% |
| 488 |
\ifx #5t\relax |
| 489 |
\idfromc@{@m2}\cfromid@{@m1}\swap@ \cfromid@{@c}\no@@ |
| 490 |
\DN@{#1}\ifx\next@\empty\DN@{\no@@}\else\DN@{\connect@{\dir}{-}}\fi |
| 491 |
\else\ifx #5o\relax |
| 492 |
\idfromc@{@m2}\DN@{}% |
| 493 |
\else |
| 494 |
\DN@{#1}\ifx\next@\empty\dimen@=\z@\else\dimen@=#1\p@\fi |
| 495 |
\ifdim\dimen@=\z@ |
| 496 |
\enter@{\cplusthec@\pfromthep@}% |
| 497 |
\enter@\DirectionfromtheDirection@ \begingroup \belowDirection@\xydashl@ |
| 498 |
\vfromslide@i{\xydashl@}@\czeroEdge@ \leave@ \idfromc@{@m2}% |
| 499 |
\DN@{\cfromid@{@p}\swap@\cfromid@{@c}\no@@}% |
| 500 |
\else \DN@{\enter@\cplusthec@ |
| 501 |
\enter@\DirectionfromtheDirection@ \begingroup \belowDirection@ \xydashl@ |
| 502 |
\vfromslide@i{#1\xydashl@}@\czeroEdge@ \leave@ |
| 503 |
\idfromc@{@m2}\cfromid@{@p}\swap@\cfromid@{@c}% |
| 504 |
\edef\next@{\codeof\dcurveObject@}% |
| 505 |
\ifx\next@\empty\DN@{\connect@\crv{"@m2"}}% |
| 506 |
\else |
| 507 |
\DNii@####1{\connect@\crv{####1}}\expandafter\DN@\expandafter{% |
| 508 |
\expandafter\nextii@\expandafter{\dcurveObject@"@m2"}}% |
| 509 |
\fi \next@ }\fi |
| 510 |
%% \enter@\cfromthec@\sinit@\cfromid@{@m2}\senter@\leave@ |
| 511 |
%% \expandafter\connect@\expandafter\crvs\expandafter{\dcurveObject@}% |
| 512 |
%% \sinit@\sleave@ |
| 513 |
%% }\fi |
| 514 |
\fi\fi \next@ |
| 515 |
\DN@{#1}\ifx\next@\empty\relax\else \ifx #5o\relax\else |
| 516 |
\if\@mod@ @\DN@{\enter@\pfromthep@ \Creset@@ |
| 517 |
\ifx #5t\relax |
| 518 |
\PLACEedgec@ \PLACEedgep@ \def\PLACEf@{{.5}}% |
| 519 |
\else \def\next@{\crvreset@}% |
| 520 |
\ifx\next@\Creset@@ |
| 521 |
\gettwocelledges@ \edef\PLACEf@{{\expandafter\removePT@\the\dimen@}}% |
| 522 |
\else \PLACEedgec@ \PLACEedgep@ \def\PLACEf@{{.5}}\fi |
| 523 |
\fi |
| 524 |
\expandafter\Calong@@\PLACEf@ \czeroEdge@ \leave@ |
| 525 |
\edef\tmp@{\codeof\modmapobject@}\ifx\tmp@\empty\DN@{\drop@{\dir}{|}}% |
| 526 |
\else \DNii@####1####{\drop@{####1}}% |
| 527 |
\DN@{\expandafter\nextii@\modmapobject@{}}\fi |
| 528 |
\next@ }\else\DN@{\relax}\fi |
| 529 |
\next@ \fi\fi |
| 530 |
\DN@{#7}\ifx\next@\empty\DN@{\relax}\else |
| 531 |
\DNii@{{}}\ifx\next@\nextii@\DN@{\relax}\else |
| 532 |
\ifx @#4\relax\DN@{\relax}\else |
| 533 |
\DN@{\enter@\pfromthep@ \Creset@@ |
| 534 |
\Calong@@{.5}\czeroEdge@ \leave@ |
| 535 |
\enter@\cplusthec@ |
| 536 |
\enter@\DirectionfromtheDirection@ \begingroup |
| 537 |
\DN@{#1}\ifx\next@\empty\dimen@\z@ \else\dimen@=#1\p@\fi |
| 538 |
\ifx #5t\relax \ifdim\dimen@<\z@ \belowDirection@ \xydashl@ |
| 539 |
\else \aboveDirection@ \xydashl@ \fi |
| 540 |
\else \ifdim\dimen@<\z@ \aboveDirection@ \xydashl@ |
| 541 |
\else \belowDirection@ \xydashl@ \fi |
| 542 |
\fi \dimen@=#4\p@ \if\@mod@ @\relax |
| 543 |
\advance\dimen@\ifdim\dimen@<\z@-\fi.5\p@\fi |
| 544 |
\edef\next@{\expandafter\removePT@\the\dimen@}% |
| 545 |
\expandafter\vfromslide@i\expandafter{\next@\xydashl@}@\leave@ |
| 546 |
\droptwocelllabel@{#7}}% |
| 547 |
\fi\fi\fi \next@ |
| 548 |
\DN@{#1}\ifx\next@\empty\relax\else |
| 549 |
\ifx #5o\relax |
| 550 |
\else\ifx #5b\relax |
| 551 |
\enter@ {\pfromthep@ }\Creset@@ \PLACEedgec@ |
| 552 |
\Calong@@{1}\czeroEdge@ \leave@ |
| 553 |
\edef\next@{\codeof\twocelltail@}% |
| 554 |
\ifx\next@\empty \DN@{\dir{>}}% |
| 555 |
\ifx\next@\twocellhead@\drop@{\dir}{>}% |
| 556 |
\else |
| 557 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocellhead@{}% |
| 558 |
\fi |
| 559 |
\else |
| 560 |
\DNii@##1##{\drop@{##1}}\expandafter\drop\twocelltail@{}% |
| 561 |
\fi |
| 562 |
\else\ifx #5/\relax |
| 563 |
\enter@{\pfromthep@}\Creset@@ \PLACEedgep@ |
| 564 |
\Calong@@{0}\czeroEdge@ \leave@ |
| 565 |
\edef\next@{\codeof\twocelltail@}% |
| 566 |
\ifx\next@\empty \DN@{\dir{>}}% |
| 567 |
\ifx\next@\twocellhead@\drop@{\dir}{<}% |
| 568 |
\else |
| 569 |
\reverseDirection@\DNii@##1##{\drop@{##1}}% |
| 570 |
\expandafter\nextii@\twocellhead@{}\reverseDirection@ |
| 571 |
\fi |
| 572 |
\else |
| 573 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocelltail@{}% |
| 574 |
\fi |
| 575 |
\else\ifx #5@\relax |
| 576 |
\else |
| 577 |
\enter@\pfromthep@ \Creset@@ \PLACEedgec@ |
| 578 |
\Calong@@{1}\czeroEdge@ \leave@ |
| 579 |
\edef\next@{\codeof\twocellhead@}% |
| 580 |
\ifx\next@\empty\drop@{\dir}{>}% |
| 581 |
\else |
| 582 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocellhead@{}% |
| 583 |
\fi |
| 584 |
\ifx #5B\relax |
| 585 |
\enter@ {\pfromthep@ }\Creset@@ \PLACEedgep@ |
| 586 |
\Calong@@{0}\czeroEdge@ \leave@ |
| 587 |
\edef\next@{\codeof\twocelltail@}% |
| 588 |
\ifx\next@\empty\DN@{\dir{>}}% |
| 589 |
\ifx\next@\twocellhead@\drop@{\dir}{<}% |
| 590 |
\else |
| 591 |
\reverseDirection@\DNii@##1##{\drop@{##1}}% |
| 592 |
\expandafter\nextii@\twocellhead@{}\reverseDirection@ |
| 593 |
\fi |
| 594 |
\else |
| 595 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocelltail@{}% |
| 596 |
\fi |
| 597 |
\else |
| 598 |
\edef\next@{\codeof\twocelltail@}% |
| 599 |
\ifx\next@\empty\relax\else |
| 600 |
\enter@ {\pfromthep@ }\Creset@@ \PLACEedgep@ |
| 601 |
\Calong@@{0}\czeroEdge@ \leave@ |
| 602 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\twocelltail@{}% |
| 603 |
\fi\fi |
| 604 |
\fi\fi\fi |
| 605 |
\fi\fi |
| 606 |
\DN@{#1}\ifx\next@\empty\dimen@=\z@\else\dimen@=#1\p@\fi |
| 607 |
\ifdim\dimen@<\z@ \cfromid@{@m2}\swap@\cfromid@{@m1}% |
| 608 |
\else \cfromid@{@m1}\swap@\cfromid@{@m2}% |
| 609 |
\fi \no@@ \cfromid@{@m}% |
| 610 |
\ifx\Arrowtok@\empty |
| 611 |
\else\DN@{_}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 612 |
\enter@{\pfromthep@ \cplusthec@}\dimen@=#2\xydashl@ |
| 613 |
\enter@\DirectionfromtheDirection@ \begingroup |
| 614 |
\expandafter\vfromslide@i\expandafter{\the\dimen@}@\czeroEdge@ |
| 615 |
\leave@ \idfromc@{@m}% |
| 616 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\Arrowobject@{}% |
| 617 |
\else\DN@{^}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 618 |
\DN@{_}\edef\Arrowtok@{\codeof\next@}% |
| 619 |
\enter@{\pfromthep@ \cplusthec@}\dimen@=#2\xydashl@ |
| 620 |
\enter@\DirectionfromtheDirection@ \begingroup |
| 621 |
\expandafter\vfromslide@i\expandafter{\the\dimen@}@\czeroEdge@ |
| 622 |
\leave@ \idfromc@{@m}\reverseDirection@ |
| 623 |
\DNii@##1##{\drop@{##1}}\expandafter\nextii@\Arrowobject@{}% |
| 624 |
\else \DN@{=}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 625 |
\enter@{\pfromthep@ \cplusthec@}% |
| 626 |
\dimen@=#2\xydashl@ \advance\dimen@\xydashl@ |
| 627 |
\enter@\DirectionfromtheDirection@ \begingroup |
| 628 |
\expandafter\vfromslide@i\expandafter{\the\dimen@}@\czeroEdge@ |
| 629 |
\leave@ \idfromc@{@m2}% |
| 630 |
\cfromid@{@m}% |
| 631 |
\enter@{\pfromthep@ \cplusthec@}% |
| 632 |
\dimen@=#2\xydashl@ \advance\dimen@-\xydashl@ |
| 633 |
\enter@\DirectionfromtheDirection@ \begingroup |
| 634 |
\expandafter\vfromslide@i\expandafter{\the\dimen@}@\czeroEdge@ |
| 635 |
\leave@ \idfromc@{@m1}% |
| 636 |
\cfromid@{@m2}\swap@\cfromid@{@m1}\connect@{\dir 2}{-}% |
| 637 |
\fi\fi\fi\fi |
| 638 |
\DN@{#8}\ifx\next@\empty\DN@{}\else\DN@{% |
| 639 |
\ifx\Arrowtok@\empty |
| 640 |
\Calong@@{.5}% |
| 641 |
\else\DN@{=}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 642 |
\Calong@@{.5}% |
| 643 |
\else\DN@{_}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 644 |
\cfromid@{@m}% |
| 645 |
\fi\fi\fi |
| 646 |
\enter@\cplusthec@ |
| 647 |
\enter@\DirectionfromtheDirection@ \begingroup \aboveDirection@\xydashl@ |
| 648 |
\ifx\Arrowtok@\empty |
| 649 |
\def\tmp@{0pt}% |
| 650 |
\else\DN@{=}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 651 |
\def\tmp@{\xydashl@}% |
| 652 |
\else\DN@{_}\edef\next@{\codeof\next@}\ifx\next@\Arrowtok@ |
| 653 |
\def\tmp@{1.2\xydashl@}% |
| 654 |
\else\def\tmp@{0pt}% |
| 655 |
\fi\fi\fi |
| 656 |
\expandafter\vfromslide@i\expandafter{\tmp@}@\czeroEdge@ \leave@ |
| 657 |
\droptwocelllabel@{#8}% |
| 658 |
}\fi \next@ |
| 659 |
\leave@ }% |
| 660 |
\xydef@\gettwocelledges@{% |
| 661 |
\bgroup \the\crvpts@ |
| 662 |
\edef\next@{\edges@}% |
| 663 |
\expandafter\gettwocelledges@@\next@ } |
| 664 |
\xydef@\gettwocelledges@@#1;#2,#3;#4,{% |
| 665 |
\dimen@=#2\advance\dimen@-#4\relax |
| 666 |
\advance\dimen@ 2\p@ \divide\dimen@ by4 \relax |
| 667 |
\edef\next@{\egroup\dimen@=\the\dimen@ }\next@}% |
| 668 |
\xyendinput |