Debian Codegraph @

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

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % amsppt.4ht 2009-05-21-09:32 %
3 % Copyright (C) 1997--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 \HRestore\footnote
30 \append:def\EndPreamble{\let\logo@\sv:logo \let\sv:logo=\empty}
31 \append:def\block{\ifx \EndPicture\:UnDef \:block
32 \pend:def\endblock{\end:block} \fi}
33 \NewConfigure{block}{2}
34 \def\plainend{\end} \let\end\sv:end
35
36 \let\:endtopmatter\endtopmatter
37 \def\endtopmatter{%
38 \ifmonograph@\else
39 \ifx \preabstract\relax \let\preabstract\empty\fi
40 \ifx\thesubjclass@\empty@\else
41 \let\:thesubjclass\thesubjclass@ \let\thesubjclass@\empty
42 \pend:def\preabstract{\a:subjclass\:thesubjclass\b:subjclass}%
43 \fi
44 \ifx\thekeywords@\empty@\else
45 \let\:thekeywords\thekeywords@ \let\thekeywords@\empty
46 \pend:def\preabstract{\a:keywords\:thekeywords\b:keywords}%
47 \fi
48 \ifx\thethanks@\empty@\else
49 \let\:thethanks\thethanks@ \let\thethanks@\empty
50 \pend:def\preabstract{\a:thanks\:thethanks\b:thanks}%
51 \fi
52 \fi
53 %
54 \let\inslogo@\logo@
55 \ifx\thedate@\empty@\else
56 \let\:predate\predate
57 \def\predate{\:predate
58 \let\sv:line\line \def\line{\let\line\sv:line\hbox}}%
59 %
60 \let\thedate:\thedate@
61 \def\thedate@{\a:date\thedate:\b:date}\fi
62 \ifvoid\tocbox@\else \ifx \a:newtocdefs\:UnDef
63 \setbox\tocbox@=\vtop{\IgnorePar
64 \ifmonograph@\else
65 \centerline{\headfont@\ignorespaces\toc:title\unskip}\nobreak
66 \fi
67 %
68 \ifx \toc:list\:UnDef
69 \def\toc:list{\TableOfContents[title,specialhead,head,%
70 subhead,subsubhead]}%
71 \else
72 \pend:def\toc:list{\TableOfContents[}%
73 \append:def\toc:list{]}%
74 \fi
75 \toc:list
76 }%
77 \fi \fi
78 \csname :endtopmatter\endcsname \b:topmatter }
79 \pend:def\topmatter{\a:topmatter}
80 \NewConfigure{topmatter}{2}
81 \NewConfigure{newtocdefs}[1]{\c:def\a:newtocdefs{#1}}
82 \let\o:newtocdefs:=\newtocdefs
83 \def\newtocdefs{\o:newtocdefs:
84 \ifx \a:newtocdefs\:UnDef
85 \let\toc:list\empty
86 \expandafter\def\csname title\endcsname ##1\endtitle{%
87 \xdef\toc:list{\ifx \toc:list\empty\else ,\fi title}}%
88 \expandafter\def\csname specialhead\endcsname##1\endspecialhead{%
89 \xdef\toc:list{\ifx \toc:list\empty\else ,\fi specialhead}}%
90 \expandafter\def\csname head\endcsname##1 ##2\endhead{%
91 \xdef\toc:list{\ifx \toc:list\empty\else ,\fi head}}%
92 \expandafter\def\csname subhead\endcsname##1 ##2\endsubhead{%
93 \xdef\toc:list{\ifx \toc:list\empty\else ,\fi subhead}}%
94 \expandafter\def\csname subsubhead\endcsname##1 ##2\endsubsubhead{%
95 \xdef\toc:list{\ifx \toc:list\empty\else ,\fi subsubhead}}%
96 \else \ifx \a:newtocdefs\empty
97 \HAssign\TocCount0
98 \expandafter\def\csname title\endcsname##1\endtitle{%
99 \toctitle{}{##1}{}}%
100 \expandafter\def\csname specialhead\endcsname##1\endspecialhead{%
101 \tocspecialhead{}{##1}{}}%
102 \expandafter\def\csname head\endcsname##1 ##2\endhead{%
103 \tochead{##1}{##2}{}}%
104 \expandafter\def\csname subhead\endcsname##1 ##2\endsubhead{%
105 \tocsubhead{##1}{##2}{}}%
106 \expandafter\def\csname subsubhead\endcsname##1 ##2\endsubsubhead{%
107 \tocsubsubhead{##1}{##2}{}}%
108 \else
109 \a:newtocdefs
110 \fi \fi
111 %
112 \ifx \a:newtocdefs\:UnDef
113 \else \a:TableOfContents
114 \pend:def\endtoc{\c:TableOfContents}%
115 \fi}
116 \pend:def\toc{\SaveEndP
117 \ifx \a:newtocdefs\:UnDef
118 \let\:tempc\FN@
119 \def\FN@{%
120 \let\FN@\:tempc
121 \let\:tempc\nextii@
122 \def\nextii@########1{\let\nextii@\:tempc
123 \gdef\toc:title{########1}\nextii@{########1}}%
124 \FN@}%
125 \fi
126 }
127 \append:def\endtoc{\RecallEndP}
128 \def\c:toc:{\Configure{TableOfContents}}
129 \NewConfigure{subjclass}{2}
130 \NewConfigure{thanks}{2}
131 \NewConfigure{keywords}{2}
132 \let\:author\author
133 \def\author#1\endauthor{\:author{\a:author#1\b:author}\endauthor}
134 \let\:affil\affil
135 \def\affil#1\endaffil{\:affil{\a:affil#1\b:affil}\endaffil}
136 \NewConfigure{affil}{2}
137 \def\abstract{\let\savedef@\abstract
138 \def\abstract{\let\abstract\savedef@
139 \setbox\abstractbox@\vbox\bgroup\IgnorePar \noindent
140 \expandafter\everydisplay\expandafter{\expandafter
141 \everydisplay\expandafter{\the\everydisplay}}$$\vbox\bgroup
142 \def\envir@end{\endabstract}\advance\hsize-2\indenti
143 \def\usualspace{\enspace}\eightpoint
144 \IgnorePar \noindent \frills@{{\smc
145 \a:abstract Abstract.\b:abstract\enspace}}}%
146 \nofrillscheck\abstract}
147 \append:def\abstract{\c:abstract}
148 \pend:def\endabstract{\d:abstract}
149 \NewConfigure{abstract}{4}
150 \NewConfigure{date}{2}
151
152 \def\par@{\ht:everypartoks@\expandafter{\the\ht:everypar}%
153 \HtmlPar \ht:everypar{\HtmlPar}}
154 \def\nobreak{\penalty\@M
155 \ifvmode\gdef\penalty@{\global\let\penalty@\penalty\count@@@}%
156 \ht:everypar{\global\let\penalty@\penalty
157 \HtmlPar \ht:everypar{\HtmlPar}}\fi}
158
159
160 \def\title{\let\savedef@\title
161 \def\title##1\endtitle{\let\title\savedef@
162 \global\setbox\titlebox@\vtop{\tenpoint\a:title
163 \raggedcenter@ \frills@\uppercasetext@{##1}\endgraf\b:title}%
164 }%
165 \nofrillscheck\title}
166 \def\proclaim#1{\csname o:proclaim:\endcsname
167 {\a:proclaim#1\b:proclaim}}
168 \def\endproclaim{\revert@envir\endproclaim\c:proclaim \par\rm}
169 \let\:specialhead\specialhead
170 \def\specialhead#1\endspecialhead{\let\specialheadfont:\specialheadfont@
171 \ifx \ams:refs\:UnDef \def\ams:refs{\rm\ams:specialhead}\fi
172 \let\specialheadfont@\empty
173 \csname :specialhead\endcsname
174 \ams:specialhead{#1}\let\frills@\eat@ \endspecialhead
175 \let\specialheadfont@\specialheadfont: }
176 \let\ams:specialhead\specialhead
177 \NewSection\specialhead{}
178 \let\:temp=\specialhead \let\specialhead\ams:specialhead
179 \let\ams:specialhead\:temp
180 \let\:head\head
181 \def\head#1\endhead{\let\headfont:\headfont@
182 \ifx \ams:refs\:UnDef \def\ams:refs{\rm\ams:head}\fi
183 \let\headfont@\empty
184 \csname :head\endcsname
185 \ams:head{#1}\let\frills@\eat@ \endhead
186 \let\headfont@\headfont: }
187 \let\ams:head\head
188 \NewSection\head{}
189 \let\:temp\head \let\head\ams:head
190 \let\ams:head\:temp
191 \let\:subhead\subhead
192 \def\subhead#1\endsubhead{\let\subheadfont:\subheadfont@
193 \ifx \ams:refs\:UnDef \def\ams:refs{\rm\ams:subhead}\fi
194 \let\subheadfont@\empty \csname :subhead\endcsname
195 \ams:subhead{#1}\let\frills@\eat@ \endsubhead
196 \let\subheadfont@\subheadfont: }
197 \let\ams:subhead\subhead
198 \NewSection\subhead{}
199 \let\:temp\subhead \let\subhead\ams:subhead
200 \let\ams:subhead\:temp
201 \let\:subsubhead\subsubhead
202 \def\subsubhead#1\endsubsubhead{\let\subsubheadfont:\subsubheadfont@
203 \ifx \ams:refs\:UnDef \def\ams:refs{\rm\ams:subsubhead}\fi
204 \let\subsubheadfont@\empty \csname :subsubhead\endcsname
205 \ams:subsubhead{#1}\let\frills@\eat@ \endsubsubhead
206 \let\subsubheadfont@\subsubheadfont: }
207 \let\ams:subsubhead\subsubhead
208 \NewSection\subsubhead{}
209 \let\:temp\subsubhead \let\subsubhead\ams:subsubhead
210 \let\ams:subsubhead\:temp
211
212
213 \let\:refstyle\refstyle
214 \let\endref:\endref@
215 \def\endref@{%
216 \pend:defI\keyformat{\a:keyformat}%
217 \append:defI\keyformat{\b:keyformat}%
218 \def\refstyle##1{\let\:tempa\keyformat \:refstyle{##1}%
219 \ifx \:tempa\keyformat \else
220 \pend:defI\keyformat{\a:keyformat}%
221 \append:defI\keyformat{\b:keyformat}\fi }
222 \def\:temp##1{%
223 \expandafter\ifvoid\csname ##1box@\endcsname\else
224 \expandafter\setbox\csname ##1box@\endcsname=\hbox
225 {\csname a:##1\endcsname \expandafter\unhbox\csname
226 ##1box@\endcsname\csname b:##1\endcsname}\fi}
227 \ifx \MRbox@\:UnDef\else \:temp{MR}\fi
228 \:temp{book}
229 \:temp{bookinfo}
230 \:temp{by}
231 \:temp{ed}
232 \:temp{finalinfo}
233 \:temp{issue}
234 \:temp{jour}
235 \:temp{key}
236 \:temp{lang}
237 \:temp{miscnote}
238 \:temp{moreref}
239 \:temp{pages}
240 \:temp{paper}
241 \:temp{paperinfo}
242 \:temp{procinfo}
243 \:temp{publaddr}
244 \:temp{publ}
245 \:temp{vol}
246 \:temp{yr}
247 \endref: }
248 \pend:def\ref{\Configure{HtmlPar}{}{}{}{}\a:ref}
249 \append:def\endref{\b:ref}
250 \pend:defIII\makerefbox{\IgnorePar}
251 \let\:Refs\Refs
252 \def\Refs{\bgroup
253 \let\sv:nofrillscheck\nofrillscheck
254 \def\nofrillscheck{%
255 \expand:after{\let\::Refs=}\csname Refs\endcsname
256 \expandafter\def\csname Refs\endcsname####1{%
257 \def\:temp{####1}\ifx\:temp\empty \::Refs{}\else
258 \::Refs{\csname ams:refs\endcsname{####1}}\fi
259 %
260 \let\sv:ref\ref \def\ref{\let\ref\sv:ref \a:Refs\ref}%
261 \pend:def\endRefs{\b:Refs}\append:def\endRefs{\egroup}}%
262 \sv:nofrillscheck}%
263 \csname :Refs\endcsname}
264 \def\:temp#1{\edef\:tempa{\long
265 \def\expandafter\noexpand\csname c:#1:\endcsname
266 ####1####2{\def\expandafter\noexpand\csname a:#1\endcsname{####1}
267 \def\expandafter\noexpand\csname b:#1\endcsname{####2}}}\:tempa}
268 \ifx \MRbox@\:UnDef\else \:temp{MR}\fi
269 \:temp{book}
270 \:temp{bookinfo}
271 \:temp{by}
272 \:temp{ed}
273 \:temp{finalinfo}
274 \:temp{issue}
275 \:temp{jour}
276 \:temp{key}
277 \:temp{lang}
278 \:temp{miscnote}
279 \:temp{moreref}
280 \:temp{pages}
281 \:temp{paper}
282 \:temp{paperinfo}
283 \:temp{procinfo}
284 \:temp{publaddr}
285 \:temp{publ}
286 \:temp{vol}
287 \:temp{yr}
288 \:temp{ref}
289 \:temp{keyformat}
290 \:temp{Refs}
291 \def\makerefbox#1#2#3{\endgraf
292 \setbox\z@\lastbox
293 \global\setbox\@ne\hbox{\unhbox\holdoverbox
294 \ifvoid\z@\else\unhbox\z@\unskip\unskip\unpenalty\fi}%
295 \egroup
296 \setbox\curbox\box \@ne
297 \ifvoid#2\else\Err@{Redundant \string#1; duplicate use, or
298 mutually exclusive information already given}\fi
299 \def\curbox{#2}\setbox\curbox\vbox\bgroup \hsize\maxdimen \noindent
300 #3}
301
302 \let\:roster\roster
303 \def\roster{\IgnorePar
304 \let\roster:par\par
305 \def\par{\let\par\roster:par \par
306 \def\:tempa{\ifx \:temp\par@ \IgnorePar\leavevmode\IgnorePar\fi}%
307 \futurelet\:temp\:tempa}%
308 \:roster \let\ams:tem\item
309 \def\item{\IgnorePar\EnditemitemList \ams:tem}%
310 \a:roster}
311 \pend:def\endroster{\EnditemitemList\b:roster}
312 \pend:def\itembox@{\ifx \EndPicture\:UnDef
313 \a:itembox@ \therosteritem@ \b:itembox@ \expandafter\:gobbleII\fi}
314 \NewConfigure{roster}[4]{\def\:temp{#1#2#3#4}\ifx \:temp\empty
315 \else \def\a:roster{\ii:conf#1}\def\b:roster{#2}%
316 \def\a:itembox@{#3}\def\b:itembox@{#4}\fi
317 \long\def\:temp##1##2##3##4{\def\:temp{##1##2##3##4}\ifx \:temp\empty
318 \else
319 \def\ii:conf{\Configure{itemitem}{##1}{##2}{##3}{##4}}\fi}\:temp}
320 \ifx \EnditemitemList\:UnDef
321 \def\:temp#1{\:iilist \let\:iilist\empty
322 \def\EnditemitemList{\end:iilist \let\EnditemitemList\empty}%
323 \a:iitem {#1}\b:iitem}
324 \HLet\itemitem\:temp
325 \long\def\c:itemitem:#1#2#3#4{
326 \let\EnditemitemList\empty
327 \c:def\:iilist{#1}%
328 \c:def\end:iilist{#2\c:def\:iilist{#1}}
329 \c:def\a:iitem{#3}
330 \c:def\b:iitem{#4}}
331
332 \fi
333
334
335 \append:def\@ins{\def\vspace##1{\vskip##1\relax}%
336 \def\captionwidth##1{\captionwidth@##1\relax}}
337 \let\:topcaption\topcaption
338 \let\:botcaption\botcaption
339
340 \def\:caption#1#2\endcaption{\a:caption
341 {\captionfont@#1}\if\notempty{#2}.\fi\b:caption
342 \if\notempty{#2}{\rm#2}\fi \c:caption}
343
344 \def\botcaption{\ifx \EndPicture\:UnDef \expandafter\:caption
345 \else \expandafter\:botcaption \fi}
346 \def\topcaption{\ifx \EndPicture\:UnDef \expandafter\:caption
347 \else \expandafter\:topcaption \fi}
348
349 \NewConfigure{caption}{3}
350
351 \ifx \enddocument@text\:UnDef \else
352 \pend:def\enddocument@text{\bgroup}
353 \append:def\enddocument@text{\egroup}
354 \fi
355
356 \NewConfigure{title}{2}
357 \NewConfigure{author}{2}
358
359 \Hinput{amsppt}
360 \endinput
361