| 1 |
%% |
| 2 |
%% This is file `lwarp-xy.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `xy') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
|
| 19 |
|
| 20 |
\LWR@ProvidesPackagePass{xy}[2013/10/06] |
| 21 |
|
| 22 |
\AtBeginDocument{ |
| 23 |
|
| 24 |
\LetLtxMacro\LWR@orig@xy\xy |
| 25 |
\LetLtxMacro\LWR@orig@endxy\endxy |
| 26 |
\renewcommand*{\xy}{% |
| 27 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 28 |
{\addtocounter{LWR@lateximagedepth}{1}}% |
| 29 |
{\begin{lateximage}[-xy-~\PackageDiagramAltText]?}% |
| 30 |
\LWR@orig@xy% |
| 31 |
} |
| 32 |
|
| 33 |
\renewcommand*{\endxy}{% |
| 34 |
\LWR@orig@endxy% |
| 35 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{1}% |
| 36 |
{\addtocounter{LWR@lateximagedepth}{-1}}% |
| 37 |
{\end{lateximage}}% |
| 38 |
} |
| 39 |
\def\xybox#1{% |
| 40 |
\LWR@orig@xy#1\LWR@orig@endxy% |
| 41 |
\Edge@c={\rectangleEdge}\computeLeftUpness@% |
| 42 |
} |
| 43 |
|
| 44 |
\@ifundefined{xygraph}{}{ |
| 45 |
|
| 46 |
\LetLtxMacro\LWR@origxygraph\xygraph |
| 47 |
|
| 48 |
\renewcommand{\xygraph}[1]{% |
| 49 |
\begin{lateximage}[-xy- xygraph \PackageDiagramAltText]?% |
| 50 |
\LWR@origxygraph{#1} |
| 51 |
\end{lateximage} |
| 52 |
} |
| 53 |
|
| 54 |
}% xygraph defined |
| 55 |
|
| 56 |
}% AtBeginDocument |
| 57 |
|
| 58 |
\endinput |
| 59 |
%% |
| 60 |
%% End of file `lwarp-xy.sty'. |