summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/eqnarray
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-06-16 13:46:44 +0000
committerKarl Berry <karl@freefriends.org>2008-06-16 13:46:44 +0000
commite77b0903e1c7d5c23b4780241b3b78f18317c696 (patch)
treed50406ebc76e2fd0bedd4079902e3972ff274422 /Master/texmf-dist/source/latex/eqnarray
parent25a9533c7a45513e45c6b9b428791abb5ae833a6 (diff)
standard install of eqnarray
git-svn-id: svn://tug.org/texlive/trunk@8783 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/eqnarray')
-rw-r--r--Master/texmf-dist/source/latex/eqnarray/README15
-rw-r--r--Master/texmf-dist/source/latex/eqnarray/eqnarray.bbl0
-rw-r--r--Master/texmf-dist/source/latex/eqnarray/eqnarray.drv24
-rw-r--r--Master/texmf-dist/source/latex/eqnarray/eqnarray.dtx100
-rw-r--r--Master/texmf-dist/source/latex/eqnarray/eqnarray.dvibin11196 -> 0 bytes
-rw-r--r--Master/texmf-dist/source/latex/eqnarray/eqnarray.ins50
6 files changed, 137 insertions, 52 deletions
diff --git a/Master/texmf-dist/source/latex/eqnarray/README b/Master/texmf-dist/source/latex/eqnarray/README
deleted file mode 100644
index 41236991d77..00000000000
--- a/Master/texmf-dist/source/latex/eqnarray/README
+++ /dev/null
@@ -1,15 +0,0 @@
-I have put in the directory /incoming of ftp.dante.de a subdirectory
-eqnarray with the two files eqnarray.drv and eqnarray.dtx. They
-contain version 1.2 of the equationarray style. They should replace
-version 1.1 in /tex-archive/macros/latex/contrib/supported/eqnarray
-
---------------------------------------------------------------------------
- Roland Winkler
- Institut fuer Theoretische Physik Phone: ++49-941-943 2012
- Universitaet Regensburg Fax: ++49-941-943 4382
- 93040 Regensburg
- Germany Telex: 65 658 unire d
-
- e-mail (RFC-822): roland.winkler@physik.uni-regensburg.de
- e-mail (X.400): G=Roland S=Winkler OU=physik P=uni-regensburg A=d400 C=de
---------------------------------------------------------------------------
diff --git a/Master/texmf-dist/source/latex/eqnarray/eqnarray.bbl b/Master/texmf-dist/source/latex/eqnarray/eqnarray.bbl
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/Master/texmf-dist/source/latex/eqnarray/eqnarray.bbl
+++ /dev/null
diff --git a/Master/texmf-dist/source/latex/eqnarray/eqnarray.drv b/Master/texmf-dist/source/latex/eqnarray/eqnarray.drv
index 6e89ff2a333..816d7951cc6 100644
--- a/Master/texmf-dist/source/latex/eqnarray/eqnarray.drv
+++ b/Master/texmf-dist/source/latex/eqnarray/eqnarray.drv
@@ -1,13 +1,25 @@
-% Utility for unpacking eqnarray.sty:
-%
-% first type 'latex docstrip' in order to obtain eqnarray.sty,
-% then type 'latex eqnarray.drv' to obtain the documentation
-%
+%%
+%% This is file `eqnarray.drv',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% eqnarray.dtx (with options: `driver')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% You are not allowed to change this file.
+%%
+\def\fileversion{1.2a}
+\def\filedate{17 July 1997}
+\def\docdate{17 July 1997}
\documentclass{article}
\usepackage{doc}
\usepackage{array}
\usepackage{eqnarray}
-\setlength{\parindent}{0ex}
\begin{document}
\DocInput{eqnarray.dtx}
\end{document}
+\endinput
+%%
+%% End of file `eqnarray.drv'.
diff --git a/Master/texmf-dist/source/latex/eqnarray/eqnarray.dtx b/Master/texmf-dist/source/latex/eqnarray/eqnarray.dtx
index b543d7f1e5e..dc80a40e948 100644
--- a/Master/texmf-dist/source/latex/eqnarray/eqnarray.dtx
+++ b/Master/texmf-dist/source/latex/eqnarray/eqnarray.dtx
@@ -1,6 +1,6 @@
-\def\fileversion{1.2}
-\def\filedate{17 May 1995}
-\def\docdate{17 May 1995}
+\def\fileversion{1.2a}
+\def\filedate{17 July 1997}
+\def\docdate{17 July 1997}
%
% \MakeShortVerb{\|}
%
@@ -9,6 +9,11 @@
% Version 1.2: Piet van Oostrum <piet@cs.ruu.nl> added the code which
% is necessary for the |fleqn| option.
% \def\filedate{17 May 1995} \def\docdate{17 May 1995}
+% Version 1.2a: \def\filedate{17 July 1997}, \def\docdate{17 July 1997}
+% Apart from a statement \RequirePackage{array} no
+% modifications have been made in the style file itself.
+% I improved the documentation and I packed
+% everything into an easier-to-use dtx file
% \fi
%
% \title{The |equationarray| environment}
@@ -16,7 +21,9 @@
% |roland.winkler@physik.uni-regensburg.de|}
% \maketitle
% \begin{abstract}\noindent
-% The |equationarray| combines the |eqnarray| and the |array| environment.
+% The |equationarray| combines the line numbering of the |eqnarray|
+% and the more flexible formatting features of the |array| environment.
+% This package requires the |array| package.
% \end{abstract}
%
% \section{Introduction}
@@ -26,9 +33,9 @@
% require more sophisticated mathematics, so three parts aren't
% enough. Simultaneously, we would like to have our equations
% numbered. If the equations aren't to be numbered, then the |array|
-% environment suffices (nevertheless it is often easier to use the
+% environment suffices. (Nevertheless it is often easier to use the
% |equationarray*| environment than both an |equation| plus an |array|
-% environment). If the equations aren't to be aligned with
+% environment.) If the equations aren't to be aligned with
% each other, then the |equation| environment is preferred.
%
% The following is a new version of Tony Li's |equationarray|
@@ -43,40 +50,56 @@
% California, tli@sargas.usc.edu starting 6/15/88.
%
% I know that my documentation of the |equationarray| environment is
-% rather short -- but maybe nobody else might like to use it and
-% even this work was superfluous. So if you think that it would be
+% rather short. So if you think that it would be
% useful to have a better documentation please let me know.
%
+%
% \section{Example}
%
% We give a short example for the use of |equationarray|. The
% text is
% %
% \begin{verbatim}
-% \newcolumntype{e}{@{}}
-% \begin{equationarray}{rclel}
-% \phi & = & \sum \bigg( & \frac{xxxxxxxxxx}{\phi}
-% \nonumber\\*[3ex]
-% & & & + \frac{yyyyyyyyyy}{\phi} \bigg) \\[4ex]
-% & = & \multicolumn{2}{l}{ \frac{zzzzzzzzzz}{\phi} }
+% \newcolumntype{e}{@{\quad}}
+% \arraycolsep 0.2em
+% \begin{equationarray}{p{2.5em}erclecercl}
+% now: & - i\partial_t \psi & = & H\,\psi & \Rightarrow
+% & \psi (t) & = & \psi (0) \exp (iEt) \\[3ex]
+% then: & - i\partial_t \psi & = & (H+E_0) \,\psi & \Rightarrow
+% & \psi (t+t_0) & = & \psi (t_0) \exp [i(E+E_0)t]
% \end{equationarray}
% \end{verbatim}
% %
-% and we obtain (usually my formulas are much longer $\ldots$)
+% \noindent and we obtain
% %
-% \newcolumntype{e}{@{}}
-% \begin{equationarray}{rclel}
-% \phi & = & \sum \bigg( & \frac{xxxxxxxxxx}{\phi}
-% \nonumber\\*[3ex]
-% & & & + \frac{yyyyyyyyyy}{\phi} \bigg) \\[4ex]
-% & = & \multicolumn{2}{l}{ \frac{zzzzzzzzzz}{\phi} }
+% \newcolumntype{e}{@{\quad}}
+% \arraycolsep 0.2em
+% \begin{equationarray}{p{2.5em}erclecercl}
+% now: & - i\partial_t \psi & = & H\,\psi & \Rightarrow
+% & \psi (t) & = & \psi (0) \exp (iEt) \\[3ex]
+% then: & - i\partial_t \psi & = & (H+E_0) \,\psi & \Rightarrow
+% & \psi (t+t_0) & = & \psi (t_0) \exp [i(E+E_0)t]
% \end{equationarray}
% %
-% One can avoid pagebreaks between two lines by using the
+% An |equationarray| behaves very much like an |array|.
+% For example, |equationarray| takes the same tokens for defining
+% columns, and new column types can be defined with
+% |\newcolumntype|. One can use |\multicolumn|, |\hline|, |\cline|,
+% and |\vline|, and |equationarray| makes use of |\arraycolsep|,
+% |\extracolsep|, and |\extrarowheight|.\footnote{Some people don't
+% like the large spacing between the columns of the standard
+% |eqnarray|. Don't be surprised that |equationarray| seems to have
+% the same ``bug''. You just have to change the value of
+% $\tt\backslash$|arraycolsep|, see the example above.} In an
+% |equationarray| all these things have the same meaning like in
+% an |array|. The main difference is that
+% by default each entry of an |equationarray| is displayed with
+% |\displaystyle| whereas |array| uses |\textstyle|.
+% One can avoid page breaks between two lines by using the
% star-version |\\*|. There is also the star-version |equationarray*|
-% which has usually no linenumbers. But if for a particular line you
-% still want a linenumber, you can use |\yesnumber|, (I find this
-% easier than many lines with |\nonumber|). With the options |[l]|
+% which has usually no line numbers. But if for a particular line you
+% still want a line number, you can use |\yesnumber|. (I find this
+% easier than many lines with |\nonumber|.) With the options |[l]|
% or |[r]| the |equationarray| will appear flushleft or flushright,
% with the options |[c]| the |equationarray| will be centered,
% e.g. |\begin{equationarray}[l]{rclll}|. The default will be centering
@@ -98,11 +121,20 @@
%
% \section{The code}
%
+%\iffalse
+%<*style>
+%\fi
% \begin{macrocode}
\typeout{equationarray \fileversion\space<\filedate>}
\typeout{English documentation\space\space<\docdate>}
% \end{macrocode}
%
+% |equationarray| can't do anything if one doesn't provide the
+% |array| package.
+% \begin{macrocode}
+\RequirePackage{array}
+% \end{macrocode}
+%
% Process the |fleqn| option.
% \begin{macrocode}
\def\eqnarr@left{\@centering}
@@ -124,6 +156,11 @@
\let\@currentlabel=\theequation
\set@eqnsw \global\@eqcnt\z@ \global\@eqargcnt\z@
\let\@classz\@eqnclassz
+% \end{macrocode}
+% We need an extended definition of |\multicolumn| which increases
+% the counter |\@eqcnt| according to the number of columns covered
+% by |\multicolumn|.
+% \begin{macrocode}
\def\multicolumn##1##2##3{\@eqnmulticolumn{##1}{##2}{##3}%
\global\advance\@eqcnt##1
\global\advance\@eqcnt\m@ne}%
@@ -239,7 +276,7 @@
% \end{macro}
%
% \begin{macro}{\@equationcr}
-% If we have |\\*| the command |\@equationcr| avoids pagebreaks
+% If we have |\\*| the command |\@equationcr| avoids page breaks
% \begin{macrocode}
\def\@equationcr{${\ifnum0=`}\fi\@ifstar{\global\@eqpen\@M
\@xequationcr}{\global\@eqpen\interdisplaylinepenalty
@@ -304,5 +341,14 @@
\@namedef{endequationarray*}{\endequationarray}
% \end{macrocode}
% \end{macro}
-%
+%\iffalse
+%</style>
+%<+driver>\documentclass{article}
+%<+driver>\usepackage{doc}
+%<+driver>\usepackage{array}
+%<+driver>\usepackage{eqnarray}
+%<+driver>\begin{document}
+%<+driver> \DocInput{eqnarray.dtx}
+%<+driver>\end{document}
+%\fi
\endinput
diff --git a/Master/texmf-dist/source/latex/eqnarray/eqnarray.dvi b/Master/texmf-dist/source/latex/eqnarray/eqnarray.dvi
deleted file mode 100644
index 1cfd76ce439..00000000000
--- a/Master/texmf-dist/source/latex/eqnarray/eqnarray.dvi
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/source/latex/eqnarray/eqnarray.ins b/Master/texmf-dist/source/latex/eqnarray/eqnarray.ins
index ec8031fb843..4f9d6754927 100644
--- a/Master/texmf-dist/source/latex/eqnarray/eqnarray.ins
+++ b/Master/texmf-dist/source/latex/eqnarray/eqnarray.ins
@@ -1,5 +1,47 @@
+%%
+%% This file will generate fast loadable file eqnarray.sty from
+%% eqnarray.dtx when run through LaTeX or TeX
+%%
+%% This system is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Permission is granted to distribute verbatim copies of this file
+%%
+%% No other permissions to copy or distribute this file in any form
+%% are granted and in particular no permission to modify its contents.
+%%
+%% roland.winkler@physik.uni-regensburg.de
+%%
+%% --------------- start of docstrip commands ------------------
+%%
\def\batchfile{eqnarray.ins}
-\input docstrip
- \keepsilent
- \generateFile{eqnarray.sty}f{\from{eqnarray.dtx}{code}}
-\end
+\input docstrip.tex
+\keepsilent
+\preamble
+
+IMPORTANT NOTICE:
+
+You are not allowed to change this file.
+
+\endpreamble
+
+\generateFile{eqnarray.sty}{t}{%
+ \from{eqnarray.dtx}{style}}
+
+\generateFile{eqnarray.drv}{t}{%
+ \from{eqnarray.dtx}{driver}}
+
+\Msg{***********************************************************}
+\Msg{*}
+\Msg{* To finish the installation move the following}
+\Msg{* style file into a directory searched by LaTeX:}
+\Msg{*}
+\Msg{* \space\space eqnarray.sty}
+\Msg{*}
+\Msg{* To produce the documentation run the file}
+\Msg{* `eqnarray.drv' through LaTeX.}
+\Msg{*}
+\Msg{***********************************************************}