summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xypic/xy.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-12 00:48:49 +0000
committerKarl Berry <karl@freefriends.org>2010-06-12 00:48:49 +0000
commitb7d09128d54f9b6bb737e80e906499037529904e (patch)
tree68ea16ac010aeee726f77bcec9162525feb14a7e /Master/texmf-dist/tex/generic/xypic/xy.sty
parent457703ea12a711958a619ba5f9e665242c1dcfe7 (diff)
xypic 3.8.1 (11jun10)
git-svn-id: svn://tug.org/texlive/trunk@18907 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/xypic/xy.sty')
-rw-r--r--Master/texmf-dist/tex/generic/xypic/xy.sty51
1 files changed, 41 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/generic/xypic/xy.sty b/Master/texmf-dist/tex/generic/xypic/xy.sty
index 32867e52f57..ca262f1b039 100644
--- a/Master/texmf-dist/tex/generic/xypic/xy.sty
+++ b/Master/texmf-dist/tex/generic/xypic/xy.sty
@@ -1,11 +1,11 @@
-%% $Id: xy.sty,v 3.3 1996/12/19 03:31:56 krisrose Exp $
+%% $Id: xy.sty,v 3.9 2010/06/10 18:45:49 krisrose Exp $
%%
%% ``Xy-pic as LaTeX 2.09 style option and LaTeX 2e package''.
-%% Copyright (c) 1993-1996 Kristoffer H. Rose <krisrose@brics.dk>
+%% Copyright (c) 1993-1996 Kristoffer H. Rose <krisrose@tug.org>
%%
%% This file is part of the Xy-pic package for graphs and diagrams in TeX.
%% See the companion README and INSTALL files for further information.
-%% Copyright (c) 1991-1996 Kristoffer H. Rose <krisrose@brics.dk>
+%% Copyright (c) 1991-2010 Kristoffer H. Rose <krisrose@tug.org>
%%
%% The Xy-pic package is free software; you can redistribute it and/or modify
%% it under the terms of the GNU General Public License as published by the
@@ -18,8 +18,7 @@
%% for more details.
%%
%% You should have received a copy of the GNU General Public License along
-%% with this package; if not, write to the Free Software Foundation, Inc.,
-%% 675 Mass Ave, Cambridge, MA 02139, USA.
+%% with this package; if not, see http://www.gnu.org/licenses/.
% Load Xy-pic with catcode of @ set as it will be in user text:
\count255=\the\catcode`\@ {\catcode`\@=11 \xdef\xystycatcode{\the\count255}}
@@ -39,12 +38,15 @@
% Ensure that we are *really* running LaTeX2e...!
\NeedsTeXFormat{LaTeX2e}
+% So we can check for pdfTeX.
+\RequirePackage{ifpdf}
+
% This file provides the current version of Xy-pic!
\edef\next{%
\noexpand\ProvidesPackage{xy}[\xydate\space Xy-pic version \xyversion]}\next
-% Recognise some standard LaTeX2e class options (cf. `LaTeX Companion' p.317):
-\DeclareOption{cmactex}{\xyoption{cmactex}}
+% Recognise some standard LaTeX2e class options (cf. old `LaTeX Companion' p.317):
+\DeclareOption{cmactex}{\xyoption{dvips}} % Thomas Kiffe's CMacTeX uses dvips
\DeclareOption{dvips}{\xyoption{dvips}\xyoption{ps}}
\DeclareOption{dvitops}{\xyoption{dvitops}\xyoption{ps}}
\DeclareOption{emtex}{\xyoption{emtex}}
@@ -53,7 +55,12 @@
\DeclareOption{textures}{\xyoption{textures}}
\DeclareOption{xdvi}{\xyoption{xdvi}}
-% This is special:
+% Recognise standard aliases for the pdf option.
+\DeclareOption{pdftex}{\xyoption{pdf}}
+\DeclareOption{dvipdfm}{\xyoption{pdf}}
+\DeclareOption{dvipdfmx}{\xyoption{pdf}}
+
+% This is special.
\DeclareOption{colour}{\xyoption{color}} % :-)
% This (obsolete) cmtip style option should be activated after loading:
@@ -70,12 +77,36 @@
% Reinstall catcode of @...
\catcode`\@=\xystycatcode
-% ... process the options, and that is all.
-\ProcessOptions
+% ...and process the options.
+\ProcessOptions\relax
+
+% Now, if no backend is loaded but we can generate PDF, do.
+\ifpdf\makeatletter
+ \ifx\xydriversloaded@@\xydriversloaded@none
+ \makeatother\xyoption{pdf}\fi\fi
+% That's all.
\endinput
% $Log: xy.sty,v $
+% Revision 3.9 2010/06/10 18:45:49 krisrose
+% Reference to GPL by URL.
+%
+% Revision 3.8 2010/04/28 07:14:30 krisrose
+% New Xy-pic home page installed.
+%
+% Revision 3.7 2010/04/26 01:45:23 krisrose
+% First proper integration of xypdf into Xy-pic "make dist".
+%
+% Revision 3.6 2010/04/25 21:48:06 krisrose
+% First proper integration of xypdf into Xy-pic "make dist".
+%
+% Revision 3.5 2010/04/20 20:36:43 krisrose
+% Documentation updates.
+%
+% Revision 3.4 2010/04/16 06:06:52 krisrose
+% Preparing for a new release...
+%
% Revision 3.3 1996/12/19 03:31:56 krisrose
% Maintenance release
%