From 4bee129984b38497739c50f0e81660ccd6f8e904 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 13 Jan 2006 00:07:58 +0000 Subject: subeqn git-svn-id: svn://tug.org/texlive/trunk@1352 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/subeqn/subeqn.sty | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/subeqn/subeqn.sty (limited to 'Master/texmf-dist/tex/latex/subeqn/subeqn.sty') diff --git a/Master/texmf-dist/tex/latex/subeqn/subeqn.sty b/Master/texmf-dist/tex/latex/subeqn/subeqn.sty new file mode 100644 index 00000000000..7d0dcba5dcd --- /dev/null +++ b/Master/texmf-dist/tex/latex/subeqn/subeqn.sty @@ -0,0 +1,64 @@ +%% +%% This is file `subeqn.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% subeqn.dtx (with options: `package') +%% +%% Copyright (C) 1999-2004 Johannes Braams. All rights reserved. +%% +%% This file was generated from file(s) of the subeqn package. +%% ----------------------------------------------------------- +%% +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the +%% subeqn package. You may however distribute the subeqn package +%% without such generated files. +%% +%% The list of all files belonging to the subeqn package is +%% given in the file `manifest.txt. +%% +%% The list of derived (unpacked) files belonging to the distribution +%% and covered by LPPL is defined by the unpacking scripts (with +%% extension .ins) which are part of the distribution. +%% File: `subeqn.dtx' +%% Copyright (C) 1999-2004 +%% Donald Arsenau (asnd at reg.triumf.ca), +%% Johannes Braams (TeXniek at braams.cistron.nl) +%% +\NeedsTeXFormat{LaTeX2e}[1998/06/01] +\ProvidesPackage{subeqn} + [2004/04/15 v2.0b subnumbering of equations] +\newenvironment{subequations}{% + \refstepcounter{equation}% + \mathchardef\c@mainequation\c@equation + \protected@edef\themainequation{\theequation}% + \let\theequation\thesubequation + \global\c@equation\z@ + }{% + \global\c@equation\c@mainequation + \global\@ignoretrue + } +\newcommand{\thesubequation}{\themainequation\alph{equation}} +\newenvironment{subeqnarray}{% + \subequations + \@ifnextchar\label{\@lab@subeqnarray}{\eqnarray} + }{% + \endeqnarray\endsubequations + } +\newcommand*{\@lab@subeqnarray}[2]{#1{#2}\eqnarray} +\endinput +%% +%% End of file `subeqn.sty'. -- cgit v1.2.3