~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to share/all4ht/html4-math.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
 
% html4-math.4ht                         2001-12-11-20:59 %
3
 
% Copyright (C) 1999--2001      Eitan M. Gurari         %
4
 
%                                                       %
5
 
% This program can redistributed and/or modified under  %
6
 
% the terms of the LaTeX Project Public License         %
7
 
% Distributed from CTAN archives in directory           %
8
 
% macros/latex/base/lppl.txt; either version 1 of the   %
9
 
% License, or (at your option) any later version.       %
10
 
%                                                       %
11
 
% However, you are allowed to modify this program       %
12
 
% without changing its name, if you modify its          %
13
 
% signature. Changes to the signature can be introduced %
14
 
% with a directive of the form                          %
15
 
%            \message{signature}                        %
16
 
%                                                       %
17
 
%                             gurari@cis.ohio-state.edu %
18
 
%                 http://www.cis.ohio-state.edu/~gurari %
19
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20
 
\immediate\write-1{version 2001-12-11-20:59}
21
 
 
22
 
\exit:ifnot{amsmath,% 
23
 
amstex,% 
24
 
amstex1,% 
25
 
fleqn,% 
26
 
fontmath,% 
27
 
latex,% 
28
 
plain,% 
29
 
tex4ht,% 
30
 
th4}
31
 
 
32
 
 
33
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34
 
                \ConfigureHinput{tex4ht}
35
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36
 
    \:CheckOption{no_^}
37
 
\if:Option \else \:CheckOption{no_}\fi
38
 
\if:Option \else
39
 
   \Configure{SUB}
40
 
      {\HCode{<sub \csname :SUB:\endcsname>}}{\HCode{</sub>}}
41
 
   \let\:SUB:\empty
42
 
\fi
43
 
\:CheckOption{no_^}
44
 
\if:Option \else \:CheckOption{no^}\fi
45
 
\if:Option \else
46
 
   \Configure{SUP}
47
 
      {\HCode{<sup \csname :SUP:\endcsname>}}{\HCode{</sup>}}
48
 
   \let\:SUP:\empty
49
 
\fi
50
 
\:CheckOption{no_^}
51
 
 \if:Option \else \:CheckOption{no_}\fi
52
 
 \if:Option \else \:CheckOption{no^}\fi
53
 
\if:Option \else
54
 
   \Configure{SUBSUP}
55
 
      {\HCode{<sub>}}{\HCode{</sub><sup>}}{\HCode{</sup>}}
56
 
\fi
57
 
\Configure{left}
58
 
  {\Picture+{ \a:@Picture{left}}}
59
 
  {\aftergroup\EndPicture   }
60
 
\Configure{mathchoice}{\PictureOff}{\PictureOn}
61
 
 
62
 
\Configure{$$}
63
 
   {\:xhtml{\IgnorePar\EndP}%
64
 
    \HCode{<div class="displaymath">}}
65
 
   {\HCode{</div>}\ShowPar\par{\HCondtrue\noindent}%
66
 
} {}
67
 
\Configure{PicMath}{}{}{}{ class="math" }
68
 
\Css{div.displaymath{text-align:center;}}
69
 
\NewConfigure{@neq}{1}
70
 
\Configure{@neq}{align="middle"}
71
 
\NewConfigure{@buildrelover}{1}
72
 
\Configure{@buildrelover}{align="middle"}
73
 
\NewConfigure{@doteq}{1}
74
 
\Configure{@doteq}{align="middle"}
75
 
\NewConfigure{@underbrace}{1}
76
 
\NewConfigure{@frac}{1}
77
 
\Configure{@frac}{align="middle"}
78
 
\NewConfigure{@left}{1}
79
 
\Configure{@left}{align="middle"}
80
 
 
81
 
\let\MathPar\empty
82
 
\Configure{PicDisplay}
83
 
  {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP
84
 
   \HCode{<center class="\MathPar math-display">}}
85
 
  {\HCode{</center>}}  {}  {class="\MathPar math-display" }
86
 
 
87
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88
 
  
89
 
\endinput\empty\empty\empty\empty\empty\empty
90
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91
 
 
92
 
 
93
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
94
 
                \ConfigureHinput{latex}
95
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
96
 
    \:CheckOption{pic-eqnarray}  \if:Option
97
 
   \ConfigureEnv{eqnarray}
98
 
     {\IgnorePar\EndP\Tg<div class="pic-eqnarray">\Picture*{}}
99
 
     {\EndPicture\Tg</div>}{}{}
100
 
