1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
% amsproc.4ht 2001-12-14-17:07 %
3
% Copyright (C) 1997--2001 Eitan M. Gurari %
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. %
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} %
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}
23
\NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}%
24
\c:def\cptC:{#3}\c:def\cptD:{#4}}
25
\long\def\@makecaption#1#2{%
27
\cptB:}{\cptC:{#2}\cptD:}}
30
\pend:def\caption{\SkipRefstepAnchor}
31
\append:def\quote{\par\@totalleftmargin\z@}
32
\long\def\c:theindex:#1#2#3#4#5#6#7#8#9{%
34
\ifx \idx:item\:UnDef \ifx \LNK\:UnDef \ifx \LNKno\:UnDef
35
\:warning{Process with
36
^^J\space\space tex '\string\def\string\filename
37
{{\jobname}{ind}{idx}{in}{out}} \noexpand\input\space idxmake.4ht'
38
^^J\space\space makeindex -o \jobname .out \jobname .in
40
^^J\space\space makeindex -o \jobname .ind \jobname .idx
41
^^JOn some platforms, the quotation marks ' should be
42
^^J replaced by double quotation marks " or eliminated
45
\def\idx:item{\SaveEverypar\ht:everypar{}#1}%
46
\def\endtheindex{\idx:item#2\RecallEverypar}%
47
\def\item{\idx:item\let\index\@gobble #3\def\idx:item{#4}}%
48
\def\subitem{\idx:item\let\index\@gobble #5\def\idx:item{#6}}%
49
\def\subsubitem{\idx:item\let\index\@gobble #7\def\idx:item{#8}}}%
50
\def\indexspace{\idx:item#9\let\idx:item\empty}}
51
\let\o:maketitle:\maketitle
52
\def\maketitle{\bgroup
53
\ifx \EndPicture\:UnDef
55
\Configure{HtmlPar}{}{}{}{}%
56
\ConfigureEnv{center}{\empty}{}{\empty}{\empty}
57
\Configure{tabular}{}{}{}{\e:mktl}{}{}%
58
\ConfigureEnv{tabular}{\empty}{}{}{}%
60
\pend:def\@title{\a:ttl}\append:def\@title{\b:ttl}%
61
\pend:def\@date{\a:dat}\append:def\@date{\b:dat}%
62
\pend:def\@author{\a:aut}\append:def\@author{\b:aut}%
66
\pic:gobble\a:mktl \o:maketitle: \pic:gobble\b:mktl
67
\egroup \let\maketitle\empty}
68
\NewConfigure{maketitle}[4]{\c:def\a:mktl{#1}\c:def\b:mktl{#2}%
69
\c:def\a:ttl{#3}\c:def\b:ttl{#4}}
70
\NewConfigure{thanks author date and}[8]{%
71
\c:def\a:thanks{#1}\c:def\b:thanks{#2}\c:def\a:aut{#3}\c:def\b:aut{#4}%
72
\c:def\a:dat{#5}\c:def\b:dat{#6}\c:def\a:and{#7}\c:def\e:mktl{#8}}
76
\pend:defII\@starttoc{\par}
77
\pend:def\@settitle{\a:title} \append:def\@settitle{\b:title}
78
\pend:def\@setauthors{\a:authors} \append:def\@setauthors{\b:authors}
79
\pend:def\@setdate{\a:date} \append:def\@setdate{\b:date}
80
\pend:def\@setkeywords{\a:keywords} \append:def\@setkeywords{\b:keywords}
81
\def\@setthanks{\def\thanks##1{\par
82
\a:thanks##1\@addpunct.\b:thanks}\thankses}
83
\pend:def\@setabstract{\a:abstract} \append:def\@setabstract{\b:abstract}
84
\NewConfigure{title}[2]{\def\a:title{#1}\def\b:title{#2}}
85
\NewConfigure{authors}[2]{\def\a:authors{#1}\def\b:authors{#2}}
86
\NewConfigure{date}[2]{\def\a:date{#1}\def\b:date{#2}}
87
\NewConfigure{keywords}[2]{\def\a:keywords{#1}\def\b:keywords{#2}}
88
\NewConfigure{thanks}[2]{\def\a:thanks{#1}\def\b:thanks{#2}}
89
\NewConfigure{abstract}[2]{\def\a:abstract{#1}\def\b:abstract{#2}}
91
\def\:temp#1#2!*?: {\def\:temp{#1}}
92
\expandafter\:temp\usepackage!*?:
93
\def\:tempa{\@latex@e@error}
94
\ifx \:temp\:tempa \else
95
\def\:tempa#1#2#3#4{\tmp:toks{#1{#2}}%
96
\long\expandafter\edef\csname #4 \endcsname{\the\tmp:toks
97
{\expandafter\noexpand
98
\csname o:\expandafter\:gobble\string #3:\endcsname}}}
100
\expandafter\expandafter\expandafter\:tempa\csname #1 \endcsname{#1}}
109
\ifx \deferred@thm@head\:UnDef\else
110
\ifx \deferred@thm@head\:UnDef\else
111
\expandafter\dth@everypar\expandafter{%
113
\edef\:temp{\the\ht:everypar}\ifx \:temp\empty
114
\ht:everypar{\HtmlPar}\ShowPar
117
\def\deferred@thm@head#1{%
118
\if@inlabel \indent \par \fi
120
\adjust@parskip@nobreak
122
\addpenalty\@beginparpenalty
124
\addvspace{-\parskip}%
127
\ht:everypar\dth@everypar
128
\item[\normalfont#1]%
135
\edef\:temp{\expandafter\eorem:syle \meaning\:temp}%
136
\expandafter\let\expandafter\@tmp:sv\csname th@\:temp\endcsname
138
\expandafter\append:def\csname th@##1\endcsname{%
139
\expandafter\let\csname th@##1\endcsname=\@tmp:sv
140
\let\thm:headnl=\thmheadnl
141
\pend:def\thmheadnl{\let\thmheadnl\thm:headnl \b:newtheorem}%
142
\append:def\thmheadnl{\expandafter
143
\ht:everypar\expandafter{\the\ht:everypar
144
\ht:everypar{\HtmlPar}}}}}%
145
\expandafter\:tempa\expandafter{\:temp}%
146
\let\sv:trivlist=\trivlist
147
\def\trivlist{\let\trivlist\sv:trivlist \let\sv:trivlist\:unDef
148
\a:newtheorem \trivlist}%
149
\aftergroup\c:newtheorem
152
\HRestore\@endtheorem
154
\def\bgroup{\catcode`\\=0 \catcode`\t=11 }
160
/edef~{/def/noexpand/eorem:syle##1\th@##2 {##2}}
162
\expandafter\egroup ~
163
\long\def\:temp[#1]{\par\a:proof
164
\csname o:\string\proof :\endcsname[#1]\b:proof}
165
\expandafter\HLet\csname \string\proof \endcsname=\:temp
166
\append:def\endproof{\c:proof}
167
\NewConfigure{proof}{3}
169
\def\:tempc{\ifmmode \mathqed \else
170
\leavevmode \a:qed\hbox {\qedsymbol}\b:qed\fi}
171
\expandafter\HLet\csname qed \endcsname=\:tempc
172
\NewConfigure{qed}{2}
175
\Configure{UndefinedSec}{likepart}
176
\Configure{UndefinedSec}{likechapter}
177
\Configure{UndefinedSec}{likesection}
178
\Configure{UndefinedSec}{likesubsection}
181
\ifnum \c@secnumdepth >-2\relax
182
\SkipRefstepAnchor \refstepcounter{part}%
183
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
185
\addcontentsline{toc}{part}{#1}%
187
\csname @endpart\endcsname}
189
\Def:Section\part{\thepart}{#1}
194
{\let\addcontentsline\:gobbleIII\no@part[#1]{}}%
195
\HtmlEnv \Toc:Title{#1}\:part{#2}}
196
\Def:Section\likepart{}{#1}
197
\let\:likepart\likepart
201
{\let\addcontentsline\:gobbleIII\no@spart{}}%
202
\HtmlEnv \:likepart{#1}}
204
\let\no@section\section
205
\Def:Section\section{\ifnum \c:secnumdepth>\c@secnumdepth \else
207
\let\no:section\section
208
\def\section{\rdef:sec{section}}
209
\Def:Section\likesection{}{#1}
210
\let\:likesection\likesection
211
\let\likesection\:UnDef
213
\let\no@subsection\subsection
214
\Def:Section\subsection{\ifnum \c:secnumdepth>\c@secnumdepth \else
215
\thesubsection \fi}{#1}
216
\let\no:subsection\subsection
217
\def\subsection{\rdef:sec{subsection}}
218
\Def:Section\likesubsection{}{#1}
219
\let\:likesubsection\likesubsection
220
\let\likesubsection\:UnDef
222
\let\no@subsubsection\subsubsection
223
\Def:Section\subsubsection{\ifnum \c:secnumdepth>\c@secnumdepth \else
224
\thesubsubsection \fi}{#1}
225
\let\no:subsubsection\subsubsection
226
\def\subsubsection{\rdef:sec{subsubsection}}
227
\Def:Section\likesubsubsection{}{#1}
228
\let\:likesubsubsection\likesubsubsection
229
\let\likesubsubsection\:UnDef
231
\let\no@paragraph\paragraph
232
\Def:Section\paragraph{\ifnum \c:secnumdepth>\c@secnumdepth \else
233
\theparagraph \fi}{#1}
234
\let\no:paragraph\paragraph
235
\def\paragraph{\rdef:sec{paragraph}}
236
\Def:Section\likeparagraph{}{#1}
237
\let\:likeparagraph\likeparagraph
238
\let\likeparagraph\:UnDef
239
\let\no@subparagraph\subparagraph
240
\Def:Section\subparagraph{\ifnum \c:secnumdepth>\c@secnumdepth \else
241
\thesubparagraph \fi}{#1}
242
\let\no:subparagraph\subparagraph
243
\def\subparagraph{\rdef:sec{subparagraph}}
244
\Def:Section\likesubparagraph{}{#1}
245
\let\:likesubparagraph\likesubparagraph
246
\let\likesubparagraph\:UnDef
253
\pend:defI\@setauthors{\bgroup
254
\def\@no@lnbk ########1[########2]{\a:newline}}
255
\append:defI\@setauthors{\egroup}
257
\def\no@sect#1#2#3#4#5#6[#7]#8{%
258
\edef\@toclevel{\ifnum#2=\@m 0\else\number#2\fi}%
259
\ifnum #2>\c@secnumdepth \let\@secnumber\@empty
260
\else \@xp\let\@xp\@secnumber\csname the#1\endcsname
261
\refstepcounter{#1}\fi
267
\def\endtable{\end@float}
268
\def\endfigure{\end@float}
270
\def\:tableofcontents{\futurelet\:temp\:TOC}
272
\edef\auto:toc{\noexpand\:TableOfContents[\ifx \auto:toc\:UnDef
273
#1\else \auto:toc \fi]} \auto:toc
274
\global\let\auto:toc\:UnDef }
276
\def\tableofcontents{%
277
\ifx\contentsname\empty \else
278
\ifx\contentsname\:UnDef \else
280
\section*{\contentsname}%
287
\noexpand\ifx [\noexpand\:temp
288
\noexpand\expandafter\noexpand\:TableOfContents
290
\noexpand\Auto:ent{\ifnum \c@tocdepth >\m@ne part,likepart,\fi
291
\ifnum \c@tocdepth >\z@ section,likesection,\fi
292
\ifnum \c@tocdepth >1 subsection,likesubsection,\fi
293
\ifnum \c@tocdepth >2 subsubsection,likesubsubsection,\fi
294
\ifnum \c@tocdepth >3 paragraph,\fi
295
\ifnum \c@tocdepth >4 subparagraph,\fi
298
\ConfigureToc{likeparagraph} {}{\empty}{}{\newline}
299
\ConfigureToc{likepart} {}{\empty}{}{\newline}
300
\ConfigureToc{likesection} {}{\empty}{}{\newline}
301
\ConfigureToc{likesubparagraph} {}{\empty}{}{\newline}
302
\ConfigureToc{likesubsection} {}{\empty}{}{\newline}
303
\ConfigureToc{likesubsubsection} {}{\empty}{}{\newline}
304
\ConfigureToc{paragraph} {\empty}{\ }{}{\newline}
305
\ConfigureToc{part} {\empty}{\ }{}{\newline}
306
\ConfigureToc{section} {\empty}{\ }{}{\newline}
307
\ConfigureToc{subparagraph} {\empty}{\ }{}{\newline}
308
\ConfigureToc{subsection} {\empty}{\ }{}{\newline}
309
\ConfigureToc{subsubsection} {\empty}{\ }{}{\newline}