summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht139
1 files changed, 134 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht b/Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht
index fba445b9c7f..101d305895e 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/amsmath.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% amsmath.4ht 2005-10-23-04:19 %
-% Copyright (C) 1997--2005 Eitan M. Gurari %
+% amsmath.4ht 2006-12-01-16:02 %
+% Copyright (C) 1997--2006 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
@@ -24,7 +24,7 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2005-10-23-04:19}
+\immediate\write-1{version 2006-12-01-16:02}
\HRestore\cases
\HRestore\matrix
@@ -35,6 +35,45 @@
+\def\above:tbinom#1#2#3#4{\a:tbinom}
+\def\:temp{%
+ \expandafter \ifx\csname a:tbinom\endcsname\relax \else
+ \ifx\a:tbinom\empty \else
+ \Configure{abovewithdelims}{\above:tbinom}{}%
+ \fi\fi
+ \o:tbinom:}
+\HLet\tbinom\:temp
+\NewConfigure{tbinom}{1}
+\def\above:dbinom#1#2#3#4{\a:dbinom}
+\def\:temp{%
+ \expandafter \ifx\csname a:dbinom\endcsname\relax \else
+ \ifx\a:dbinom\empty \else
+ \Configure{abovewithdelims}{\above:dbinom}{}%
+ \fi\fi
+ \o:dbinom:}
+\HLet\dbinom\:temp
+\NewConfigure{dbinom}{1}
+\def\above:binom#1#2#3#4{\a:binom}
+\def\:temp#1{%
+ \def\:temp{%
+ \expandafter \ifx\csname a:binom\endcsname\relax \else
+ \ifx\a:binom\empty \else
+ \Configure{abovewithdelims}{\above:binom}{}%
+ \fi\fi
+ #1}}
+\expandafter\:temp\expandafter{\csname o:binom :\endcsname}
+\expandafter\HLet\csname binom \endcsname\:temp
+\NewConfigure{binom}{1}
+\def\hdots@for#1#2{\multicolumn{#2}c%
+ {\m@th \hdots:for{#1}\hfil}}
+\def\hdots:for#1{\dotsspace@1.5mu\mkern-#1\dotsspace@
+ \xleaders\hbox{$\m@th\mkern#1\dotsspace@.\mkern#1\dotsspace@$}%
+ \hfill
+ \mkern-#1\dotsspace@}
+\NewConfigure{hdotsfor}[1]{\def\a:hdotsfor##1{#1}}
+\let\a:hdotsfor=\hdots:for
+\def\:tempc{\a:hdotsfor}
+\HLet\hdots:for\:tempc
\expandafter\ifx \csname tmp:muskip\endcsname\relax
\csname newmuskip\endcsname \tmp:muskip
\fi
@@ -121,6 +160,8 @@
\def\:temp#1#2{\a:xleftarrow \o:xleftarrow:{#1}\b:xleftarrow}
\HLet\xleftarrow\:temp
\NewConfigure{xleftarrow}{2}
+\def\:tempc#1{\a:eqref\o:eqref:{#1}\b:eqref}
+\NewConfigure{eqref}{2}
\def\equation{\bgroup \@fleqnfalse
%
@@ -144,6 +185,26 @@
\def\endequation{\o:endequation:\egroup}%
\fi
\o:equation:}
+\expandafter\let\csname o:equation*:\expandafter
+ \endcsname \csname equation*\endcsname
+\expandafter\let\csname o:endequation*:\expandafter
+ \endcsname \csname endequation*\endcsname
+\expandafter\def\csname equation*\endcsname{\bgroup
+ \ifx \EndPicture\:Undef
+ \expandafter\def\csname endequation*\endcsname {%
+ \csname o:endequation*:\endcsname\egroup%
+ \csname b:equation*\endcsname\egroup
+ }%
+ \csname a:equation*\endcsname
+ \else
+ \expandafter\def\csname endequation*\endcsname{\csname
+ o:endequation*:\endcsname\egroup}%
+ \fi
+ \csname o:equation*:\endcsname}
+\NewConfigure{equation*}[2]{
+ \expandafter\c:def \csname a:equation*\endcsname {#1\bgroup \let \@eqnnum \empty }%
+ \expandafter\c:def \csname b:equation*\endcsname {#2}%
+}
\expandafter\def\csname genfrac \endcsname#1#2#3#4{%
\def\@tempa{#1#2}%
\edef\@tempb{\@nx\@genfrac\@mathstyle{#4}%
@@ -186,7 +247,8 @@
}!2%
}
\catcode`\#=6 \catcode`\!=12
-\def\clean:span#1\c:halign{\TeXhalign \bgroup \:span}
+\def\clean:span#1\c:halign{%
+ \TeXhalign \bgroup \:span}
\ifx \ifinany@\:Undef
\def\:tempc{%
\math@cr
@@ -248,6 +310,71 @@
\:tempc{flalign*}
\pend:defIII\start@align{\Configure{$$}{}{}{}}
\catcode`\#13 \catcode`\!6
+\def\reg:start@aligned!1!2{%
+ \savecolumn@
+ \vcenter \bgroup
+ \maxfields@!2\relax
+ \ifnum\maxfields@>\m@ne
+ \multiply\maxfields@\tw@
+ \let\math@cr@@@\math@cr@@@alignedat
+ \else
+ \let\math@cr@@@\math@cr@@@aligned
+ \fi
+ \Let@ \chardef\dspbrk@context\@ne
+ \default@tag
+ \global\column@\z@
+ \SaveMkHalignConf:g{start@aligned}\HRestore\noalign
+\MkHalign#{&\column@plus $\m@th\displaystyle{{\HCode{}}#}$%
+ &\column@plus $\m@th\displaystyle{{\HCode{}}#}$}%
+}
+ \catcode`\#=6 \catcode`\!=12
+\def\al:gned#1{%
+ \Configure{start@aligned}{\csname a:#1\endcsname}%
+ {\csname b:#1\endcsname}{\csname c:#1\endcsname}%
+ {\csname d:#1\endcsname}{\csname e:#1\endcsname}%
+ {\csname f:#1\endcsname}\pic:MkHalign{#1}}
+\NewConfigure{start@aligned}{6}
+\def\:tempc{\crcr\EndMkHalign
+ \RecallMkHalignConfig \restorecolumn@
+ \egroup \b:start@aligned}
+\HLet\endaligned\:tempc
+\def\:temp{%
+ \let\@testopt\alignsafe@testopt
+ \futurelet\:temp\aligned:a}
+\def\aligned:a{\ifx [\:temp \expandafter\aligned:b
+ \else \def\:temp{\aligned:b[c]}\expandafter\:temp \fi}
+\def\aligned:b[#1]{%
+ \al:gned{aligned}{#1}\m@ne}
+\HLet\aligned\:temp
+\def\reg:aligned{\reg:start@aligned}
+\NewConfigure{aligned}{6}
+\def\:temp{\futurelet\:temp\alignedat:a}
+\def\alignedat:a{\ifx [\:temp \expandafter\alignedat:b
+ \else \def\:temp{\alignedat:b[c]}\expandafter\:temp \fi}
+\def\alignedat:b[#1]{%
+ \let\@testopt\alignsafe@testopt
+ \al:gned{alignedat}{#1}\m@ne}
+\HLet\alignedat\:temp
+\def\reg:alignedat{\reg:start@aligned}
+\NewConfigure{alignedat}{6}
+ \catcode`\#13 \catcode`\!6
+\def\reg:gathered[!1]{%
+ \RIfM@\else
+ \nonmatherr@{\begin{gathered}}%
+ \fi
+ \null \vcenter\bgroup
+ \Let@ \chardef\dspbrk@context\@ne \restore@math@cr
+ \SaveMkHalignConf:g{gathered}%
+\MkHalign#{$\m@th\displaystyle{\HCode{}}#$}%
+}
+ \catcode`\#=6 \catcode`\!=12
+\def\:tempc{\crcr\EndMkHalign
+ \RecallMkHalignConfig \egroup\b:gathered}
+\HLet\endgathered\:tempc
+\def\:temp{\pic:MkHalign{gathered}}
+\expandafter\HLet\csname \string\gathered\endcsname\:temp
+\NewConfigure{gathered}{6}
+ \catcode`\#13 \catcode`\!6
\def\reg:multline!1{%
\ifx \ifinany@\:Undef\else \inany@true\fi
\Let@
@@ -278,7 +405,8 @@
}
\catcode`\#=6 \catcode`\!=12
\def\:tempc{\ifst@rred\else
- \e:multline(\theequation)\f:multline
+ \e:multline\csname a:multline-num\endcsname
+ \tagform@\theequation\csname b:multline-num\endcsname\f:multline
\fi
\math@cr \EndMkHalign
\RecallMkHalignConfig \csname b:multline\ifst@rred *\fi\endcsname
@@ -287,6 +415,7 @@
\def\:tempc{\pic:MkHalign{multline\ifst@rred *\fi}}
\HLet\multline@\:tempc
\NewConfigure{multline}{6}
+\NewConfigure{multline-num}{2}
\@xp\let\csname reg:multline*\endcsname\reg:multline
\@xp\let\csname endmultline*\endcsname\endmultline
\NewConfigure{multline*}{4}