Debian Codegraph @

texmf-dist/tex/generic/tex4ht/subeqnarray.4ht

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % subeqnarray.4ht 2009-05-21-09:32 %
3 % Copyright (C) 2008--2009 Eitan M. Gurari %
4 % %
5 % This work may be distributed and/or modified under the %
6 % conditions of the LaTeX Project Public License, either %
7 % version 1.3c of this license or (at your option) any %
8 % later version. The latest version of this license is %
9 % in %
10 % http://www.latex-project.org/lppl.txt %
11 % and version 1.3c or later is part of all distributions %
12 % of LaTeX version 2005/12/01 or later. %
13 % %
14 % This work has the LPPL maintenance status "maintained".%
15 % %
16 % This Current Maintainer of this work %
17 % is Eitan M. Gurari. %
18 % %
19 % If you modify this program your changing its signature %
20 % with a directive of the following form will be %
21 % appreciated. %
22 % \message{signature} %
23 % %
24 % [email protected] %
25 % http://www.cse.ohio-state.edu/~gurari %
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \immediate\write-1{version 2009-05-21-09:32}
28
29 \def\:tempc
30 {\stepcounter{equation}\anc:lbl r{equation}%
31 \def\@currentlabel{\p@equation\theequation}%
32 \global\c@subequation\@ne
33 \global\@eqnswtrue\m@th
34 \global\@eqcnt\z@\let\\\@subeqncr
35 \def\dd:subeqnarray{\a:subeqnarray
36 \global\let\sv:eqhro=\HRow
37 \gHAssign\HRow=0
38 \gdef\dd:subeqnarray{\d:subeqnarray}}%
39 \let\halign\TeXhalign
40 \subeqn@start
41 \bgroup
42 \dd:subeqnarray
43 \gHAdvance\HRow by 1
44 \c:subeqnarray
45 \HAssign\HCol=1
46 \e:subeqnarray$\displaystyle\tabskip\z@skip{##}$\f:subeqnarray
47 \@eqnsel
48 &\global\@eqcnt\@ne
49 \HAssign\HCol=2
50 \hfil\e:subeqnarray${##}$\f:subeqnarray\hfil
51 &\global\@eqcnt\tw@
52 \HAssign\HCol=3
53 \e:subeqnarray$\displaystyle{##}$\f:subeqnarray
54 \hfil \tabskip\@centering
55 &\global\@eqcnt\thr@@
56 \HAssign\HCol=4
57 \hbox to\z@\bgroup\hss
58 \e:subeqnarray##\f:subeqnarray\egroup\tabskip\z@skip\cr}
59 \HLet\subeqnarray\:tempc
60
61 \def\:tempc{\@@subeqncr
62 \o:noalign:{\d:subeqnarray\b:subeqnarray
63 \global\let\HRow=\sv:eqhro}\egroup$$\global\@ignoretrue}
64 \HLet\endsubeqnarray\:tempc
65
66 \def\:tempc{\let\@tempa\relax
67 \ifcase\@eqcnt \def\@tempa{& & &}\or \def\@tempa{& &}
68 \or \def\@tempa{&}\else
69 \let\@tempa\@empty
70 \@latexerr{Too many columns in subeqnarray environment}\@ehc\fi
71 \@tempa \if@eqnsw\@subeqnnum
72 \SkipRefstepAnchor\refstepcounter{subequation}\fi
73 \global\@eqnswtrue\global\@eqcnt\z@\cr}
74 \HLet\@@subeqncr\:tempc
75 \NewConfigure{subeqnarray}{6}
76 \def\slabel#1{%
77 \@bsphack
78 \if@filesw
79 {\let\thepage\relax
80 \def\protect{\noexpand\noexpand\noexpand}%
81 \a:@newlabel
82 \append:def\label:addr{\thesubequation}%
83 \Make:Label{\label:addr}{}%
84 \edef\@tempa{\write\@auxout{\string
85 \newlabel{#1}{{\a:newlabel\thesubequation}{\thepage}}}}%
86 \expandafter}\@tempa
87 \if@nobreak \ifvmode\nobreak\fi\fi
88 \fi\@esphack}
89
90 \Hinput{subeqnarray}
91 \endinput
92