\Css{div.pic-eqnarray {text-align:center;}}
101
 
\ConfigureEnv{eqnarray*}
102
 
     {\IgnorePar\EndP\Tg<div class="pic-eqnarray-star">\Picture*{}}
103
 
     {\EndPicture\Tg</div>}{}{}
104
 
\Css{div.pic-eqnarray-star {text-align:center;}}
105
 
 
106
 
\else \Configure{eqnarray}{\HCode{<table\Hnewline
107
 
        class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi ">}}
108
 
    {\HCode{</table>}}
109
 
    {\HCode{<tr valign="middle"
110
 
        class="eqnarray\ifx \@seqncr\@eqncr\else-star\fi">}}
111
 
    {\HCode{</tr>}}
112
 
    {\HCode{\ifnum \HCol=4 <td\Hnewline width="10"
113
 
        class="eqnarray4"></td>\fi
114
 
       <td\Hnewline align="\ifcase\HCol \or right\or center\or
115
 
               left\else right\fi" nowrap="nowrap"\Hnewline
116
 
               class="eqnarray\HCol">}}
117
 
    {\EndP\HCode{</td>}}
118
 
\Css{td.eqnarray4  { width:5\%; white-space: normal; }}
119
 
\Css{td.eqnarray2  { width:5\%;  }}
120
 
\Css{table.eqnarray-star, table.eqnarray {width:100\%;}}
121
 
\ConfigureEnv{eqnarray}
122
 
    {\:xhtml{\IgnorePar\EndP}\HCode{<div
123
 
         align="center" class="eqnarray">}}
124
 
    {\:xhtml{\EndP}\HCode{</div>}}{}{}
125
 
\ConfigureEnv{eqnarray*}
126
 
    {\:xhtml{\IgnorePar\EndP}\HCode{<div
127
 
         align="center" class="eqnarray">}}
128
 
    {\:xhtml{\EndP}\HCode{</div>}}{}{}
129
 
\fi
130
 
\Configure{stackrel}{\Picture+{ class="stackrel"}\mathrel}
131
 
                    {\limits ^}{\EndPicture}
132
 
\NewConfigure{@root}{1}
133
 
\Configure{@root}{align="middle" }
134
 
\Configure{big}{\HCode{<span class="big">}}{\HCode{</span>}}
135
 
\Configure{Big}{\HCode{<span class="bbig">}}{\HCode{</span>}}
136
 
\Configure{bigg}{\HCode{<span class="bigg">}}{\HCode{</span>}}
137
 
\Configure{Bigg}{\HCode{<span class="bbigg">}}{\HCode{</span>}}
138
 
\Configure{underline}
139
 
   {\HCode{<span class="underline">}} {\HCode{</span>}}
140
 
\Configure{overline}
141
 
   {\HCode{<span class="overline">}} {\HCode{</span>}}
142
 
\Css{.underline{ text-decoration:underline; }}
143
 
\Css{.overline{ text-decoration:overline; }}
144
 
 
145
 
 
146
 
\:CheckOption{pic-equation}\if:Option
147
 
   \Configure{equation}
148
 
     {\:xhtml{\IgnorePar\EndP}%
149
 
              \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
150
 
      \Configure{$$}{\PicDisplay}{\EndPicDisplay}
151
 
        {\everymath{}\everydisplay{}}
152
 
     }
153
 
     {\IgnorePar\HCode{</td><td width="5\%">}}
154
 
     {\end:TTT \ShowPar\par{\HCondtrue\noindent}%
155
 
156
 
\else
157
 
   \Configure{equation}
158
 
     {\:xhtml{\IgnorePar\EndP}%
159
 
              \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
160
 
     }
161
 
     {\IgnorePar\EndP\HCode{</td><td width="5\%">}}
162
 
     {\end:TTT}
163
 
\fi
164
 
\Css{.equation td{text-align:center; }}
165
 
\Css{td.equation { margin-top:1em; margin-bottom:1em; }   }
166
 
\let\A:displaylines\a:displaylines
167
 
\let\B:displaylines\b:displaylines
168
 
\let\C:displaylines\c:displaylines
169
 
\let\D:displaylines\d:displaylines
170
 
\Configure{displaylines}
171
 
   {\ifmmode
172
 
       \def\A:displaylines{\Picture*{}}%
173
 
       \def\B:displaylines{\EndPicture}%
174
 
    \fi
175
 
    \A:displaylines}
176
 
   {\B:displaylines} {\C:displaylines}{\D:displaylines}
177
 
\Configure{$$}{\:xhtml{\EndP}\PicDisplay}{\EndPicDisplay}
178
 
   {\everymath{}\everydisplay{}}
179
 
\Configure{pmatrix}
180
 
  {\ifvmode
181
 
      \def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
182
 
      \:xhtml{\IgnorePar\EndP}\HCode
183
 
        {<\tbl:XV{pmatrix}><tr><td><div align="center"\Hnewline>}%
184
 
   \else \HCode{<span class="pmatrix">}%
185
 
      \def \end:pmatrix{\HCode{</span>}}%
186
 
   \fi}
187
 
  {\end:pmatrix}
188
 
 
189
 
\def\A:root#1\b:root#2\c:root{\o:root:#1\of{#2}\c:root}
190
 
\Configure{root}
191
 
   {\Picture+{ \a:@Picture{root}}\A:root}
192
 
   {}
193
 
   {\EndPicture}
194
 
\Configure{mathpalette}
195
 
    {\Picture+{ \a:@Picture{mathpalette}}} {\EndPicture}
196
 
\Configure{L}                     {\pic:sym{L}}
197
 
\Configure{l}                     {\pic:sym{l}}
198
 
\def\pic:sym#1{\Protect\Picture+{ \a:@Picture{#1}}\csname
199
 
   o:#1:\endcsname\Protect\EndPicture}
200
 
 
201
 
\Configure{mathellipsis}          {...}
202
 
 
203
 
\:CheckOption{pic-array}  \if:Option
204
 
   \ConfigureEnv{array}
205
 
     {\IgnorePar\EndP\Tg<div class="pic-array">\Picture*{}$$}
206
 
     {$$\EndPicture\Tg</div>}{}{}
207
 
   \Css{div.pic-array {text-align:center;}}
208
 
\fi
209
 
\Configure{pmatrix} {\Picture+{ \a:@Picture{}}} {\EndPicture}
210
 
\Configure{bordermatrix} {\Picture+{ \a:@Picture{}}} {\EndPicture}
211
 
\Configure{frac}
212
 
   {\Picture+{ \a:@Picture{frac}}\bgroup}
213
 
   {} {}
214
 
   {\egroup\EndPicture}
215
 
\Configure{sqrtsign}
216
 
   {\Picture+{ \a:@Picture{sqrt}}}
217
 
   {\EndPicture}
218
 
\Configure{matrix}
219
 
   {\Picture+{ \a:@Picture{matrix}}}  {\EndPicture}
220
 
   {}{}{}{}
221
 
 
222
 
\Configure{pmatrix}
223
 
  {\ifvmode
224
 
      \def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
225
 
      \:xhtml{\IgnorePar\EndP}\HCode
226
 
        {<\tbl:XV{pmatrix}><tr><td><div align="center"\Hnewline>}%
227
 
   \else \HCode{<span class="pmatrix">}%
228
 
      \def \end:pmatrix{\HCode{</span>}}%
229
 
   \fi}
230
 
  {\end:pmatrix}
231
 
\Css{span.pmatrix img{vertical-align:middle;}}
232
 
 
233
 
\Configure{[]}
234
 
   {\PicDisplay $$\everymath{}\everydisplay{}}
235
 
   {$$\EndPicDisplay \ShowPar\par{\HCondtrue\noindent}%
236
 
}
237
 
\Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
238
 
 
239
 
 
240
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
241
 
  
242
 
\endinput\empty\empty\empty\empty\empty\empty
243
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
244
 
 
245
 
 
246
 
 
247
 
 
248
 
 
249
 
 
250
 
 
251
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
252
 
                \ConfigureHinput{fontmath}
253
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
254
 
    \Configure{overbrace} {\Picture+{}}{\EndPicture}
255
 
\Configure{underbrace} {\Picture+{}}{\EndPicture}
256
 
 
257
 
\Configure{Longrightarrow}        {\pic:sym{Longrightarrow}}
258
 
\Configure{angle}                 {\pic:sym{angle}}
259
 
\Configure{bowtie}                {\pic:sym{bowtie}}
260
 
\Configure{cong}                  {\pic:sym{cong}}
261
 
\Configure{ddots}                 {\pic:sym{ddots}}
262
 
\Configure{doteq}                 {\pic:sym{doteq}}
263
 
\Configure{hookleftarrow}          {\pic:sym{hookleftarrow}}
264
 
\Configure{hookrightarrow}        {\pic:sym{hookrightarrow}}
265
 
\Configure{leftrightharpoons}     {\pic:sym{leftrightharpoons}}
266
 
\Configure{longmapsto}            {\pic:sym{longmapsto}}
267
 
\Configure{mapsto}                {\pic:sym{mapsto}}
268
 
\Configure{models}                {\pic:sym{models}}
269
 
\Configure{neq}                   {\pic:sym{neq}}
270
 
\Configure{notin}                 {\pic:sym{notin}}
271
 
\Configure{rightleftharpoons}     {\pic:sym{rightleftharpoons}}
272
 
\Configure{vdots}                 {\pic:sym{vdots}}
273
 
 
274
 
 
275
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
276
 
  
277
 
\endinput\empty\empty\empty\empty\empty\empty
278
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
279
 
 
280
 
 
281
 
 
282
 
 
283
 
 
284
 
 
285
 
 
286
 
 
287
 
 
288
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
289
 
                \ConfigureHinput{plain}
290
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
291
 
    \let\A:displaylines\a:displaylines
292
 
\let\B:displaylines\b:displaylines
293
 
\let\C:displaylines\c:displaylines
294
 
\let\D:displaylines\d:displaylines
295
 
\Configure{displaylines}
296
 
   {\ifmmode
297
 
       \def\A:displaylines{\Picture*{}}%
298
 
       \def\B:displaylines{\EndPicture}%
299
 
    \fi
300
 
    \A:displaylines}
301
 
   {\B:displaylines} {\C:displaylines}{\D:displaylines}
302
 
\Configure{$$}{\:xhtml{\EndP}\PicDisplay}{\EndPicDisplay}
303
 
   {\everymath{}\everydisplay{}}
304
 
\Configure{pmatrix}
305
 
  {\ifvmode
306
 
      \def\end:pmatrix{\IgnorePar\HCode{</div>}\end:TTT}%
307
 
      \:xhtml{\IgnorePar\EndP}\HCode
308
 
        {<\tbl:XV{pmatrix}><tr><td><div align="center"\Hnewline>}%
309
 
   \else \HCode{<span class="pmatrix">}%
310
 
      \def \end:pmatrix{\HCode{</span>}}%
311
 
   \fi}
312
 
  {\end:pmatrix}
313
 
 
314
 
\def\A:root#1\b:root#2\c:root{\o:root:#1\of{#2}\c:root}
315
 
\Configure{root}
316
 
   {\Picture+{ \a:@Picture{root}}\A:root}
317
 
   {}
318
 
   {\EndPicture}
319
 
\Configure{mathpalette}
320
 
    {\Picture+{ \a:@Picture{mathpalette}}} {\EndPicture}
321
 
\Configure{L}                     {\pic:sym{L}}
322
 
\Configure{l}                     {\pic:sym{l}}
323
 
\def\pic:sym#1{\Protect\Picture+{ \a:@Picture{#1}}\csname
324
 
   o:#1:\endcsname\Protect\EndPicture}
325
 
 
326
 
\Configure{Longrightarrow}        {\pic:sym{Longrightarrow}}
327
 
\Configure{angle}                 {\pic:sym{angle}}
328
 
\Configure{bowtie}                {\pic:sym{bowtie}}
329
 
\Configure{cong}                  {\pic:sym{cong}}
330
 
\Configure{ddots}                 {\pic:sym{ddots}}
331
 
\Configure{doteq}                 {\pic:sym{doteq}}
332
 
\Configure{hookleftarrow}          {\pic:sym{hookleftarrow}}
333
 
\Configure{hookrightarrow}        {\pic:sym{hookrightarrow}}
334
 
\Configure{leftrightharpoons}     {\pic:sym{leftrightharpoons}}
335
 
\Configure{longmapsto}            {\pic:sym{longmapsto}}
336
 
\Configure{mapsto}                {\pic:sym{mapsto}}
337
 
\Configure{models}                {\pic:sym{models}}
338
 
\Configure{neq}                   {\pic:sym{neq}}
339
 
\Configure{notin}                 {\pic:sym{notin}}
340
 
\Configure{rightleftharpoons}     {\pic:sym{rightleftharpoons}}
341
 
\Configure{vdots}                 {\pic:sym{vdots}}
342
 
 
343
 
\Configure{ldots}                 {...}
344
 
 
345
 
\NewConfigure{@root}{1}
346
 
\Configure{@root}{align="middle" }
347
 
\Configure{big}{\HCode{<span class="big">}}{\HCode{</span>}}
348
 
\Configure{Big}{\HCode{<span class="bbig">}}{\HCode{</span>}}
349
 
\Configure{bigg}{\HCode{<span class="bigg">}}{\HCode{</span>}}
350
 
\Configure{Bigg}{\HCode{<span class="bbigg">}}{\HCode{</span>}}
351
 
\Configure{underline}
352
 
   {\HCode{<span class="underline">}} {\HCode{</span>}}
353
 
\Configure{overline}
354
 
   {\HCode{<span class="overline">}} {\HCode{</span>}}
355
 
\Css{.underline{ text-decoration:underline; }}
356
 
\Css{.overline{ text-decoration:overline; }}
357
 
 
358
 
 
359
 
\Configure{sqrt}
360
 
   {\Picture+{ \a:@Picture{sqrt}}}
361
 
   {\EndPicture}
362
 
\Configure{overbrace} {\Picture+{}}{\EndPicture}
363
 
\Configure{underbrace} {\Picture+{}}{\EndPicture}
364
 
 
365
 
 
366
 
\Configure{@underbrace}{align="middle"}
367
 
 
368
 
 
369
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
370
 
  
371
 
\endinput\empty\empty\empty\empty\empty\empty
372
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
373
 
 
374
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
375
 
                \ConfigureHinput{amsmath}
376
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
377
 
    \Configure{equation}
378
 
  {\:xhtml{\IgnorePar\EndP}%
379
 
           \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
380
 
  }
381
 
  {\IgnorePar\EndP\HCode{</td><td width="5\%">}}
382
 
  {\end:TTT}
383
 
\Css{.equation td{text-align:center; }}
384
 
\Configure{substack}{\Picture+{}}{\EndPicture}
385
 
\def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
386
 
  \HCode{<center class="#1"><table class="#1"\Hnewline
387
 
   border="0" cellpadding="0" cellspacing="15"><tr><td>}}
388
 
\def\endm:env{\:xhtml{\IgnorePar\EndP}%
389
 
   \HCode{</td></tr></table></center>}\IgnorePar
390
 
   \ifmmode\else\par\fi}
391
 
 
392
 
\:CheckOption{pic-align}  \if:Option
393
 
   \def\:tempc#1#2{%
394
 
   \ConfigureEnv{#1}
395
 
     {\par\IgnorePar\EndP\HCode{<div class="align">}\Picture*[pict]{}}
396
 
     {\EndPicture\EndP\HCode{</div>}\par}
397
 
     {} {}}
398
 
\Css{div.align {text-align: center;}}
399
 
 
400
 
\else
401
 
    \def\:tempc#1#2{%
402
 
   \Configure{#1}
403
 
   {\IgnorePar\EndP  \HCode{<table\Hnewline class="#2">}}
404
 
   {\HCode{</table>}}  {\HCode{<tr>}}   {\HCode{</tr>}}
405
 
   {\HCode{<td\Hnewline
406
 
      class="align-\ifnum \HCol>\maxfields@ label\else
407
 
         \ifodd\HCol\space  odd\else     even\fi
408
 
       \fi">}}
409
 
   {\HCode{</td>}}}
410
 
\Css{table.align, table.alignat, table.xalignat, table.xxalignat,
411
 
     table.flalign, table.align-star, table.alignat-star,
412
 
     table.xalignat-star,  table.flalign-star
413
 
   {width:100\%; white-space: nowrap;}}
414
 
\Css{td.align-label { width:5\%;  }}
415
 
\Css{td.align-odd { text-align:right; padding-right:0.3em;}}
416
 
\Css{td.align-even { text-align:left; padding-right:0.6em;}}
417
 
 
418
 
\fi
419
 
\:tempc{align}{align}
420
 
\:tempc{alignat}{alignat}
421
 
\:tempc{xalignat}{xalignat}
422
 
\:tempc{xxalignat}{xxalignat}
423
 
\:tempc{flalign}{flalign}
424
 
\:tempc{align*}{align-star}
425
 
\:tempc{alignat*}{alignat-star}
426
 
\:tempc{xalignat*}{xalignat-star}
427
 
\:tempc{flalign*}{flalign-star}
428
 
\Configure{split}
429
 
   {\HCode{<table\Hnewline  class="split"><tr><td>}}
430
 
   {\HCode{</td></tr></table>}}
431
 
   {\HCode{<br\Hnewline class="split-tr"\xml:empty>}} {}
432
 
   {\HCode{<br\Hnewline class="split-td"\xml:empty>}} {}
433
 
\Configure{smallmatrix}
434
 
   {\:xhtml{\IgnorePar\EndP}%
435
 
    \HCode{<table\Hnewline class="smallmatrix">}}   {\HCode{</table>}}
436
 
   {\HCode{<tr>}}                                   {\HCode{</tr>}}
437
 
   {\HCode{<td\Hnewline>}}                          {\HCode{</td>}}
438
 
\ConfigureEnv{gather*}{\m:env{gather*}}{\endm:env}{}{}
439
 
\ConfigureEnv{gathered}{\m:env{gathered}}{\endm:env}{}{}
440
 
\ConfigureEnv{matrix}{\m:env{matrix}}{\endm:env}{}{}
441
 
\ConfigureEnv{quotation}{\m:env{quotation}}{\endm:env}{}{}
442
 
\Configure{equations}{*}{}
443
 
\ConfigureEnv{multline}
444
 
  {\:xhtml{\IgnorePar\EndP}%
445
 
    \HCode{<\tbl:XV{multline}><tr><td>}\Picture*{}\ExtractHLabel
446
 
  }
447
 
  {\EndPicture \ifx \:HLabel\:Undef \else
448
 
   \HCode{</td><td width="5\%">}\PutHLabel
449
 
   \global\let\:HLabel\:Undef
450
 
\fi
451
 
\end:TTT}
452
 
  {}{}
453
 
  {}{}
454
 
\ConfigureEnv{multline*}
455
 
  {\:xhtml{\IgnorePar\EndP}%
456
 
    \HCode{<\tbl:XV{multline-star}><tr><td>}\Picture*{}%
457
 
  }
458
 
  {\EndPicture \end:TTT}
459
 
  {}{}
460
 
\def\ExtractHLabel{%
461
 
   \def\tagform@##1{{\xdef\:HLabel{\noexpand\tagform@{##1}}}}}
462
 
\def\PutHLabel{\:HLabel}
463
 
 
464
 
\ConfigureEnv{gather}
465
 
  {\:xhtml{\IgnorePar\EndP}%
466
 
    \HCode{<\tbl:XV{gather}><tr><td
467
 
       class="gather1">}\Picture*{}\ExtractHLabel
468
 
  }
469
 
  {\EndPicture \ifx \:HLabel\:Undef \else
470
 
   \HCode{</td><td width="5\%">}\PutHLabel
471
 
   \global\let\:HLabel\:Undef
472
 
\fi
473
 
\end:TTT}
474
 
  {}{}
475
 
\ConfigureEnv{gather*}
476
 
  {\:xhtml{\IgnorePar\EndP}%
477
 
    \HCode{<\tbl:XV{gather-star}><tr><td>}\Picture*{}%
478
 
  }
479
 
  {\EndPicture \end:TTT}
480
 
  {}{}
481
 
\Css{td.gather-star, td.gather1 {text-align:center; }}
482
 
\Configure{@cdots}                {\pic:sym{@cdots}}
483
 
\Configure{iint}                  {\pic:sym{iint}}
484
 
\Configure{iiint}                 {\pic:sym{iiint}}
485
 
\Configure{iiiint}                {\pic:sym{iiint}}
486
 
\Configure{idotsint}              {\pic:sym{tsint}}
487
 
\Configure{doteq}                 {\pic:sym{tsint}}
488
 
\Configure{overbrace} {\Picture+{}}{\EndPicture}
489
 
\Configure{underbrace} {\Picture+{}}{\EndPicture}
490
 
 
491
 
 
492
 
\Configure{overset} {\Picture+{ \a:@Picture{}}} {\EndPicture}
493
 
\Configure{underset} {\Picture+{ \a:@Picture{}}} {\EndPicture}
494
 
\Configure{xrightarrow} {\Picture+{ \a:@Picture{}}} {\EndPicture}
495
 
\Configure{xleftarrow} {\Picture+{ \a:@Picture{}}} {\EndPicture}
496
 
\Configure{genfrac}
497
 
  {\Picture+{}\bgroup} {}{}{}{}{\egroup\EndPicture}
498
 
 
499
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
500
 
  
501
 
\endinput\empty\empty\empty\empty\empty\empty
502
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
503
 
 
504
 
 
505
 
 
506
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
507
 
                \ConfigureHinput{amstex1}
508
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
509
 
    \Configure{overbrace} {\Picture+{}}{\EndPicture}
510
 
\Configure{underbrace} {\Picture+{}}{\EndPicture}
511
 
 
512
 
 
513
 
\Configure{dotsc}                 {\pic:sym{dotsc}}
514
 
\Configure{dotso}                 {\pic:sym{dotso}}
515
 
 
516
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
517
 
  
518
 
\endinput\empty\empty\empty\empty\empty\empty
519
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
520
 
 
521
 
 
522
 
 
523
 
 
524
 
 
525
 
 
526
 
 
527
 
 
528
 
 
529
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
530
 
                \ConfigureHinput{amstex}
531
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
532
 
    \Configure{pmatrix}
533
 
   {\bgroup\m:env{pmatrix}}
534
 
   {\endm:env\egroup}
535
 
\Configure{smallmatrix}
536
 
    {\bgroup\m:env{smallmatrix}\Picture+{}}
537
 
    {\EndPicture\endm:env\egroup}
538
 
    {}{} {}{}
539
 
\Configure{bmatrix}
540
 
   {\bgroup\m:env{bmatrix}}
541
 
   {\endm:env\egroup}
542
 
\Configure{vmatrix}{\bgroup\m:env{vmatrix}}{\endm:env\egroup}
543
 
\Configure{Vmatrix}{\bgroup\m:env{Vmatrix}}{\endm:env\egroup}
544
 
\Configure{aligned}
545
 
  {\bgroup\m:env{aligned}\Picture+{}}
546
 
  {\EndPicture\endm:env\egroup}
547
 
  {}{}{}{}
548
 
\Configure{xalignat}
549
 
  {\bgroup\m:env{xalignat}}
550
 
  {\endm:env\egroup}
551
 
  {}{}{}{}
552
 
\Configure{xxalignat}
553
 
  {\bgroup\m:env{xxalignat}}
554
 
  {\endm:env\egroup}
555
 
  {}{}{}{}
556
 
\Configure{multline}
557
 
  {\bgroup\m:env{multline}\Picture+{}\vtop\bgroup$$}
558
 
  {$$\egroup\EndPicture\endm:env\egroup}
559
 
  {}{}
560
 
\Configure{alignedat}
561
 
  {\bgroup\m:env{alignedat}\Picture+{}}
562
 
  {\EndPicture\endm:env\egroup}
563
 
  {}{}{}{}
564
 
\Configure{gathered}
565
 
  {\bgroup\m:env{gathered}\Picture+{}}
566
 
  {\EndPicture\endm:env\egroup}
567
 
  {}{}{}{}
568
 
\Configure{linebreak}{\HCode{<br\xml:empty>}}
569
 
\def\m:env#1{\relax\ifmmode\else\par\fi\:xhtml{\IgnorePar\EndP}%
570
 
  \HCode{<center class="#1"><table class="#1"\Hnewline
571
 
   border="0" cellpadding="0" cellspacing="15"><tr><td>}}
572
 
\def\endm:env{\:xhtml{\IgnorePar\EndP}%
573
 
   \HCode{</td></tr></table></center>}\IgnorePar
574
 
   \ifmmode\else\par\fi}
575
 
 
576
 
 
577
 
 
578
 
\Configure{matrix}
579
 
   {\HCode{<table\Hnewline class="matrix">}}  {\HCode{</table>}}
580
 
   {\HCode{<tr\Hnewline>}}   {\HCode{</tr>}}
581
 
   {\HCode{<td>}}   {\HCode{</td>}}
582
 
\Configure{cases}{\m:env{cases}}{\endm:env}
583
 
 
584
 
 
585
 
 
586
 
\:CheckOption{pic-matrix} \if:Option
587
 
   \Configure{matrix}
588
 
      {\m:env{matrix}\Picture+{}}  {\EndPicture\endm:env}
589
 
      {}{} {}{}
590
 
\fi
591
 
\:CheckOption{pic-align}  \if:Option
592
 
   \Configure{align}
593
 
       {\m:env{align}\Picture+{}} \EndPicture{\endm:env}
594
 
       {} {} {} {}
595
 
\else
596
 
   \Configure{align}
597
 
      {\HCode{<table\Hnewline class="align">}}  {\HCode{</table>}}
598
 
      {\HCode{<tr\Hnewline>}}   {\HCode{</tr>}}
599
 
      {\HCode{<td>}}   {\HCode{</td>}}
600
 
\fi
601
 
\:CheckOption{pic-cases}  \if:Option
602
 
   \Configure{cases}
603
 
       {\m:env{cases}\Picture+{}}{\EndPicture\endm:env}
604
 
\fi
605
 
\Configure{alignat}
606
 
  {\bgroup\m:env{alignat}\Picture+{}}
607
 
  {\EndPicture\endm:env \egroup}
608
 
  {}{} {}{}
609
 
\Configure{gather}
610
 
  {\bgroup\m:env{gather}\Picture+{}}
611
 
  {\EndPicture\endm:env\egroup}
612
 
  {}{} {}{}
613
 
\Configure{frac}{\Picture+{}}{\EndPicture}
614
 
\Configure{dfrac}{\Picture+{}}{\EndPicture}
615
 
\Configure{tfrac}{\Picture+{}}{\EndPicture}
616
 
\Configure{binom}{\Picture+{}}{\EndPicture}
617
 
\Configure{dbinom}{\Picture+{}}{\EndPicture}
618
 
\Configure{tbinom}{\Picture+{}}{\EndPicture}
619
 
\Configure{boxed}{\Picture+{}}{\EndPicture}
620
 
 
621
 
 
622
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
623
 
  
624
 
\endinput\empty\empty\empty\empty\empty\empty
625
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
626
 
 
627
 
 
628
 
 
629
 
 
630
 
 
631
 
 
632
 
 
633
 
 
634
 
 
635
 
 
636
 
 
637
 
 
638
 
 
639
 
 
640
 
 
641
 
 
642
 
 
643
 
 
644
 
 
645
 
 
646
 
 
647
 
 
648
 
 
649
 
 
650
 
 
651
 
 
652
 
 
653
 
 
654
 
 
655
 
 
656
 
 
657
 
 
658
 
 
659
 
 
660
 
 
661
 
 
662
 
 
663
 
 
664
 
 
665
 
 
666
 
 
667
 
 
668
 
 
669
 
 
670
 
 
671
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
672
 
                \ConfigureHinput{fleqn}
673
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
674
 
    \Configure{equation}
675
 
  {\:xhtml{\IgnorePar\EndP}%
676
 
           \HCode{<\tbl:XV{equation}><tr><td>}\IgnorePar
677
 
   \Configure{$}{\PicMath}{\EndPicMath}{}%
678
 
  }
679
 
  {\IgnorePar\HCode{</td><td width="5\%">}}
680
 
  {\end:TTT\IgnorePar\par}
681
 
 
682
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
683
 
  
684
 
\endinput\empty\empty\empty\empty\empty\empty
685
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
686
 
 
687
 
 
688
 
 
689
 
 
690
 
 
691
 
 
692
 
 
693
 
 
694
 
 
695
 
 
696
 
 
697
 
 
698
 
 
699
 
 
700
 
 
701
 
 
702
 
 
703
 
 
704
 
 
705
 
 
706
 
 
707
 
 
708
 
 
709
 
 
710
 
 
711
 
 
712
 
 
713
 
 
714
 
 
715
 
 
716
 
 
717
 
 
718
 
 
719
 
 
720
 
 
721
 
 
722
 
 
723
 
 
724
 
 
725
 
 
726
 
 
727
 
 
728
 
 
729
 
 
730
 
 
731
 
 
732
 
 
733
 
 
734
 
 
735
 
 
736
 
 
737
 
 
738
 
 
739
 
 
740
 
 
741
 
 
742
 
 
743
 
 
744
 
 
745
 
 
746
 
 
747
 
 
748
 
 
749
 
 
750
 
 
751
 
 
752
 
 
753
 
 
754
 
 
755
 
 
756
 
 
757
 
 
758
 
 
759
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
760
 
                \ConfigureHinput{th4}
761
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
762
 
    \Configure{[]}
763
 
   {\PicDisplay $$\everymath{}\everydisplay{}}
764
 
   {$$\EndPicDisplay \ShowPar\par{\HCondtrue\noindent}%
765
 
}
766
 
\Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
767
 
 
768
 
 
769
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
770
 
  
771
 
\endinput\empty\empty\empty\empty\empty\empty
772
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
773
 
 
774
 
 
775
 
 
776
 
 
777
 
 
778
 
 
779
 
 
780
 
 
781
 
 
782
 
 
783
 
 
784
 
 
785
 
 
786
 
 
787
 
 
788
 
 
789
 
 
790
 
 
791
 
 
792
 
 
793
 
 
794
 
 
795
 
 
796
 
 
797
 
 
798
 
 
799
 
 
800
 
 
801
 
 
802
 
 
803
 
 
804
 
 
805
 
 
806
 
 
807
 
 
808
 
 
809
 
 
810
 
 
811
 
 
812
 
 
813
 
 
814
 
 
815
 
 
816
 
 
817
 
 
818
 
 
819
 
 
820
 
 
821
 
 
822
 
 
823
 
 
824
 
 
825
 
 
826
 
 
827
 
 
828
 
 
829
 
 
830
 
 
831
 
 
832
 
 
833
 
 
834
 
 
835
 
 
836
 
 
837
 
\endinput
838