| 1 |
%% xy17oztex.tex from $Id: xy17oztex.doc,v 3.8 2011/03/14 20:14:00 krisrose Exp $ |
| 2 |
%% |
| 3 |
%% Xy-pic ``OzTeX v1.7'' driver interface option. |
| 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 |
\ifx\xyloaded\undefined \input xy \fi |
| 24 |
\xyprovide{17oztex}{OzTeX v1.7 driver}{\stripRCS$Revision: 3.8 $}% |
| 25 |
{Ross Moore}{[email protected]}% |
| 26 |
{Mathematics Department, Macquarie University, NSW~2109, Australia} |
| 27 |
\xydef@\OzTeX@@#1{\dvimessage@{OzTeX v1.7}{#1}} |
| 28 |
\newdriver{% |
| 29 |
\xyaddsupport{color}\oldoztexColor@@ |
| 30 |
\xyaddsupport{crayon}\oldoztexCrayon@@ |
| 31 |
\xyaddsupport{ps}\oldoztexPS@@ |
| 32 |
\xyaddsupport{rotate}\oldoztexRotate@@ |
| 33 |
\xyaddsupport{line}\oldoztexLine@@ |
| 34 |
\xyaddsupport{frame}\oldoztexFrames@@ |
| 35 |
\xyaddsupport{tile}\oldoztexTiles@@ |
| 36 |
\xyaddsupport{cmtip}\relax |
| 37 |
} |
| 38 |
\xydef@\oldoztexColor@@{\oldOzTeXColours@} |
| 39 |
\xydef@\oldOzTeXColours@{\oldOzTeXPStypes@ |
| 40 |
\let\xylocalColor@=\xyNoColor@@ \def\xycolor@{\xycolor@@}% |
| 41 |
\expandafter\ifx\csname xyps-psloaded\endcsname\empty\DN@{% |
| 42 |
\xyinputorelse@{xyps-c}{\xydrivernoload@{ps-c}}% |
| 43 |
\installPScolor@ }\else\DN@{}\fi \next@ |
| 44 |
\ifx\xycrayolaloaded\empty \DN@{\xystandardcolors@\oldOzTeXCrayon@@{}}% |
| 45 |
\else\let\next@=\xystandardcolors@\fi \next@ |
| 46 |
\let\xycolorwarning@=\relax |
| 47 |
\let\oldoztexColor@@=\relax |
| 48 |
\let\UnloadColor@@=\NooldOzTeXColor@ |
| 49 |
} |
| 50 |
\xydef@\NooldOzTeXColor@{% |
| 51 |
\let\xylocalColor@=\xyNoColor@@ |
| 52 |
\let\xycolor@=\xyNoColor@ |
| 53 |
\let\xycolorwarning@=\xycolorwarning@@ |
| 54 |
\let\oldoztexColor@@=\oldOzTeXColours@ |
| 55 |
\let\UnloadColor@@=\UnloadColor@ |
| 56 |
} |
| 57 |
\xydef@\oldOzTeXCrayon@@{\installCrayolaColors@} |
| 58 |
\xydef@\oldoztexPS@@{\oldoztexPS@} |
| 59 |
\xydef@\oldoztexPSunload@{\UnloadPS@ |
| 60 |
\def\xyPSdictname{}\UsePSdict@@false |
| 61 |
\let\installxyps@@=\relax |
| 62 |
\let\UnloadPS@@=\UnloadPS@ |
| 63 |
\xyPSshapes@true |
| 64 |
\let\oldoztexPS@@=\oldoztexPS@ } |
| 65 |
\xydef@\oldOzTeXSpecial@#1{\special{empty.ps {#1}xy}} |
| 66 |
\xydef@\oldOzTeXMacro@#1{\special{empty.ps {#1}xy}} |
| 67 |
\xydef@\oldOzTeXDict@#1{\special{empty.ps @obxy{#1}stopped pop @eoxy}} |
| 68 |
\xydef@\oldOzTeXinclude@#1{\special{#1}} |
| 69 |
\xydef@\oldOzTeXraw@#1{\special{empty.ps @boxy #1 @eoxy}}% |
| 70 |
\xydef@\oldOzTeXPStypes@{% |
| 71 |
\xyinputorelse@{xyps-ps}{\xydrivernoload@{ps-ps}}% |
| 72 |
\ifx\PSspecial@@\oldOzTeXSpecial@\else |
| 73 |
\let\PSspecial@@=\oldOzTeXSpecial@ |
| 74 |
\let\PSmacro@@=\oldOzTeXMacro@ |
| 75 |
\let\PSdict@@=\oldOzTeXDict@ |
| 76 |
\let\PSraw@@=\oldOzTeXraw@ |
| 77 |
\let\PSinclude@@=\oldOzTeXinclude@ |
| 78 |
\let\xyPSobeylines@@=\obeyoldOzTeXlines@ |
| 79 |
\let\PSspecialdict@@=\oldOzTeXDict@ |
| 80 |
\oldOzTeX@@{PostScript}% |
| 81 |
\fi |
| 82 |
\oldOzTeXCurrpt@ } |
| 83 |
{\catcode`\^^M=\active |
| 84 |
\gdef\next{\catcode`\^^M=\active \let^^M=\space \obeyspaces}} |
| 85 |
\xylet@\obeyoldOzTeXlines@=\next |
| 86 |
\xydef@\oldOzTeXCurrpt@{\let\xyPScurrpt@@=\OzTeXCurrpt@@}% |
| 87 |
\xydef@\oldOzTeXCurrpt@@{} |
| 88 |
\xydef@\oldoztexPS@@{\oldOzTeXPStypes@ |
| 89 |
\let\installxyps@@=\old@OzTeX@PS@ |
| 90 |
\installxyps@ } |
| 91 |
\xydef@\old@OzTeX@PS@{\UsePSdict@@true |
| 92 |
\let\includePSmessage@=\xyoldOzTeXheader |
| 93 |
\ifx\undefined\xyPSdictname\def\xyPSdictname{global.ps}\fi} |
| 94 |
\xydef@\xyoldOzTeXheader#1#2#3{\UsePSdict@@true} |
| 95 |
\xydef@\oldoztexLine@@{\oldoztexLine@} |
| 96 |
\xydef@\oldoztexLine@{\oldOzTeXPStypes@ |
| 97 |
\expandafter\ifx\csname xyps-psloaded\endcsname\empty\DN@{% |
| 98 |
\xyinputorelse@{xyps-l}{\xydrivernoload@{ps-l}}\installPSline@ }% |
| 99 |
\else\DN@{\xydriverfail@{line-styles are}\UnloadLine@\relax}\fi |
| 100 |
\next@ } |
| 101 |
\xydef@\oldoztexFrames@@{\oldOzTeXFrames@} |
| 102 |
\xydef@\oldOzTeXFrames@{\oldOzTeXPStypes@ |
| 103 |
\expandafter\ifx\csname xyps-psloaded\endcsname\empty\DN@{% |
| 104 |
\xyinputorelse@{xyps-f}{\xydrivernoload@{ps-f}}\installPSframes@ }% |
| 105 |
\else\DN@{\xydriverfail@{frames are}\UnloadPSFrames@\relax}\fi |
| 106 |
\next@ } |
| 107 |
\xydef@\oldoztexTiles@@{\oldOzTeXTiles@} |
| 108 |
\xydef@\oldOzTeXTiles@{\oldOzTeXPStypes@ |
| 109 |
\expandafter\ifx\csname xyps-psloaded\endcsname\empty\DN@{% |
| 110 |
\xyinputorelse@{xyps-t}{\xydrivernoload@{ps-t}}\installPSpatterns@ |
| 111 |
\xystandardpatterns@ }% |
| 112 |
\else\DN@{\xydriverfail@{Patterns are}\UnloadPSpatterns@\relax}\fi |
| 113 |
\next@ } |
| 114 |
\xydef@\oldoztexRotate@@{\oldOzTeXRotate@} |
| 115 |
\xydef@\oldOzTeXRotate@{\oldOzTeXPStypes@ |
| 116 |
\expandafter\ifx\csname xyps-psloaded\endcsname\empty\DN@{% |
| 117 |
\xyinputorelse@{xyps-r}{\xydrivernoload@{ps-r}}% |
| 118 |
\xyRotScale@@ \installPSrotscale@ \xyPSshapes@false }% |
| 119 |
\else\DN@{\xydriverfail@{rotations are}\UnloadRotate@\relax}\fi |
| 120 |
\next@ } |
| 121 |
\xyendinput |