summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/ncctools/nccmath.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/ncctools/nccmath.dtx')
-rw-r--r--Master/texmf-dist/source/latex/ncctools/nccmath.dtx24
1 files changed, 22 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/ncctools/nccmath.dtx b/Master/texmf-dist/source/latex/ncctools/nccmath.dtx
index 5007e8e92b4..23030e7b647 100644
--- a/Master/texmf-dist/source/latex/ncctools/nccmath.dtx
+++ b/Master/texmf-dist/source/latex/ncctools/nccmath.dtx
@@ -1,10 +1,10 @@
% \iffalse
%%
-%% File: nccmath.dtx Copyright (C) 2002--2005 by Alexander I. Rozhenko
+%% File: nccmath.dtx Copyright (C) 2002--2006 by Alexander I. Rozhenko
%%
%<package>\NeedsTeXFormat{LaTeX2e}[1995/12/01]
%<package>\ProvidesPackage{nccmath}
-%<package> [2005/02/21 v1.2 Additional Math Commands (NCC)]
+%<package> [2006/01/20 v1.3 Additional Math Commands (NCC)]
%
% \changes{v1.01}{2002/01/20}{This version is uploaded to CTAN}
% \changes{v1.02}{2002/02/19}{|\Eq|, |\Eqs|, and |\Eqalign| are removed}
@@ -16,6 +16,7 @@
% \changes{v1.2}{2005/02/15}{Introduce |mediummath|}
% \changes{v1.2}{2005/02/16}{Remove redefinition of equations tag}
% \changes{v1.2}{2005/02/21}{Avoid conflicts with the |array| package}
+% \changes{v1.3}{2006/01/20}{Introduce |\dmulticolumn| to use within |darray|}
%
%<*driver>
\let\makeindex\relax
@@ -121,6 +122,10 @@
% The |darray| environment is implemented independently on the
% |array| environment to avoid conflicts with the |array| package.
%
+% \DescribeMacro{\dmulticolumn}
+% |\dmulticolumn|\marg{count}\marg{preamble}\marg{formula}
+% is used in |darray| instead of |\multicolumn|.
+%
% \DescribeMacro{\useshortskip}
% In \TeX, two types of skips above display formulas are used: the
% normal skip defined in the |\abovedisplayskip| register and the
@@ -878,6 +883,21 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\dmulticolumn}
+% To produce multi-columns in |darray|, the |\dmulticolumn|
+% command is used.
+% \begin{macrocode}
+\newcommand\dmulticolumn[3]{\multispan{#1}%
+ \begingroup
+ \NCC@mkpream{#2}%
+ \def\@sharp{#3}\set@typeset@protect
+ \@preamble
+ \endgroup
+ \ignorespaces
+}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\NCC@mkpream}
% The |darray| environment
% is independent from |array| to avoid conflicts with