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

« back to all changes in this revision

Viewing changes to share/all4ht/amstex.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
 
% amstex.4ht                           2001-12-14-17:07 %
3
 
% Copyright (C) 1997--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-14-17:07}
21
 
 
22
 
% amstex.tex
23
 
\HRestore\cases \HRestore\matrix  \HRestore\pmatrix
24
 
\def\:tempc#1{\a:text{\ifx \a:math\:UnDef\else
25
 
    \let\:temp\everymath
26
 
    \def\everymath##1{\let\everymath\:temp\append:def\a:math{##1}}%
27
 
  \fi
28
 
  \o:text@:{#1}}\b:text}
29
 
\HLet\text@\:tempc
30
 
\NewConfigure{text}{2}
31
 
\def\Sb#1\endSb{\sb{\a:multilimits
32
 
   \multilimits@#1\endSb\b:multilimits}}
33
 
\def\Sp#1\endSp{\sp{\a:multilimits
34
 
   \multilimits@#1\endSp\b:multilimits}}
35
 
\def\multilimits@{\bgroup\vspace@\Let@
36
 
 \baselineskip\fontdimen10 \scriptfont\tw@
37
 
 \advance\baselineskip\fontdimen12 \scriptfont\tw@
38
 
 \lineskip\thr@@\fontdimen8 \scriptfont\thr@@
39
 
 \lineskiplimit\lineskip  \let\halign\TeXhalign
40
 
 \vbox\bgroup\ialign\bgroup\hfil\c:multilimits
41
 
    $\m@th\scriptstyle{##}$\d:multilimits\hfil\crcr}
42
 
\NewConfigure{multilimits}{4}
43
 
\def\:temp{{\textfontii AMS}-\TeX}
44
 
\HLet\AmSTeX\:temp
45
 
\def\linebreak{\RIfM@\mathmodeerr@\linebreak\else
46
 
 \ifhmode\unskip\unkern\break \a:linebreak\else
47
 
 \vmodeerr@\linebreak\fi\fi}
48
 
\NewConfigure{linebreak}{1}
49
 
 
50
 
                                      \catcode`\#13 \catcode`\!6
51
 
\def\format:!1\\{\def\preamble@{!1}%
52
 
   \hashtoks@{#}%
53
 
   \def\l{$\m@th\the\hashtoks@$\hfil}%
54
 
   \def\c{\hfil$\m@th\the\hashtoks@$\hfil}%
55
 
   \def\r{\hfil$\m@th\the\hashtoks@$}%
56
 
   \SaveMkHalignConf:g{format}%
57
 
   \edef\preamble@@{\:span\preamble@}%
58
 
   \def\:temp!!1!!2{\expand:after{!!1!!2}\expandafter}%
59
 
\:temp       
60
 
\MkHalign#{\preamble@@}}
61
 
                                      \catcode`\#=6 \catcode`\!=12
62
 
\def\:tempc{\crcr\EndMkHalign\RecallMkHalignConfig
63
 
   \iffalse{\fi\ifnum`}=0 \fi\format:}
64
 
\HLet\format\:tempc
65
 
\let\:format\format
66
 
\let\format\o:format:
67
 
\let\MkHformat=\empty
68
 
\def\:tempc{\def\format{\global\let\format\o:format: \:format}}
69
 
\HLet\MkHformat\:tempc
70
 
\NewConfigure{format}{6}
71
 
\catcode`\#13 \catcode`\!6
72
 
\def\:tempc!1\endalign{%%
73
 
  \Mk:ialign:end
74
 
   {$\m@th\displaystyle{\@lign#}$\global\advance\and@\@ne
75
 
&$\m@th\displaystyle{{}\@lign#}%
76
 
          $\global\advance\and@\@ne\tabskip\z@skip
77
 
&\hbox\bgroup\@lign\maketag@#\maketag@\egroup\tabskip\z@skip
78
 
}{align}{!1}#%
79
 
     {\global\and@\z@
80
 
\ifingather@\append:def\T:halign{\global\and@\z@}\fi
81
 
\Let@\tabskip\centering@
82
 
}}
83
 
\catcode`\#=6 \catcode`\!=12
84
 
\expandafter\HLet\csname align \endcsname\:tempc
85
 
\expandafter\HLet\csname align \space\endcsname\:tempc
86
 
\NewConfigure{align}{6}
87
 
\catcode`\#13 \catcode`\!6
88
 
\def\:tempc!1\endgather{\Mk:ialign:end
89
 
   {$\m@th\displaystyle{#}$%
90
 
&\maketag@#\maketag@
91
 
}{gather}{!1}#{}}
92
 
\catcode`\#=6 \catcode`\!=12
93
 
\expandafter\HLet\csname gather \endcsname\:tempc
94
 
\expandafter\HLet\csname gather \space\endcsname\:tempc
95
 
\NewConfigure{gather}{6}
96
 
\def\Mk:ialign:end#1#2#3#4#5{%
97
 
   \csname a:#2\endcsname
98
 
     \ifx \EndPicture\:UnDef
99
 
        \SaveMkHalignConfig
100
 
\Configure{MkHalign}
101
 
  {} {}
102
 
  {\csname c:#2\endcsname} {\csname d:#2\endcsname }
103
 
  {\csname e:#2\endcsname}
104
 
  {\csname f:#2\endcsname }%
105
 
#5\RecallTeXcr
106
 
        \MkHalign#4{#1}#3\crcr\EndMkHalign
107
 
        \RecallMkHalignConfig
108
 
     \else
109
 
        \expand:after{\csname o:#2:\endcsname #3}\csname end#2\endcsname
110
 
     \fi
111
 
   \csname b:#2\endcsname
112
 
}
113
 
                                    \catcode`\#13 \catcode`\!6
114
 
\def\reg:smallmatrix{\vcenter\bgroup
115
 
   \SaveMkHalignConf:g{smallmatrix}%
116
 
   \Let@
117
 
   \MkHalign#{$\m@th\scriptstyle{#}$&&$\m@th
118
 
                    \scriptstyle{#}$}}
119
 
                                    \catcode`\#=6 \catcode`\!=12
120
 
\def\:tempc{\crcr\EndMkHalign
121
 
    \RecallMkHalignConfig \egroup\b:smallmatrix}
122
 
\HLet\endsmallmatrix\:tempc
123
 
\def\:temp{\pic:MkHalign{smallmatrix}}
124
 
\HLet\smallmatrix\:temp
125
 
\NewConfigure{smallmatrix}{6}
126
 
\let\:tempc\bmatrix
127
 
\pend:def\:tempc{\a:bmatrix}
128
 
\HLet\bmatrix\:tempc
129
 
\let\:tempc\endbmatrix
130
 
\append:def\:tempc{\b:bmatrix}
131
 
\HLet\endbmatrix\:tempc
132
 
\NewConfigure{bmatrix}{2}
133
 
\pend:def\vmatrix{\a:vmatrix}
134
 
\append:def\endvmatrix{\b:vmatrix}
135
 
\NewConfigure{vmatrix}{2}
136
 
\pend:def\Vmatrix{\a:Vmatrix}
137
 
\append:def\endVmatrix{\b:Vmatrix}
138
 
\NewConfigure{Vmatrix}{2}
139
 
\let\:tempc\frac
140
 
\pend:defII\:temp{\a:frac}
141
 
\append:defII\:temp{\b:frac}
142
 
\HLet\frac\:temp
143
 
\NewConfigure{frac}{2}
144
 
\let\:tempc\dfrac
145
 
\pend:defII\:temp{\a:dfrac}
146
 
\append:defII\:temp{\b:dfrac}
147
 
\HLet\dfrac\:temp
148
 
\NewConfigure{dfrac}{2}
149
 
\let\:tempc\tfrac
150
 
\pend:defII\:temp{\a:tfrac}
151
 
\append:defII\:temp{\b:tfrac}
152
 
\HLet\tfrac\:temp
153
 
\NewConfigure{tfrac}{2}
154
 
\let\:tempc\binom
155
 
\pend:defII\:temp{\a:binom}
156
 
\append:defII\:temp{\b:binom}
157
 
\HLet\binom\:temp
158
 
\NewConfigure{binom}{2}
159
 
\let\:tempc\dbinom
160
 
\pend:defII\:temp{\a:dbinom}
161
 
\append:defII\:temp{\b:dbinom}
162
 
\HLet\dbinom\:temp
163
 
\NewConfigure{dbinom}{2}
164
 
\let\:tempc\tbinom
165
 
\pend:defII\:temp{\a:tbinom}
166
 
\append:defII\:temp{\b:tbinom}
167
 
\HLet\tbinom\:temp
168
 
\NewConfigure{tbinom}{2}
169
 
\let\:temp\boxed
170
 
\pend:defI\:temp{\a:boxed}
171
 
\append:defI\:temp{\b:boxed}
172
 
\HLet\boxed\:temp
173
 
\NewConfigure{boxed}{2}
174
 
                                    \catcode`\#13 \catcode`\!6
175
 
\def\reg:gathered{\vcenter\bgroup
176
 
   \SaveMkHalignConf:g{gathered}%
177
 
   \Let@
178
 
   \MkHalign#{$\m@th\displaystyle{#}$}}
179
 
                                    \catcode`\#=6 \catcode`\!=12
180
 
\def\:tempc{\crcr\EndMkHalign
181
 
    \RecallMkHalignConfig \egroup\b:gathered}
182
 
\HLet\endgathered\:tempc
183
 
\def\:temp{\pic:MkHalign{gathered}}
184
 
\HLet\gathered\:temp
185
 
\NewConfigure{gathered}{6}
186
 
\let\:insplit\insplit@
187
 
\def\insplit@{\let\halign\TeXhalign \:insplit}
188
 
                                    \catcode`\#13 \catcode`\!6
189
 
\def\reg:aligned@{\bgroup
190
 
   \SaveMkHalignConf:g{aligned@}%
191
 
   \Let@
192
 
   \MkHalign#{$\m@th\displaystyle{#}$&%
193
 
              $\m@th\displaystyle{{}#}$}}
194
 
                                    \catcode`\#=6 \catcode`\!=12
195
 
\def\al:gned#1{%
196
 
   \Configure{aligned@}{\csname a:#1\endcsname}%
197
 
       {\csname b:#1\endcsname}{\csname c:#1\endcsname}%
198
 
       {\csname d:#1\endcsname}{\csname e:#1\endcsname}%
199
 
       {\csname f:#1\endcsname}\pic:MkHalign{#1}}
200
 
\NewConfigure{aligned@}{6}
201
 
\def\:tempc{\crcr\EndMkHalign
202
 
    \RecallMkHalignConfig \egroup\b:aligned@}
203
 
\HLet\endaligned\:tempc
204
 
\def\:temp{\al:gned{aligned}}
205
 
\HLet\aligned\:temp
206
 
\def\reg:aligned{\vcenter\reg:aligned@}
207
 
\NewConfigure{aligned}{6}
208
 
\HLet\endtopaligned\endaligned
209
 
\def\:tempc{\al:gned{topaligned}}
210
 
\HLet\topaligned\:tempc
211
 
\def\reg:topaligned{\null\vtop\reg:aligned@}
212
 
\NewConfigure{topaligned}{6}
213
 
\HLet\endbotaligned\endaligned
214
 
\def\:tempc{\al:gned{botaligned}}
215
 
\HLet\botaligned\:tempc
216
 
\def\reg:botaligned{\null\vtop\reg:aligned@}
217
 
\NewConfigure{botaligned}{6}
218
 
\def\:tempc{\crcr\EndMkHalign
219
 
    \RecallMkHalignConfig \egroup\b:alignedat}
220
 
\HLet\endalignedat\:tempc
221
 
\def\:tempc{\al:gned{alignedat}}
222
 
\HLet\alignedat\:tempc
223
 
\NewConfigure{alignedat}{6}
224
 
                                    \catcode`\#13 \catcode`\!6
225
 
\def\reg:alignedat!1{\null\vcenter\bgroup
226
 
   \SaveMkHalignConf:g{alignedat}%
227
 
   \hashtoks@{#}{\let\@lign\empty \doat@{!1}}\Let@
228
 
   \pend:def\preamble@@{\:span}%
229
 
   \def\:temp!!1!!2{\expand:after{!!1!!2}\expandafter}%
230
 
\:temp       
231
 
\MkHalign#{\preamble@@}}
232
 
                                    \catcode`\#=6 \catcode`\!=12
233
 
\catcode`\#13 \catcode`\!6
234
 
\def\:tempc!1!2\endalignat{%
235
 
  \Mk:ialign:end{\preamble@@}{alignat}{!2}#%
236
 
     {\hashtoks@{#}\ifx \ifinany@\:Undef\else  \inany@true\fi
237
 
\xat@false
238
 
\def\tag{\global\tag@true\count@!1\relax\multiply\count@\tw@
239
 
   \xdef\tag@{}\loop\ifnum\count@>\and@\xdef\tag@{&\tag@}%
240
 
                \advance\count@\m@ne \repeat\tag@}%
241
 
%
242
 
\measuring@false \Let@
243
 
{\let\@lign=\empty \attag@{!1}}%
244
 
\let\allowdisplaybreak  =\empty
245
 
\pend:def\preamble@@{\:span}%
246
 
%
247
 
      \def\:temp!!1!!2{\expand:after{!!1!!2}\expandafter}%
248
 
\:temp       
249
 
%
250
 
     }}
251
 
\catcode`\#=6 \catcode`\!=12
252
 
\expandafter\HLet\csname alignat \endcsname\:tempc
253
 
\NewConfigure{alignat}{6}
254
 
\catcode`\#13 \catcode`\!6
255
 
\def\:tempc!1!2\endxalignat{%
256
 
  \Mk:ialign:end{\preamble@@}{xalignat}{!2}#%
257
 
     {\hashtoks@{#}\ifx \ifinany@\:Undef\else  \inany@true\fi
258
 
\xat@false
259
 
\def\tag{\global\tag@true\count@!1\relax\multiply\count@\tw@
260
 
   \xdef\tag@{}\loop\ifnum\count@>\and@\xdef\tag@{&\tag@}%
261
 
                \advance\count@\m@ne \repeat\tag@}%
262
 
%
263
 
\measuring@false \Let@
264
 
{\let\@lign=\empty \attag@{!1}}%
265
 
\let\allowdisplaybreak  =\empty
266
 
\pend:def\preamble@@{\:span}%
267
 
%
268
 
      \def\:temp!!1!!2{\expand:after{!!1!!2}\expandafter}%
269
 
\:temp       
270
 
%
271
 
     }}
272
 
\catcode`\#=6 \catcode`\!=12
273
 
\expandafter\HLet\csname xalignat \endcsname\:tempc
274
 
\NewConfigure{xalignat}{6}
275
 
                                  \catcode`\#13 \catcode`\!6
276
 
\def\:tempc!1!2\endxxalignat{%
277
 
  \Mk:ialign:end{\preamble@@}{xxalignat}{!2}#%
278
 
     {\hashtoks@{#}\ifx \ifinany@\:Undef\else  \inany@true\fi
279
 
 \measuring@false \Let@
280
 
{\let\@lign=\empty \xxattag@{!1}}%
281
 
\let\allowdisplaybreak  =\empty
282
 
\pend:def\preamble@@{\:span}%
283
 
%
284
 
      \def\:temp!!1!!2{\expand:after{!!1!!2}\expandafter}%
285
 
\:temp       
286
 
%
287
 
     }}
288
 
                                  \catcode`\#=6 \catcode`\!=12
289
 
\expandafter\HLet\csname xxalignat \endcsname\:tempc
290
 
\NewConfigure{xxalignat}{6}
291
 
\let\:tempc\endmultline
292
 
\append:def\:tempc{\b:multline}
293
 
\HLet\endmultline\:tempc
294
 
\def\:tempc{\al:gned{multline}}
295
 
\HLet\multline\:tempc
296
 
\let\reg:multline\o:multline:
297
 
\NewConfigure{multline}{4}
298
 
\let\e:multline\empty
299
 
\let\f:multline\empty
300
 
                                    \catcode`\#13 \catcode`\!6
301
 
\def\:tempc{\let\sv:halign\halign
302
 
   \def\halign!!1\crcr{%
303
 
      \let\halign\sv:halign
304
 
      \SaveMkHalignConf:g{multline}%
305
 
      \MkHalign#{\Let@\hbox{$\m@th\displaystyle\hfil{}#$}%
306
 
}}%
307
 
   \o:rmultline@@@:}
308
 
                                    \catcode`\#=6 \catcode`\!=12
309
 
\HLet\rmultline@@@\:tempc
310
 
\def\:tempc{\rmultline@@@}
311
 
\HLet\lmultline@@@\:tempc
312
 
\def\:tempc{\crcr\EndMkHalign\RecallMkHalignConfig }
313
 
\HLet\lendmultline@\:tempc
314
 
\def\:tempc{\lendmultline@}
315
 
\HLet\rendmultline@\:tempc
316
 
 
317
 
 
318
 
 
319
 
                                    \catcode`\#13 \catcode`\!6
320
 
\def\reg:matrix{\vcenter\bgroup
321
 
   \SaveMkHalignConf:g{matrix}%
322
 
   \Let@
323
 
   \MkHalign#{$\m@th#$&&$\m@th#$}}
324
 
                                    \catcode`\#=6 \catcode`\!=12
325
 
\def\:tempc{\crcr\EndMkHalign \RecallMkHalignConfig \egroup\b:matrix}
326
 
\HLet\endmatrix\:tempc
327
 
\def\:temp{\pic:MkHalign{matrix}}
328
 
\HLet\matrix\:temp
329
 
\NewConfigure{matrix}{6}
330
 
\let\:tempc\pmatrix
331
 
\pend:def\:tempc{\a:pmatrix}
332
 
\HLet\pmatrix\:tempc
333
 
\let\:tempc\endpmatrix
334
 
\append:def\:tempc{\b:pmatrix}
335
 
\HLet\endpmatrix\:tempc
336
 
\NewConfigure{pmatrix}{2}
337
 
 
338
 
 
339
 
\pend:def\cases{\a:cases\MkHformat}
340
 
\append:def\endcases{\b:cases}
341
 
\NewConfigure{cases}{2}
342
 
 
343
 
\Hinput{amstex}
344
 
\endinput
345