%% $Id: xypic.sty,v 2.6 1992/06/24 01:23:34 kris Exp $ -*-tex-*-
%
% LaTeX style option defining an XY-pic environment.  Does nothing since the
% XY-pic commands are already appropriately named [sic]...perhaps we should
% set \LaTeXdiagrams by default here?
%
\input xypic
%
% \LaTeXdiagrams
%	Change \diagram to work as LaTeX \begin{diagram}...\end{diagram}.
%
\count255=\the\catcode`\@ \catcode`\@=11 \edef\catcode@{\the\count255}
%
\define\LaTeXdiagrams{\let\diagram=\ltxdiagram@}
%
\define\ltxdiagram@#1\end#2{%
 \DN@{#2}\DNii@{diagram}\ifx\next@\nextii@\diagram@{#1}\end{diagram}%
 \else\xyerr@{Put \string{\string} around \string\begin...\string\end\space
	within diagrams}\fi}
%
\catcode`\@=\catcode@
%
\endinput
