Debian Codegraph @

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

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % amsproc.4ht (2023-03-21-10:02), generated from tex4ht-4ht.tex
3 % Copyright (C) 1997-2009 Eitan M. Gurari
4 % Copyright 2009-2023 TeX Users Group
5 %
6 % This work may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either
8 % version 1.3c of this license or (at your option) any
9 % later version. The latest version of this license is 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 % The Current Maintainer of this work
17 % is the TeX4ht Project <http://tug.org/tex4ht>.
18 %
19 % If you modify this program, changing the
20 % version identification would be appreciated.
21 \immediate\write-1{version 2023-03-21-10:02}
22
23
24 \append:def\quote{\par\@totalleftmargin\z@}
25 \NewConfigure{caption}[4]{\c:def\cptA:{#1}\c:def\cptB:{#2}%
26 \c:def\cptC:{#3}\c:def\cptD:{#4}}
27 \long\def\@makecaption#1#2{%
28 {\cptA: \cap:ref{#1}%
29 \if :#1:\else\cptB:\fi}{\cptC:{#2}\cptD:}}
30
31
32 \pend:def\caption{\SkipRefstepAnchor}
33 \long\def\c:theindex:#1#2#3#4#5#6#7#8#9{%
34 \def\theindex{\SaveEverypar\ht:everypar{}#1%
35 \def\idx:item{}%
36 \def\endtheindex{\idx:item#2\RecallEverypar}%
37 \def\item{\idx:item\def\idx:item{#4}\let\index\@gobble #3}%
38 \def\subitem{\idx:item\def\idx:item{#6}\let\index\@gobble #5}%
39 \def\subsubitem{\idx:item\def\idx:item{#8}\let\index\@gobble #7}}%
40 \def\indexspace{\idx:item#9\let\idx:item\empty}}
41 \def\warn:idx#1{%
42 \expandafter\ifx \csname #1warn:idx\endcsname\relax
43 \expandafter\global
44 \expandafter\let \csname #1warn:idx\endcsname\def
45 \writesixteen
46 {---------------------------------------------------------}%
47 \:warning{If not done so, the index is to be processed by
48 ^^J\space\space tex '\string\def\string\filename
49 {{#1}{idx}{4dx}{ind}} \noexpand\input\space idxmake.4ht'
50 ^^J\space\space makeindex -o #1.ind #1.4dx
51 ^^Jinstead of
52 ^^J\space\space makeindex -o #1.ind #1.idx
53 ^^JOn some platforms, the quotation marks ' should be
54 ^^J replaced by double quotation marks " or eliminated.
55 ^^J---------------------------------------------------------
56 }%
57 {\Configure{Needs}{File: #1.4idx}\Needs{}}%
58 \fi}
59 \ifOption{info}{\Log:Note{
60 A script of the form
61 ^^Jtex '\def\string\filename{{\%\%1}{idx}{4dx}{ind}}
62 \string\input\space idxmake.4ht'
63 ^^Jmakeindex -o \%\%1.ind \%\%1.4dx
64 ^^Jin the env file, automatically calls to the revised makeindex
65 ^^Jcommand. An extra compilation of the source LaTeX file is required,
66 ^^Jto get the index correctly into the output.}}{}
67 \def\ind:defs{\let\LNKidx\empty
68 \def\LNK##1##2##3##4{\ifx\NewConfigure\:UnDef\else
69 \def\LNK:number{##4}%
70 \a:LNK[##1]{##2}{}\gHAdvance\:LNKno1
71 \def\:THIrd{##3}\ifx\:THIrd\empty
72 \LNKidx{\ifx\c:LNK\empty\:LNKno\else \c:LNK\fi}\else
73 \LNKidx{##3}\fi
74 \global\let\LNKidx\empty
75 \b:LNK
76 \fi}%
77 \def\:LNKno{0}}
78 \NewConfigure{LNK}{3}
79 \Configure{LNK}{\Link}{\EndLink}{}
80 \def\yhbLNK#1{\expandafter\let\expandafter\LNKidx\csname
81 #1\endcsname\LNK}
82
83 \Configure{@begin}{theindex}{\ind:defs}
84
85
86 \Configure{UndefinedSec}{likepart}
87 \Configure{UndefinedSec}{likechapter}
88 \Configure{UndefinedSec}{likesection}
89 \Configure{UndefinedSec}{likesubsection}
90 \let\no@section\section
91 \Def:Section\section{\ifnum \c:secnumdepth>\c@secnumdepth \else
92 \thesection \fi}{#1}
93 \let\no:section\section
94 \def\section{\rdef:sec{section}}
95 \let\no@subsection\subsection
96 \Def:Section\subsection{\ifnum \c:secnumdepth>\c@secnumdepth \else
97 \thesubsection \fi}{#1}
98 \let\no:subsection\subsection
99 \def\subsection{\rdef:sec{subsection}}
100 \let\no@subsubsection\subsubsection
101 \Def:Section\subsubsection{\ifnum \c:secnumdepth>\c@secnumdepth \else
102 \thesubsubsection \fi}{#1}
103 \let\no:subsubsection\subsubsection
104 \def\subsubsection{\rdef:sec{subsubsection}}
105 \let\no@paragraph\paragraph
106 \Def:Section\paragraph{\ifnum \c:secnumdepth>\c@secnumdepth \else
107 \theparagraph \fi}{#1}
108 \let\no:paragraph\paragraph
109 \def\paragraph{\rdef:sec{paragraph}}
110 \let\no@subparagraph\subparagraph
111 \Def:Section\subparagraph{\ifnum \c:secnumdepth>\c@secnumdepth \else
112 \thesubparagraph \fi}{#1}
113 \let\no:subparagraph\subparagraph
114 \def\subparagraph{\rdef:sec{subparagraph}}
115
116 \let\:setaddresses=\@setaddresses
117 \def\@setaddresses{\bgroup
118 \pend:def\addresses{%
119 \let\:address=\address
120 \def\address########1########2{%
121 \@ifnotempty{########2}{%
122 \def\:temp{########1}\ifx \:temp\empty
123 \:address{}{\a:address\b:address########2\c:address}%
124 \else
125 \:address{\a:address
126 ########1}{\b:address########2\c:address}%
127 \fi }}%
128 \let\:curraddr=\curraddr
129 \def\curraddr########1########2{%
130 \@ifnotempty{########2}{\a:curraddr
131 \:curraddr{########1}{\b:curraddr########2\c:curraddr}%
132 }}%
133 \let\:email=\email
134 \def\email########1########2{%
135 \@ifnotempty{########2}{\a:email
136 \:email{########1}{\b:email########2\c:email}%
137 }}%
138 \let\:urladdr=\urladdr
139 \def\urladdr########1########2{%
140 \@ifnotempty{########2}{\a:urladdr
141 \:urladdr{########1}{\b:urladdr########2\c:urladdr}%
142 }}%
143 %
144 }%
145 \a:addresses \:setaddresses \b:addresses\egroup }
146 \NewConfigure{addresses}{2}
147 \NewConfigure{address}{3}
148 \NewConfigure{curraddr}{3}
149 \NewConfigure{email}{3}
150 \NewConfigure{urladdr}{3}
151 \pend:def\@settranslators{\a:translators\bgroup
152 \def\and{\unskip{ } \d:translators and~\c:translators\ignorespaces}%
153 \def\andify{\nxandlist{\unskip, }{\unskip{} \and}{\unskip, \and}}%
154 \pend:def\@translators{\c:translators}%
155 \append:def\@translators{\d:translators}%
156 }
157 \append:def\@settranslators{\egroup\b:translators}
158 \NewConfigure{translators}{4}
159 \NewConfigure{maketitle}[4]{\c:def\a:mktl{#1}\c:def\b:mktl{#2}%
160 \c:def\a:ttl{#3}\c:def\b:ttl{#4}}
161 \append:def\@maketitle{\a:@maketitle\after:maketitle\b:@maketitle}
162 \long\def\end:maketitle#1#2{\ifx #1\empty \else
163 \expandafter\let\csname :\string #1\endcsname=#1
164 \let#1=\empty
165 \append:def\after:maketitle{\expand:after{\let#1=}\csname
166 :\string #1\endcsname#2}\fi}
167 \NewConfigure{@maketitle}{2}
168 \HRestore\thanks
169 \let\@adminfootnotes\relax
170 \def\:thanks#1{\par \a:thanks#1\@addpunct.\b:thanks}
171 \NewConfigure{thanks author date and}[8]{%
172 \c:def\a:thanks{#1}\c:def\b:thanks{#2}\c:def\a:author{#3}\c:def\b:author{#4}%
173 \c:def\a:date{#5}\c:def\b:date{#6}\c:def\a:and{#7}\c:def\e:mktl{#8}}
174 \NewConfigure{subjclass}{2}
175 \NewConfigure{keywords}{2}
176 \pend:def\@setabstracta{\ifvoid\abstractbox
177 \else\a:setabstract \fi}
178 \append:def\@setabstracta{\ifvoid\abstractbox
179 \else\b:setabstract \fi}
180 \NewConfigure{setabstract}{2}
181 \pend:defI\@seccntformat{%
182 \def\@secnumpunct{\ifnum \c:secnumdepth>0
183 \expandafter\ifx\csname the##1\endcsname\relax \else. \fi\fi}}
184
185 \pend:def\@maketitle{%
186 \pend:def\newpage{\IgnorePar}%
187 \let\after:maketitle=\empty
188 \end:maketitle\@subjclass{\a:subjclass\@setsubjclass\b:subjclass}%
189 \end:maketitle\@keywords{\a:keywords\@setkeywords\b:keywords}%
190 \end:maketitle\@setthanks{\let\thanks=\:thanks\thankses}%
191 }
192
193 \def\tableofcontents{%
194 \ifx\contentsname\empty \else
195 \ifx\contentsname\:UnDef \else
196 % \Configure{toToc}{}{section}%
197 %
198 \section*{\contentsname}%
199 %
200 %
201 % \Configure{toToc}{?}{section}%
202 \fi\fi
203 \:tableofcontents}
204
205 \let\o:maketitle:\maketitle
206 \def\maketitle{\bgroup
207 \gHAdvance\:mpNum by 1
208 \HAssign\minipageNum=\:mpNum \relax
209 %
210 \ifx \EndPicture\:UnDef
211 \def\sec:typ{title}%
212 %
213 \pend:def\@author{\a:author}\append:def\@author{\b:author}%
214 \def\and{\a:and}
215 %
216 %
217 \fi
218 \pic:gobble\a:mktl \o:maketitle: \pic:gobble\b:mktl
219 \egroup \let\maketitle\empty}
220
221 \pend:defII\@starttoc{\par}
222
223 \ifx \deferred@thm@head\:UnDef\else
224 \ifx \deferred@thm@head\:UnDef\else
225 \expandafter\dth@everypar\expandafter{%
226 \the\dth@everypar
227 \edef\:temp{\the\ht:everypar}\ifx \:temp\empty
228 \ht:everypar{\HtmlPar}\ShowPar
229 \fi
230 }%
231 \def\deferred@thm@head#1{%
232 \if@inlabel \indent \par \fi
233 \if@nobreak
234 \adjust@parskip@nobreak
235 \else
236 \addpenalty\@beginparpenalty
237 \addvspace\@topsep
238 \addvspace{-\parskip}%
239 \fi
240 \global\@inlabeltrue
241 \ht:everypar\dth@everypar
242 \let\sv:newtheorem=\b:newtheorem \let\b:newtheorem=\empty
243 \item[\normalfont#1]%
244 \let\b:newtheorem=\sv:newtheorem \b:newtheorem \ignorespaces
245 }
246
247 \fi
248 \def\:temp#1{%
249 \def\:temp{#1}%
250 \edef\:temp{\expandafter\eorem:syle \meaning\:temp!*?: }%
251 \expandafter\let\expandafter\@tmp:sv\csname th@\:temp\endcsname
252 \def\:tempa##1{%
253 \expandafter\append:def\csname th@##1\endcsname{%
254 \expandafter\let\csname th@##1\endcsname=\@tmp:sv
255 \let\thm:headnl=\thmheadnl
256 \pend:def\thmheadnl{\let\thmheadnl\thm:headnl \b:newtheorem}%
257 \append:def\thmheadnl{\expandafter
258 \ht:everypar\expandafter{\the\ht:everypar
259 \ht:everypar{\HtmlPar}}}}}%
260 \expandafter\:tempa\expandafter{\:temp}%
261 \let\sv:trivlist=\trivlist
262 \def\trivlist{\let\trivlist\sv:trivlist \let\sv:trivlist\:unDef
263 \a:newtheorem \trivlist}%
264 \aftergroup\c:newtheorem
265 \:thm{#1}}
266 \HLet\@thm\:temp
267 \HRestore\@endtheorem
268 \bgroup
269 \def\bgroup{\catcode`\\=0 \catcode`\t=11 }
270 \catcode`\/=0
271 \catcode`\@=12
272 \catcode`\h=12
273 \catcode`\\=12
274 /catcode`/t=12
275 /edef~{/def/noexpand/eorem:syle##1\th@##2 !*?: {##2}}
276 /bgroup
277 \expandafter\egroup ~
278 \long\def\:temp[#1]{\par\a:proof
279 \csname o:\string\proof :\endcsname[#1]\b:proof}
280 \expandafter\HLet\csname \string\proof \endcsname=\:temp
281 \append:def\endproof{\c:proof}
282 \NewConfigure{proof}{3}
283
284 \def\:tempc{\ifmmode \mathqed \else
285 \leavevmode \a:qed\hbox {\qedsymbol}\b:qed\fi}
286 \expandafter\HLet\csname qed \endcsname=\:tempc
287 \NewConfigure{qed}{2}
288
289 \fi
290
291 \pend:def\@settitle{\a:ttl}
292 \append:def\@settitle{\b:ttl\par}
293 \pend:defI\@setauthors{\a:author \bgroup
294 \def\andify{\nxandlist{\unskip, }{\unskip{} \and}{\unskip, \and}}%
295 \def\@no@lnbk ########1[########2]{\a:newline}}
296 \append:defI\@setauthors{\egroup \b:author\par}
297 \let\no@part\part
298 \Def:Section\part{\ifnum \c:secnumdepth>\c@secnumdepth \else
299 \thepart \fi}{#1}
300 \let\no:part\part
301 \def\part{\rdef:sec{part}}
302
303 \def\no@sect#1#2#3#4#5#6[#7]#8{%
304 \edef\@toclevel{\ifnum#2=\@m 0\else\number#2\fi}%
305 \ifnum #2>\c@secnumdepth \let\@secnumber\@empty
306 \else \@xp\let\@xp\@secnumber\csname the#1\endcsname
307 \refstepcounter{#1}\fi
308 \let\@svsec\empty
309 \let\@svsechd\empty
310 \global\@nobreaktrue
311 \@xsect{#5}}
312 \let\@ssect=\relax
313
314
315 \def\endtable{\end@float}
316 \def\endfigure{\end@float}
317
318 \def\:tableofcontents{\futurelet\:temp\:TOC}
319 \def\Auto:ent#1{%
320 \edef\auto:toc{\noexpand\:TableOfContents[\ifx \auto:toc\:UnDef
321 #1\else \auto:toc \fi]} \auto:toc
322 \global\let\auto:toc\:UnDef }
323
324 \def\tableofcontents{%
325 \ifx\contentsname\empty \else
326 \ifx\contentsname\:UnDef \else
327 %
328 \section*{\contentsname}%
329 %
330 %
331 \fi\fi
332 \:tableofcontents}
333
334 \edef\:TOC{%
335 \noexpand\ifx [\noexpand\:temp
336 \noexpand\expandafter\noexpand\:TableOfContents
337 \noexpand\else
338 \noexpand\Auto:ent{\ifnum \c@tocdepth >\m@ne part,likepart,\fi
339 \ifnum \c@tocdepth >\z@ section,likesection,\fi
340 \ifnum \c@tocdepth >1 subsection,likesubsection,\fi
341 \ifnum \c@tocdepth >2 subsubsection,likesubsubsection,\fi
342 \ifnum \c@tocdepth >3 paragraph,\fi
343 \ifnum \c@tocdepth >4 subparagraph,\fi
344 UnDFexyz
345 }\noexpand\fi}
346 \ConfigureToc{likeparagraph} {}{\empty}{}{\newline}
347 \ConfigureToc{likepart} {}{\empty}{}{\newline}
348 \ConfigureToc{likesection} {}{\empty}{}{\newline}
349 \ConfigureToc{likesubparagraph} {}{\empty}{}{\newline}
350 \ConfigureToc{likesubsection} {}{\empty}{}{\newline}
351 \ConfigureToc{likesubsubsection} {}{\empty}{}{\newline}
352 \ConfigureToc{paragraph} {\empty}{\ }{}{\newline}
353 \ConfigureToc{part} {\empty}{\ }{}{\newline}
354 \ConfigureToc{section} {\empty}{\ }{}{\newline}
355 \ConfigureToc{subparagraph} {\empty}{\ }{}{\newline}
356 \ConfigureToc{subsection} {\empty}{\ }{}{\newline}
357 \ConfigureToc{subsubsection} {\empty}{\ }{}{\newline}
358
359
360 \NewConfigure{tableofcontents*}[1]{%
361 \def\:tempa{#1}\ifx\empty\:tempa
362 \ifx \au:StartSec\:UnDef \else \gdef\:StartSec{\au:StartSec}\fi
363 \else
364 \edef\auto:toc{#1}%
365 \ifx \au:StartSec\:UnDef
366 \let\au:StartSec\:StartSec
367 \def\:StartSec{\:tableofcontents
368 \global\let\auto:toc\:UnDef \global\let\:StartSec\au:StartSec\:StartSec}%
369 \append:def\tableofcontents{\gdef\:StartSec{\au:StartSec}}%
370 \fi \fi
371 }
372
373 \Hinput{amsproc}
374 \endinput
375