Debian Codegraph @

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

raw
1 % jats.4ht (2025-07-09-13:35), generated from tex4ht-jats.tex
2 % Copyright 2022-2025 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % https://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <https://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2025-07-09-13:35}
20
21 \exit:ifnot{amsart,%
22 amsbook,%
23 amsproc,%
24 article,%
25 biblatex,%
26 book,%
27 hyperref,%
28 latex,%
29 memoir,%
30 report,%
31 scrartcl,%
32 scrbook,%
33 scrreprt,%
34 tex4ht,%
35 url}
36
37
38 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 \ConfigureHinput{tex4ht}
40 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41 \special{t4ht.xml}
42 \Configure{ext}{xml}
43 \Configure{VERSION}{\HCode{<?xml version="1.0" encoding="UTF-8"?>\Hnewline}}
44
45 % select JATS version
46 \NewConfigure{DtdVersion}{1}
47 \Configure{DtdVersion}{1.3}
48
49 \def\:DTD{jats} % this is necessary to prevent html-mml from overriding DOCTYPE
50 %
51 \Configure{DOCTYPE}{\HCode{<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v\a:DtdVersion\space 20210610//EN" "JATS-archivearticle1-3.dtd">\Hnewline}}
52
53 % XML configuratins
54 \edef\html:xmlns{}
55 \NewConfigure{xmlns}[2]{\concat:config\html:xmlns{xmlns:#1="#2"\Hnewline}}
56 \Configure{xmlns}{xlink}{http://www.w3.org/1999/xlink}
57 \Configure{xmlns}{mml}{http://www.w3.org/1998/Math/MathML}
58
59 \Configure{HTML}{\HCode{<article dtd-version="\a:DtdVersion" \html:xmlns xml:lang="\Get:Language">\Hnewline}}{\HCode{\Hnewline</article>}}
60 \Configure{@HEAD}{}
61 \Configure{HEAD}{\HCode{<front>}}{\HCode{</front>}}
62 % Add header structure
63 % Journal info in <journal-meta>. It needs to be provided fully from the user configuration
64 \NewConfigure{JournalMeta}{1}
65 % basic article meta can be reconstructed from \title and \author
66 %
67 % Title needs to be placed at the correct place by DOM filter
68 \Configure{TITLE}{\HCode{<article-title>}}{\HCode{</article-title>}}
69
70 % You can put license and copyright info into Permissions
71 \NewConfigure{Permissions}{1}
72 \Configure{Permissions}{\HCode{<permissions></permissions>}}
73
74 \NewConfigure{ArticleMeta}{1}
75 \Configure{ArticleMeta}{
76 \HCode{<article-meta>}%
77 % title from \title command is placed by make4ht DOM filter. If you want more complex title,
78 % use \Configure{TitleGroup}
79 \a:TitleGroup%
80 \JATS:Contributors%
81 \a:Permissions
82 \HCode{</article-meta>}%
83 }
84 % enable to configure contributors
85 \def\JATS:Contributors{}
86 \NewConfigure{Contributor}[1]{\concat:config\JATS:Contributors{#1}}
87 \NewConfigure{TitleGroup}{1}
88
89 % insert metas into document header
90 \Configure{@HEAD}{\a:JournalMeta}
91 \Configure{@HEAD}{\a:ArticleMeta}
92
93 \Configure{HtmlPar}
94 {\EndP\HCode{<!--l. \the\inputlineno-->%
95 <p \csname a:!P\endcsname>}}
96 {\EndP\HCode{<!--l. \the\inputlineno-->%
97 <p \csname a:!P\endcsname>}}
98 {\Tg</p>}%
99 {\Tg</p>}%
100
101 \def\Declare:Language#1#2{%
102 \expandafter\gdef\csname rfclang#1\endcsname{#2}%
103 }
104 \def\Get:Language{%
105 \ifx\bbl@main@language\@undefined en-US%
106 \else%
107 \expandafter\ifdefined\csname rfclang\bbl@main@language\endcsname \csname rfclang\bbl@main@language\endcsname\fi%
108 \fi%
109 }
110
111 \Declare:Language{UKenglish}{en}
112 \Declare:Language{USenglish}{en}
113 \Declare:Language{latex}{en}
114 \Declare:Language{acadian}{fr}
115 \Declare:Language{albanian}{sq}
116 \Declare:Language{american}{en}
117 \Declare:Language{amharic}{am}
118 \Declare:Language{arabic}{ar}
119 \Declare:Language{armenian}{hy}
120 \Declare:Language{australian}{en}
121 \Declare:Language{austrian}{de}
122 \Declare:Language{basque}{eu}
123 \Declare:Language{bengali}{bn}
124 \Declare:Language{brazilian}{pt}
125 \Declare:Language{brazil}{pt}
126 \Declare:Language{breton}{br}
127 \Declare:Language{british}{en}
128 \Declare:Language{bulgarian}{bg}
129 \Declare:Language{canadian}{en}
130 \Declare:Language{canadien}{fr}
131 \Declare:Language{catalan}{ca}
132 \Declare:Language{croatian}{hr}
133 \Declare:Language{czech}{cs}
134 \Declare:Language{danish}{da}
135 \Declare:Language{divehi}{dv}
136 \Declare:Language{dutch}{nl}
137 \Declare:Language{english}{en}
138 \Declare:Language{esperanto}{eo}
139 \Declare:Language{estonian}{et}
140 \Declare:Language{finnish}{f\/i}
141 \Declare:Language{francais}{fr}
142 \Declare:Language{french}{fr}
143 \Declare:Language{galician}{gl}
144 \Declare:Language{germanb}{de}
145 \Declare:Language{german}{de}
146 \Declare:Language{greek}{el}
147 \Declare:Language{hebrew}{he}
148 \Declare:Language{hindi}{hi}
149 \Declare:Language{hungarian}{hu}
150 \Declare:Language{icelandic}{is}
151 \Declare:Language{interlingua}{ia}
152 \Declare:Language{irish}{ga}
153 \Declare:Language{italian}{it}
154 \Declare:Language{kannada}{kn}
155 \Declare:Language{khmer}{km}
156 \Declare:Language{korean}{ko}
157 \Declare:Language{lao}{lo}
158 \Declare:Language{latin}{la}
159 \Declare:Language{latvian}{lv}
160 \Declare:Language{lithuanian}{lt}
161 \Declare:Language{lowersorbian}{dsb}
162 \Declare:Language{magyar}{hu}
163 \Declare:Language{malayalam}{ml}
164 \Declare:Language{marathi}{mr}
165 \Declare:Language{naustrian}{de}
166 \Declare:Language{newzealand}{en}
167 \Declare:Language{ngerman}{de}
168 \Declare:Language{norsk}{no}
169 \Declare:Language{norwegiannynorsk}{nn}
170 \Declare:Language{nynorsk}{no}
171 \Declare:Language{occitan}{oc}
172 \Declare:Language{oldchurchslavonic}{cu}
173 \Declare:Language{persian}{fa}
174 \Declare:Language{polish}{pl}
175 \Declare:Language{polutonikogreek}{el}
176 \Declare:Language{portuges}{pt}
177 \Declare:Language{portuguese}{pt}
178 \Declare:Language{romanian}{ro}
179 \Declare:Language{romansh}{rm}
180 \Declare:Language{russian}{ru}
181 \Declare:Language{samin}{se}
182 \Declare:Language{sanskrit}{sa}
183 \Declare:Language{scottish}{gd}
184 \Declare:Language{serbian}{sr}
185 \Declare:Language{serbo-croatian}{sh}
186 \Declare:Language{slovak}{sk}
187 \Declare:Language{slovene}{sl}
188 \Declare:Language{slovenian}{sl}
189 \Declare:Language{spanish}{es}
190 \Declare:Language{swedish}{sv}
191 \Declare:Language{tamil}{ta}
192 \Declare:Language{telugu}{te}
193 \Declare:Language{thai}{th}
194 \Declare:Language{tibetan}{bo}
195 \Declare:Language{turkish}{tr}
196 \Declare:Language{turkmen}{tk}
197 \Declare:Language{ukrainian}{uk}
198 \Declare:Language{uppersorbian}{hsb}
199 \Declare:Language{urdu}{ur}
200 \Declare:Language{vietnamese}{vi}
201 \Declare:Language{welsh}{cy}
202
203 \Configure{Link}{xref}{rid=}{id=}{}
204 \LinkCommand\ExternalLink{ext-link,xlink:href,id}
205
206 \Configure{IMG}
207 {\ht:special{t4ht=<graphic\Hnewline xlink:href="\a:imgdir}}
208 {\ht:special{t4ht=" xlink:title="}}
209 {" }
210 {\ht:special{t4ht=" }}
211 {\ht:special{t4ht=\xml:empty>}}
212
213 \Configure{htf}{0}{+}{<italic}{}{}{}{}{>}{</italic>}
214 \Configure{htf}{4}{+}{<sc}{}{}{}{}{>}{</sc>}
215 \Configure{htf}{6}{+}{<underline}{}{}{}{}{>}{</underline>}
216
217 \Configure{mathml}{mml:}
218 \edef\math:type:inline{display="inline" }
219
220 \ifdefined\AtBeginDocument
221 \AtBeginDocument{
222 \Configure{DviMathML}{%
223 \ifx\a:@math\math:type:inline%
224 \PushStack\math:types{inline-formula}%
225 \HCode{<inline-formula>}%
226 \else%
227 \HCode{<disp-formula>}%
228 \PushStack\math:types{disp-formula}%
229 \fi%
230 }{\PopStack\math:types\:temp\HCode{</\:temp>}}%
231 }%
232 \fi
233
234
235
236 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
237
238 \endinput\empty\empty\empty\empty\empty\empty
239 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
240
241
242
243
244
245 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
246 \ConfigureHinput{latex}
247 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
248 \Configure{underline}
249 {\HCode{<underline>}\:gobble}
250 {\HCode{</underline>}}
251
252 \Configure{textsuperscript}
253 {\HCode{<sup>}}
254 {\HCode{</sup>}}
255
256 \Configure{textsubscript}
257 {\HCode{<sub>}}
258 {\HCode{</sub>}}
259
260 % We must override MathML's version of basic font commands.
261 \AtBeginDocument{%
262 \Configure{texttt}
263 {\ifmathml\providemtextclass{\mml:class="texttt"
264 mathvariant="monospace" }\else\Protect\HCode{<monospace>}\NoFonts\fi}
265 {\ifmathml\else\EndNoFonts\Protect\HCode{</monospace>}\fi}%
266 \Configure{textit}
267 {\ifmathml \providemtextclass{\mml:class="textit"
268 mathvariant="italic" }\else\Protect\HCode{<italic>}\NoFonts\fi}
269 {\ifmathml\else\EndNoFonts\Protect\HCode{</italic>}\fi}%
270 \Configure{textrm}
271 {\ifmathml \providemtextclass{\mml:class="textrm"
272 mathvariant="normal" }\else\Protect\HCode{<roman>}\NoFonts\fi}
273 {\ifmathml\else\EndNoFonts\Protect\HCode{</roman>}\fi}%
274 \Configure{textup}
275 {\ifmathml \providemtextclass{\mml:class="textup"
276 mathvariant="normal" }\else\Protect\HCode{<roman>}\NoFonts\fi}
277 {\ifmathml\else\EndNoFonts\Protect\HCode{</roman>}\fi}%
278 \Configure{textsl}
279 {\ifmathml \providemtextclass{\mml:class="textsl"
280 mathvariant="italic" }\else\Protect\HCode{<italic>}\NoFonts\fi}
281 {\ifmathml\else\EndNoFonts\Protect\HCode{</italic>}\fi}%
282 \Configure{textsf}
283 {\ifmathml \providemtextclass{\mml:class="textsf"
284 mathvariant="sans-serif" }\else\Protect\HCode{<sans-serif>}\NoFonts\fi}
285 {\ifmathml\else\EndNoFonts\Protect\HCode{</sans-serif>}\fi}%
286 \Configure{textbf}
287 {\ifmathml \providemtextclass{\mml:class="textbf"
288 mathvariant="bold" }\else\Protect\HCode{<bold>}\NoFonts\fi}
289 {\ifmathml\else\EndNoFonts\Protect\HCode{</bold>}\fi}%
290 \Configure{textsc}
291 {\ifmathml \providemtextclass{\mml:class="textsc"
292 mathvariant="normal" }\else\Protect\HCode{<sc>}\NoFonts\fi}
293 {\ifmathml\else\EndNoFonts\Protect\HCode{</sc>}\fi}%
294 \Configure{emph}
295 {\ifmathml \providemtextclass{\mml:class="emph"
296 mathvariant="italic" }\else\Protect\HCode{<italic>}\NoFonts\fi}
297 {\ifmathml\else\EndNoFonts\Protect\HCode{</italic>}\fi}%
298
299 }
300
301 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
302
303 \endinput\empty\empty\empty\empty\empty\empty
304 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
305
306
307 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
308 \ConfigureHinput{book}
309 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
310 \Configure{maketitle}
311 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
312 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
313 \def\TeX{TeX}%
314 \def\mbox{\hbox}%
315 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
316 \def\footnotemark[##1]{}%
317 \def\:hashintitle{\protect\symbol{35}}
318 \let\#\:hashintitle
319 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
320 %
321 \HCode{<maketitle>}}
322 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
323 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
324 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
325 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
326 \Configure{thanks author date and}
327 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
328 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
329 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
330 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
331 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
332 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
333 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
334 {\HCode{}}
335
336 \Configure{thank}
337 {\HCode{<affref rid="\the\c@footnote">}}
338 {\HCode{</affref>}}
339 {\HCode{<aff id="\the\c@footnote"><affmark>}}
340 {\HCode{</affmark>}} {\HCode{</aff>}}
341
342 \Configure{section}
343 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
344 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
345 {\TitleMark\space\HCode{<title>}\HtmlParOff}
346 {\HCode{</title>}\HtmlParOn \ShowPar\par}
347
348 \ConfigureMark{section}
349 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
350 \else
351 \HCode{<label>}\@seccntformat{section}%
352 \HCode{</label>}\fi }
353
354
355 \Configure{subsection}
356 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
357 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
358 {\TitleMark\space\HCode{<title>}\HtmlParOff}
359 {\HCode{</title>}\HtmlParOn \ShowPar\par}
360
361 \ConfigureMark{subsection}
362 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
363 \else
364 \HCode{<label>}\@seccntformat{section}%
365 \HCode{</label>}\fi }
366
367
368 \Configure{subsubsection}
369 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
370 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
371 {\TitleMark\space\HCode{<title>}\HtmlParOff}
372 {\HCode{</title>}\HtmlParOn \ShowPar\par}
373
374 \ConfigureMark{subsubsection}
375 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
376 \else
377 \HCode{<label>}\@seccntformat{section}%
378 \HCode{</label>}\fi }
379
380
381 \Configure{paragraph}
382 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
383 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
384 {\HCode{<title>}\HtmlParOff}
385 {\HCode{</title>}\HtmlParOn \ShowPar\par}
386
387
388 \Configure{likesection}
389 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
390 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
391 {\HCode{<title>}\HtmlParOff}
392 {\HCode{</title>}\HtmlParOn \ShowPar\par}
393
394 \Configure{likesubsection}
395 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
396 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
397 {\HCode{<title>}\HtmlParOff}
398 {\HCode{</title>}\HtmlParOn \ShowPar\par}
399
400 \Configure{likesubsubsection}
401 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
402 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
403 {\HCode{<title>}\HtmlParOff}
404 {\HCode{</title>}\HtmlParOn \ShowPar\par}
405
406 \Configure{likeparagraph}
407 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
408 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
409 {\HCode{<title>}\HtmlParOff}
410 {\HCode{</title>}\HtmlParOn \ShowPar\par}
411
412
413
414 \Configure{float}
415 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
416 {\IgnorePar\EndP\HCode{<fig>}}
417 {\ifvmode \IgnorePar \fi\EndP
418 \HCode{</fig>}\csname par\endcsname\ShowPar}
419
420 \ConfigureEnv{figure}
421 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
422 \bgroup \Configure{float}{\ShowPar}{}{}%
423 }
424 {\egroup
425 \IgnorePar\EndP\HCode{</fig>}\par}
426 {}{}
427
428
429 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
430 {: } {\HCode{</label><caption>}\noindent\ShowPar}
431 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
432 \cur:th\:currentlabel\space-->}%
433 }
434
435 \ConfigureEnv{table}
436 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
437 \Configure{float}{}{}{}{}
438 }
439 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
440 {}{}
441
442 \ConfigureEnv{table*}
443 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
444 \Configure{float}{}{}{}{}
445 }
446 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
447 {}{}
448
449 \ConfigureEnv{tabular}
450 {\Configure{noalign}%
451 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
452 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
453 %
454 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
455 \EndP\HCode{}%
456 \PushStack\Col:Marg\AllColMargins
457 }
458 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
459 \Configure{noalign}{}{}%
460 %
461 \ShowPar
462 %
463 }{}{}
464
465
466 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
467 % suppress footnote number in footnotext, it was already used in footnotemark
468 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
469 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
470 {\EndP\RecallEndP\HCode{</fn>}}%
471
472 \ConfigureEnv{quote}
473 {}{}
474 {\ifvmode\IgnorePar\fi\EndP%
475 \HCode{<disp-quote>}}
476 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
477
478 \def\ConfigJatsList#1#2{%
479 \ConfigureList{#1}%
480 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
481 \PushMacro\end:itm
482 \global\let\end:itm=\empty}
483 {\PopMacro\end:itm \global\let\end:itm \end:itm
484 \EndP\HCode{</list-item></list>}}
485 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
486 {\HCode{<list-item>}\par\ShowPar
487 }
488 }
489
490 \ConfigJatsList{itemize}{bulleted}
491 \ConfigJatsList{enumerate}{order}
492 \ConfigureList{description}%
493 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
494 \PushMacro\end:itm
495 \global\let\end:itm=\empty}
496 {\PopMacro\end:itm \global\let\end:itm \end:itm
497 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
498 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
499 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
500 }
501
502 \ConfigureList{thebibliography}%
503 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
504 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
505 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
506 \HCode{<ref><label>}%
507 \Configure{HtmlPar}%
508 {\EndP}%
509 {\EndP}%
510 {} {}%
511 }
512 {\HCode{</label><mixed-citation>}}
513
514
515
516 \Configure{chapter}
517 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
518 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
519 {\TitleMark\space\HCode{<title>}\HtmlParOff}
520 {\HCode{</title>}\HtmlParOn \ShowPar\par}
521
522 \ConfigureMark{chapter}
523 {\if@mainmatter
524 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
525
526
527 \Configure{appendix}
528 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
529 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
530 {\TitleMark\space\HCode{<title>}\HtmlParOff}
531 {\HCode{</title>}\HtmlParOn \ShowPar\par}
532
533 \ConfigureMark{appendix}{\HCode{<label>}%
534 \appendixname\ \thechapter\HCode{</label>}}
535
536 \Configure{likechapter}
537 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
538 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
539 {\HCode{<title>}\HtmlParOff}
540 {\HCode{</title>}\HtmlParOn \ShowPar\par}
541
542
543
544
545
546 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
547
548 \endinput\empty\empty\empty\empty\empty\empty
549 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
550
551 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
552 \ConfigureHinput{report}
553 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
554 \Configure{maketitle}
555 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
556 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
557 \def\TeX{TeX}%
558 \def\mbox{\hbox}%
559 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
560 \def\footnotemark[##1]{}%
561 \def\:hashintitle{\protect\symbol{35}}
562 \let\#\:hashintitle
563 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
564 %
565 \HCode{<maketitle>}}
566 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
567 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
568 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
569 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
570 \Configure{thanks author date and}
571 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
572 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
573 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
574 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
575 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
576 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
577 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
578 {\HCode{}}
579
580 \Configure{thank}
581 {\HCode{<affref rid="\the\c@footnote">}}
582 {\HCode{</affref>}}
583 {\HCode{<aff id="\the\c@footnote"><affmark>}}
584 {\HCode{</affmark>}} {\HCode{</aff>}}
585
586 \Configure{section}
587 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
588 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
589 {\TitleMark\space\HCode{<title>}\HtmlParOff}
590 {\HCode{</title>}\HtmlParOn \ShowPar\par}
591
592 \ConfigureMark{section}
593 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
594 \else
595 \HCode{<label>}\@seccntformat{section}%
596 \HCode{</label>}\fi }
597
598
599 \Configure{subsection}
600 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
601 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
602 {\TitleMark\space\HCode{<title>}\HtmlParOff}
603 {\HCode{</title>}\HtmlParOn \ShowPar\par}
604
605 \ConfigureMark{subsection}
606 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
607 \else
608 \HCode{<label>}\@seccntformat{section}%
609 \HCode{</label>}\fi }
610
611
612 \Configure{subsubsection}
613 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
614 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
615 {\TitleMark\space\HCode{<title>}\HtmlParOff}
616 {\HCode{</title>}\HtmlParOn \ShowPar\par}
617
618 \ConfigureMark{subsubsection}
619 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
620 \else
621 \HCode{<label>}\@seccntformat{section}%
622 \HCode{</label>}\fi }
623
624
625 \Configure{paragraph}
626 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
627 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
628 {\HCode{<title>}\HtmlParOff}
629 {\HCode{</title>}\HtmlParOn \ShowPar\par}
630
631
632 \Configure{likesection}
633 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
634 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
635 {\HCode{<title>}\HtmlParOff}
636 {\HCode{</title>}\HtmlParOn \ShowPar\par}
637
638 \Configure{likesubsection}
639 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
640 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
641 {\HCode{<title>}\HtmlParOff}
642 {\HCode{</title>}\HtmlParOn \ShowPar\par}
643
644 \Configure{likesubsubsection}
645 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
646 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
647 {\HCode{<title>}\HtmlParOff}
648 {\HCode{</title>}\HtmlParOn \ShowPar\par}
649
650 \Configure{likeparagraph}
651 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
652 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
653 {\HCode{<title>}\HtmlParOff}
654 {\HCode{</title>}\HtmlParOn \ShowPar\par}
655
656
657
658 \Configure{float}
659 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
660 {\IgnorePar\EndP\HCode{<fig>}}
661 {\ifvmode \IgnorePar \fi\EndP
662 \HCode{</fig>}\csname par\endcsname\ShowPar}
663
664 \ConfigureEnv{figure}
665 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
666 \bgroup \Configure{float}{\ShowPar}{}{}%
667 }
668 {\egroup
669 \IgnorePar\EndP\HCode{</fig>}\par}
670 {}{}
671
672
673 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
674 {: } {\HCode{</label><caption>}\noindent\ShowPar}
675 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
676 \cur:th\:currentlabel\space-->}%
677 }
678
679 \ConfigureEnv{table}
680 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
681 \Configure{float}{}{}{}{}
682 }
683 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
684 {}{}
685
686 \ConfigureEnv{table*}
687 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
688 \Configure{float}{}{}{}{}
689 }
690 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
691 {}{}
692
693 \ConfigureEnv{tabular}
694 {\Configure{noalign}%
695 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
696 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
697 %
698 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
699 \EndP\HCode{}%
700 \PushStack\Col:Marg\AllColMargins
701 }
702 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
703 \Configure{noalign}{}{}%
704 %
705 \ShowPar
706 %
707 }{}{}
708
709
710 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
711 % suppress footnote number in footnotext, it was already used in footnotemark
712 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
713 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
714 {\EndP\RecallEndP\HCode{</fn>}}%
715
716 \ConfigureEnv{quote}
717 {}{}
718 {\ifvmode\IgnorePar\fi\EndP%
719 \HCode{<disp-quote>}}
720 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
721
722 \def\ConfigJatsList#1#2{%
723 \ConfigureList{#1}%
724 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
725 \PushMacro\end:itm
726 \global\let\end:itm=\empty}
727 {\PopMacro\end:itm \global\let\end:itm \end:itm
728 \EndP\HCode{</list-item></list>}}
729 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
730 {\HCode{<list-item>}\par\ShowPar
731 }
732 }
733
734 \ConfigJatsList{itemize}{bulleted}
735 \ConfigJatsList{enumerate}{order}
736 \ConfigureList{description}%
737 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
738 \PushMacro\end:itm
739 \global\let\end:itm=\empty}
740 {\PopMacro\end:itm \global\let\end:itm \end:itm
741 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
742 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
743 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
744 }
745
746 \ConfigureList{thebibliography}%
747 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
748 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
749 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
750 \HCode{<ref><label>}%
751 \Configure{HtmlPar}%
752 {\EndP}%
753 {\EndP}%
754 {} {}%
755 }
756 {\HCode{</label><mixed-citation>}}
757
758
759
760 \ConfigureEnv{abstract}
761 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
762 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
763
764 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
765 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
766
767
768
769 \Configure{chapter}
770 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
771 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
772 {\TitleMark\space\HCode{<title>}\HtmlParOff}
773 {\HCode{</title>}\HtmlParOn \ShowPar\par}
774
775 \ConfigureMark{chapter}
776 {\if@mainmatter
777 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
778
779
780 \Configure{appendix}
781 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
782 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
783 {\TitleMark\space\HCode{<title>}\HtmlParOff}
784 {\HCode{</title>}\HtmlParOn \ShowPar\par}
785
786 \ConfigureMark{appendix}{\HCode{<label>}%
787 \appendixname\ \thechapter\HCode{</label>}}
788
789 \Configure{likechapter}
790 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
791 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
792 {\HCode{<title>}\HtmlParOff}
793 {\HCode{</title>}\HtmlParOn \ShowPar\par}
794
795
796
797
798
799 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
800
801 \endinput\empty\empty\empty\empty\empty\empty
802 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
803
804 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
805 \ConfigureHinput{article}
806 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
807 \Configure{maketitle}
808 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
809 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
810 \def\TeX{TeX}%
811 \def\mbox{\hbox}%
812 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
813 \def\footnotemark[##1]{}%
814 \def\:hashintitle{\protect\symbol{35}}
815 \let\#\:hashintitle
816 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
817 %
818 \HCode{<maketitle>}}
819 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
820 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
821 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
822 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
823 \Configure{thanks author date and}
824 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
825 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
826 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
827 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
828 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
829 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
830 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
831 {\HCode{}}
832
833 \Configure{thank}
834 {\HCode{<affref rid="\the\c@footnote">}}
835 {\HCode{</affref>}}
836 {\HCode{<aff id="\the\c@footnote"><affmark>}}
837 {\HCode{</affmark>}} {\HCode{</aff>}}
838
839 \Configure{section}
840 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
841 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
842 {\TitleMark\space\HCode{<title>}\HtmlParOff}
843 {\HCode{</title>}\HtmlParOn \ShowPar\par}
844
845 \ConfigureMark{section}
846 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
847 \else
848 \HCode{<label>}\@seccntformat{section}%
849 \HCode{</label>}\fi }
850
851
852 \Configure{subsection}
853 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
854 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
855 {\TitleMark\space\HCode{<title>}\HtmlParOff}
856 {\HCode{</title>}\HtmlParOn \ShowPar\par}
857
858 \ConfigureMark{subsection}
859 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
860 \else
861 \HCode{<label>}\@seccntformat{section}%
862 \HCode{</label>}\fi }
863
864
865 \Configure{subsubsection}
866 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
867 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
868 {\TitleMark\space\HCode{<title>}\HtmlParOff}
869 {\HCode{</title>}\HtmlParOn \ShowPar\par}
870
871 \ConfigureMark{subsubsection}
872 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
873 \else
874 \HCode{<label>}\@seccntformat{section}%
875 \HCode{</label>}\fi }
876
877
878 \Configure{paragraph}
879 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
880 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
881 {\HCode{<title>}\HtmlParOff}
882 {\HCode{</title>}\HtmlParOn \ShowPar\par}
883
884
885 \Configure{likesection}
886 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
887 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
888 {\HCode{<title>}\HtmlParOff}
889 {\HCode{</title>}\HtmlParOn \ShowPar\par}
890
891 \Configure{likesubsection}
892 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
893 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
894 {\HCode{<title>}\HtmlParOff}
895 {\HCode{</title>}\HtmlParOn \ShowPar\par}
896
897 \Configure{likesubsubsection}
898 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
899 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
900 {\HCode{<title>}\HtmlParOff}
901 {\HCode{</title>}\HtmlParOn \ShowPar\par}
902
903 \Configure{likeparagraph}
904 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
905 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
906 {\HCode{<title>}\HtmlParOff}
907 {\HCode{</title>}\HtmlParOn \ShowPar\par}
908
909
910
911 \Configure{float}
912 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
913 {\IgnorePar\EndP\HCode{<fig>}}
914 {\ifvmode \IgnorePar \fi\EndP
915 \HCode{</fig>}\csname par\endcsname\ShowPar}
916
917 \ConfigureEnv{figure}
918 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
919 \bgroup \Configure{float}{\ShowPar}{}{}%
920 }
921 {\egroup
922 \IgnorePar\EndP\HCode{</fig>}\par}
923 {}{}
924
925
926 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
927 {: } {\HCode{</label><caption>}\noindent\ShowPar}
928 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
929 \cur:th\:currentlabel\space-->}%
930 }
931
932 \ConfigureEnv{table}
933 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
934 \Configure{float}{}{}{}{}
935 }
936 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
937 {}{}
938
939 \ConfigureEnv{table*}
940 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
941 \Configure{float}{}{}{}{}
942 }
943 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
944 {}{}
945
946 \ConfigureEnv{tabular}
947 {\Configure{noalign}%
948 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
949 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
950 %
951 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
952 \EndP\HCode{}%
953 \PushStack\Col:Marg\AllColMargins
954 }
955 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
956 \Configure{noalign}{}{}%
957 %
958 \ShowPar
959 %
960 }{}{}
961
962
963 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
964 % suppress footnote number in footnotext, it was already used in footnotemark
965 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
966 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
967 {\EndP\RecallEndP\HCode{</fn>}}%
968
969 \ConfigureEnv{quote}
970 {}{}
971 {\ifvmode\IgnorePar\fi\EndP%
972 \HCode{<disp-quote>}}
973 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
974
975 \def\ConfigJatsList#1#2{%
976 \ConfigureList{#1}%
977 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
978 \PushMacro\end:itm
979 \global\let\end:itm=\empty}
980 {\PopMacro\end:itm \global\let\end:itm \end:itm
981 \EndP\HCode{</list-item></list>}}
982 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
983 {\HCode{<list-item>}\par\ShowPar
984 }
985 }
986
987 \ConfigJatsList{itemize}{bulleted}
988 \ConfigJatsList{enumerate}{order}
989 \ConfigureList{description}%
990 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
991 \PushMacro\end:itm
992 \global\let\end:itm=\empty}
993 {\PopMacro\end:itm \global\let\end:itm \end:itm
994 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
995 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
996 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
997 }
998
999 \ConfigureList{thebibliography}%
1000 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
1001 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
1002 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
1003 \HCode{<ref><label>}%
1004 \Configure{HtmlPar}%
1005 {\EndP}%
1006 {\EndP}%
1007 {} {}%
1008 }
1009 {\HCode{</label><mixed-citation>}}
1010
1011
1012
1013 \ConfigureEnv{abstract}
1014 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
1015 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
1016
1017 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
1018 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
1019
1020
1021
1022
1023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1024
1025 \endinput\empty\empty\empty\empty\empty\empty
1026 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1043 \ConfigureHinput{amsart}
1044 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1045 \Configure{maketitle}
1046 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
1047 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
1048 \def\TeX{TeX}%
1049 \def\mbox{\hbox}%
1050 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
1051 \def\footnotemark[##1]{}%
1052 \def\:hashintitle{\protect\symbol{35}}
1053 \let\#\:hashintitle
1054 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
1055 %
1056 \HCode{<maketitle>}}
1057 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
1058 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
1059 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
1060 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
1061 \Configure{thanks author date and}
1062 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
1063 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
1064 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
1065 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
1066 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
1067 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
1068 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
1069 {\HCode{}}
1070
1071 \Configure{thank}
1072 {\HCode{<affref rid="\the\c@footnote">}}
1073 {\HCode{</affref>}}
1074 {\HCode{<aff id="\the\c@footnote"><affmark>}}
1075 {\HCode{</affmark>}} {\HCode{</aff>}}
1076
1077 \Configure{section}
1078 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1079 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1080 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1081 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1082
1083 \ConfigureMark{section}
1084 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1085 \else
1086 \HCode{<label>}\@seccntformat{section}%
1087 \HCode{</label>}\fi }
1088
1089
1090 \Configure{subsection}
1091 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1092 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1093 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1094 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1095
1096 \ConfigureMark{subsection}
1097 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1098 \else
1099 \HCode{<label>}\@seccntformat{section}%
1100 \HCode{</label>}\fi }
1101
1102
1103 \Configure{subsubsection}
1104 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1105 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1106 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1107 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1108
1109 \ConfigureMark{subsubsection}
1110 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1111 \else
1112 \HCode{<label>}\@seccntformat{section}%
1113 \HCode{</label>}\fi }
1114
1115
1116 \Configure{paragraph}
1117 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1118 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1119 {\HCode{<title>}\HtmlParOff}
1120 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1121
1122
1123
1124 \Configure{float}
1125 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
1126 {\IgnorePar\EndP\HCode{<fig>}}
1127 {\ifvmode \IgnorePar \fi\EndP
1128 \HCode{</fig>}\csname par\endcsname\ShowPar}
1129
1130 \ConfigureEnv{figure}
1131 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
1132 \bgroup \Configure{float}{\ShowPar}{}{}%
1133 }
1134 {\egroup
1135 \IgnorePar\EndP\HCode{</fig>}\par}
1136 {}{}
1137
1138
1139 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
1140 {: } {\HCode{</label><caption>}\noindent\ShowPar}
1141 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
1142 \cur:th\:currentlabel\space-->}%
1143 }
1144
1145 \ConfigureEnv{abstract}
1146 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
1147 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
1148
1149 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
1150 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
1151
1152 \ConfigureEnv{table}
1153 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1154 \Configure{float}{}{}{}{}
1155 }
1156 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1157 {}{}
1158
1159 \ConfigureEnv{table*}
1160 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1161 \Configure{float}{}{}{}{}
1162 }
1163 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1164 {}{}
1165
1166 \ConfigureEnv{tabular}
1167 {\Configure{noalign}%
1168 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
1169 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
1170 %
1171 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
1172 \EndP\HCode{}%
1173 \PushStack\Col:Marg\AllColMargins
1174 }
1175 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
1176 \Configure{noalign}{}{}%
1177 %
1178 \ShowPar
1179 %
1180 }{}{}
1181
1182
1183 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
1184 % suppress footnote number in footnotext, it was already used in footnotemark
1185 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
1186 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
1187 {\EndP\RecallEndP\HCode{</fn>}}%
1188
1189 \ConfigureEnv{quote}
1190 {}{}
1191 {\ifvmode\IgnorePar\fi\EndP%
1192 \HCode{<disp-quote>}}
1193 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
1194
1195 \def\ConfigJatsList#1#2{%
1196 \ConfigureList{#1}%
1197 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
1198 \PushMacro\end:itm
1199 \global\let\end:itm=\empty}
1200 {\PopMacro\end:itm \global\let\end:itm \end:itm
1201 \EndP\HCode{</list-item></list>}}
1202 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
1203 {\HCode{<list-item>}\par\ShowPar
1204 }
1205 }
1206
1207 \ConfigJatsList{itemize}{bulleted}
1208 \ConfigJatsList{enumerate}{order}
1209 \ConfigureList{description}%
1210 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
1211 \PushMacro\end:itm
1212 \global\let\end:itm=\empty}
1213 {\PopMacro\end:itm \global\let\end:itm \end:itm
1214 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
1215 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
1216 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
1217 }
1218
1219
1220
1221
1222 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1223
1224 \endinput\empty\empty\empty\empty\empty\empty
1225 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1226
1227 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1228 \ConfigureHinput{amsbook}
1229 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1230 \Configure{maketitle}
1231 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
1232 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
1233 \def\TeX{TeX}%
1234 \def\mbox{\hbox}%
1235 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
1236 \def\footnotemark[##1]{}%
1237 \def\:hashintitle{\protect\symbol{35}}
1238 \let\#\:hashintitle
1239 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
1240 %
1241 \HCode{<maketitle>}}
1242 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
1243 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
1244 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
1245 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
1246 \Configure{thanks author date and}
1247 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
1248 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
1249 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
1250 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
1251 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
1252 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
1253 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
1254 {\HCode{}}
1255
1256 \Configure{thank}
1257 {\HCode{<affref rid="\the\c@footnote">}}
1258 {\HCode{</affref>}}
1259 {\HCode{<aff id="\the\c@footnote"><affmark>}}
1260 {\HCode{</affmark>}} {\HCode{</aff>}}
1261
1262 \Configure{section}
1263 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1264 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1265 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1266 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1267
1268 \ConfigureMark{section}
1269 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1270 \else
1271 \HCode{<label>}\@seccntformat{section}%
1272 \HCode{</label>}\fi }
1273
1274
1275 \Configure{subsection}
1276 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1277 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1278 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1279 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1280
1281 \ConfigureMark{subsection}
1282 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1283 \else
1284 \HCode{<label>}\@seccntformat{section}%
1285 \HCode{</label>}\fi }
1286
1287
1288 \Configure{subsubsection}
1289 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1290 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1291 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1292 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1293
1294 \ConfigureMark{subsubsection}
1295 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1296 \else
1297 \HCode{<label>}\@seccntformat{section}%
1298 \HCode{</label>}\fi }
1299
1300
1301 \Configure{paragraph}
1302 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1303 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1304 {\HCode{<title>}\HtmlParOff}
1305 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1306
1307
1308
1309 \Configure{float}
1310 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
1311 {\IgnorePar\EndP\HCode{<fig>}}
1312 {\ifvmode \IgnorePar \fi\EndP
1313 \HCode{</fig>}\csname par\endcsname\ShowPar}
1314
1315 \ConfigureEnv{figure}
1316 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
1317 \bgroup \Configure{float}{\ShowPar}{}{}%
1318 }
1319 {\egroup
1320 \IgnorePar\EndP\HCode{</fig>}\par}
1321 {}{}
1322
1323
1324 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
1325 {: } {\HCode{</label><caption>}\noindent\ShowPar}
1326 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
1327 \cur:th\:currentlabel\space-->}%
1328 }
1329
1330 \ConfigureEnv{abstract}
1331 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
1332 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
1333
1334 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
1335 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
1336
1337 \ConfigureEnv{table}
1338 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1339 \Configure{float}{}{}{}{}
1340 }
1341 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1342 {}{}
1343
1344 \ConfigureEnv{table*}
1345 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1346 \Configure{float}{}{}{}{}
1347 }
1348 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1349 {}{}
1350
1351 \ConfigureEnv{tabular}
1352 {\Configure{noalign}%
1353 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
1354 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
1355 %
1356 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
1357 \EndP\HCode{}%
1358 \PushStack\Col:Marg\AllColMargins
1359 }
1360 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
1361 \Configure{noalign}{}{}%
1362 %
1363 \ShowPar
1364 %
1365 }{}{}
1366
1367
1368 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
1369 % suppress footnote number in footnotext, it was already used in footnotemark
1370 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
1371 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
1372 {\EndP\RecallEndP\HCode{</fn>}}%
1373
1374 \ConfigureEnv{quote}
1375 {}{}
1376 {\ifvmode\IgnorePar\fi\EndP%
1377 \HCode{<disp-quote>}}
1378 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
1379
1380 \def\ConfigJatsList#1#2{%
1381 \ConfigureList{#1}%
1382 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
1383 \PushMacro\end:itm
1384 \global\let\end:itm=\empty}
1385 {\PopMacro\end:itm \global\let\end:itm \end:itm
1386 \EndP\HCode{</list-item></list>}}
1387 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
1388 {\HCode{<list-item>}\par\ShowPar
1389 }
1390 }
1391
1392 \ConfigJatsList{itemize}{bulleted}
1393 \ConfigJatsList{enumerate}{order}
1394 \ConfigureList{description}%
1395 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
1396 \PushMacro\end:itm
1397 \global\let\end:itm=\empty}
1398 {\PopMacro\end:itm \global\let\end:itm \end:itm
1399 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
1400 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
1401 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
1402 }
1403
1404
1405 \Configure{chapter}
1406 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1407 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1408 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1409 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1410
1411 \ConfigureMark{chapter}
1412 {\if@mainmatter
1413 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
1414
1415
1416 \Configure{appendix}
1417 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1418 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1419 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1420 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1421
1422 \ConfigureMark{appendix}{\HCode{<label>}%
1423 \appendixname\ \thechapter\HCode{</label>}}
1424
1425
1426
1427 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1428
1429 \endinput\empty\empty\empty\empty\empty\empty
1430 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1431
1432
1433 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1434 \ConfigureHinput{amsproc}
1435 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1436 \Configure{maketitle}
1437 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
1438 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
1439 \def\TeX{TeX}%
1440 \def\mbox{\hbox}%
1441 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
1442 \def\footnotemark[##1]{}%
1443 \def\:hashintitle{\protect\symbol{35}}
1444 \let\#\:hashintitle
1445 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
1446 %
1447 \HCode{<maketitle>}}
1448 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
1449 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
1450 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
1451 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
1452 \Configure{thanks author date and}
1453 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
1454 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
1455 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
1456 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
1457 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
1458 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
1459 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
1460 {\HCode{}}
1461
1462 \Configure{thank}
1463 {\HCode{<affref rid="\the\c@footnote">}}
1464 {\HCode{</affref>}}
1465 {\HCode{<aff id="\the\c@footnote"><affmark>}}
1466 {\HCode{</affmark>}} {\HCode{</aff>}}
1467
1468 \Configure{section}
1469 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1470 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1471 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1472 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1473
1474 \ConfigureMark{section}
1475 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1476 \else
1477 \HCode{<label>}\@seccntformat{section}%
1478 \HCode{</label>}\fi }
1479
1480
1481 \Configure{subsection}
1482 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1483 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1484 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1485 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1486
1487 \ConfigureMark{subsection}
1488 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1489 \else
1490 \HCode{<label>}\@seccntformat{section}%
1491 \HCode{</label>}\fi }
1492
1493
1494 \Configure{subsubsection}
1495 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1496 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1497 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1498 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1499
1500 \ConfigureMark{subsubsection}
1501 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1502 \else
1503 \HCode{<label>}\@seccntformat{section}%
1504 \HCode{</label>}\fi }
1505
1506
1507 \Configure{paragraph}
1508 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1509 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1510 {\HCode{<title>}\HtmlParOff}
1511 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1512
1513
1514
1515 \Configure{float}
1516 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
1517 {\IgnorePar\EndP\HCode{<fig>}}
1518 {\ifvmode \IgnorePar \fi\EndP
1519 \HCode{</fig>}\csname par\endcsname\ShowPar}
1520
1521 \ConfigureEnv{figure}
1522 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
1523 \bgroup \Configure{float}{\ShowPar}{}{}%
1524 }
1525 {\egroup
1526 \IgnorePar\EndP\HCode{</fig>}\par}
1527 {}{}
1528
1529
1530 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
1531 {: } {\HCode{</label><caption>}\noindent\ShowPar}
1532 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
1533 \cur:th\:currentlabel\space-->}%
1534 }
1535
1536 \ConfigureEnv{abstract}
1537 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
1538 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
1539
1540 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
1541 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
1542
1543 \ConfigureEnv{table}
1544 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1545 \Configure{float}{}{}{}{}
1546 }
1547 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1548 {}{}
1549
1550 \ConfigureEnv{table*}
1551 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1552 \Configure{float}{}{}{}{}
1553 }
1554 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1555 {}{}
1556
1557 \ConfigureEnv{tabular}
1558 {\Configure{noalign}%
1559 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
1560 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
1561 %
1562 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
1563 \EndP\HCode{}%
1564 \PushStack\Col:Marg\AllColMargins
1565 }
1566 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
1567 \Configure{noalign}{}{}%
1568 %
1569 \ShowPar
1570 %
1571 }{}{}
1572
1573
1574 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
1575 % suppress footnote number in footnotext, it was already used in footnotemark
1576 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
1577 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
1578 {\EndP\RecallEndP\HCode{</fn>}}%
1579
1580 \ConfigureEnv{quote}
1581 {}{}
1582 {\ifvmode\IgnorePar\fi\EndP%
1583 \HCode{<disp-quote>}}
1584 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
1585
1586 \def\ConfigJatsList#1#2{%
1587 \ConfigureList{#1}%
1588 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
1589 \PushMacro\end:itm
1590 \global\let\end:itm=\empty}
1591 {\PopMacro\end:itm \global\let\end:itm \end:itm
1592 \EndP\HCode{</list-item></list>}}
1593 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
1594 {\HCode{<list-item>}\par\ShowPar
1595 }
1596 }
1597
1598 \ConfigJatsList{itemize}{bulleted}
1599 \ConfigJatsList{enumerate}{order}
1600 \ConfigureList{description}%
1601 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
1602 \PushMacro\end:itm
1603 \global\let\end:itm=\empty}
1604 {\PopMacro\end:itm \global\let\end:itm \end:itm
1605 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
1606 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
1607 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
1608 }
1609
1610
1611 \Configure{chapter}
1612 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1613 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1614 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1615 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1616
1617 \ConfigureMark{chapter}
1618 {\if@mainmatter
1619 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
1620
1621
1622 \Configure{appendix}
1623 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1624 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1625 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1626 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1627
1628 \ConfigureMark{appendix}{\HCode{<label>}%
1629 \appendixname\ \thechapter\HCode{</label>}}
1630
1631
1632
1633
1634 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1635
1636 \endinput\empty\empty\empty\empty\empty\empty
1637 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1658 \ConfigureHinput{biblatex}
1659 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1660 \def\bibConfigure{%
1661 \ConfigureList{thebibliography}
1662 {\ifvmode \IgnorePar \fi \EndP \EndP
1663 \HCode{<ref-list>}\HtmlParOff%
1664 \immediate\write\@auxout{%
1665 \string\providecommand\string\BibFileName[2][]{}
1666 }%
1667 \immediate\write\@auxout{%
1668 \string\BibFileName[\therefsection]{\FileName}}%
1669 \PushMacro \end:itm \global \let \end:itm =\empty}%
1670 {\ifvmode \IgnorePar \fi \EndP
1671 \PopMacro \end:itm \global \let \end:itm \end:itm \EndP
1672 \HCode {</mixed-citation></ref></ref-list>}\HtmlParOn\ShowPar}%
1673 {\ifvmode \IgnorePar \fi \EndP \gHAdvance \bibN by 1
1674 \end:itm \global \def \end:itm {\EndP \HCode{</mixed-citation></ref>}}%
1675 \Tag{X\therefsection-\abx@field@entrykey}{bibitem-\bibN}
1676 \HCode {<ref id="bibitem-\bibN"><label>}}%
1677 {\ifvmode \IgnorePar \fi \EndP
1678 \HCode {</label><mixed-citation publication-type="\thefield{entrytype}" id="bib-\bibN">}}%
1679 }
1680
1681 \DeclareFieldFormat{title}{\HCode{<source>}#1\HCode{</source>}}
1682 \DeclareFieldFormat{booktitle}{\HCode{<source>}#1\HCode{</source>}}
1683 \DeclareFieldFormat{maintitle}{\HCode{<source>}#1\HCode{</source>}}
1684 \DeclareFieldFormat{journaltitle}{\HCode{<source>}#1\HCode{</source>}}
1685 \DeclareFieldFormat[article]{title}{\HCode{<article-title>}#1\HCode{</article-title>}}
1686 \DeclareFieldFormat[incollection]{title}{\HCode{<part-title>}#1\HCode{</part-title>}}
1687 \DeclareFieldFormat[inbook]{title}{\HCode{<part-title>}#1\HCode{</part-title>}}
1688 \DeclareFieldFormat{year}{\HCode{<year>}#1\HCode{</year>}}
1689 \DeclareFieldFormat{date}{\HCode{<date-in-citation content-type="published">}#1\HCode{</date-in-citation>}}
1690 \DeclareFieldFormat{pages}{\HCode{<page-range>}#1\HCode{</page-range>}}
1691 \DeclareListFormat{publisher}{\usebibmacro{list:delim}{#1}\HCode{<publisher-name>}#1\HCode{</publisher-name>}\isdot\usebibmacro{list:andothers}}
1692 \DeclareListFormat{location}{\usebibmacro{list:delim}{#1}\HCode{<publisher-loc>}#1\HCode{</publisher-loc>}\isdot\usebibmacro{list:andothers}}
1693 \DeclareNameFormat{author}{%
1694 \nameparts{#1}% This command initializes commands used in the following bibmacro
1695 \HCode{<string-name>}% use
1696 \usebibmacro{name:family-given}%
1697 {\namepartfamily}%
1698 {\namepartgiveni}%
1699 {\namepartprefix}%
1700 {\namepartsuffix}%
1701 \HCode{</string-name>}%
1702 \usebibmacro{name:andothers}%
1703 }
1704
1705
1706 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1707
1708 \endinput\empty\empty\empty\empty\empty\empty
1709 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1729 \ConfigureHinput{url}
1730 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1731 \Configure{url}%
1732 {\tmp:toks{#1}\ExternalLink[\noexpand\the\tmp:toks]{}{}{\let\UrlBigBreaks\empty
1733 \let\UrlBreaks\empty #1}\EndExternalLink}
1734
1735
1736 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1737
1738 \endinput\empty\empty\empty\empty\empty\empty
1739 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1740
1741
1742 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1743 \ConfigureHinput{hyperref}
1744 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1745
1746
1747 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1748
1749 \endinput\empty\empty\empty\empty\empty\empty
1750 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1832 \ConfigureHinput{memoir}
1833 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1834 \Configure{maketitle}
1835 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
1836 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
1837 \def\TeX{TeX}%
1838 \def\mbox{\hbox}%
1839 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
1840 \def\footnotemark[##1]{}%
1841 \def\:hashintitle{\protect\symbol{35}}
1842 \let\#\:hashintitle
1843 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
1844 %
1845 \HCode{<maketitle>}}
1846 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
1847 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
1848 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
1849 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
1850 \Configure{thanks author date and}
1851 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
1852 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
1853 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
1854 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
1855 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
1856 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
1857 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
1858 {\HCode{}}
1859
1860 \Configure{thank}
1861 {\HCode{<affref rid="\the\c@footnote">}}
1862 {\HCode{</affref>}}
1863 {\HCode{<aff id="\the\c@footnote"><affmark>}}
1864 {\HCode{</affmark>}} {\HCode{</aff>}}
1865
1866 \Configure{section}
1867 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1868 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1869 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1870 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1871
1872 \ConfigureMark{section}
1873 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1874 \else
1875 \HCode{<label>}\@seccntformat{section}%
1876 \HCode{</label>}\fi }
1877
1878
1879 \Configure{subsection}
1880 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1881 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1882 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1883 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1884
1885 \ConfigureMark{subsection}
1886 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1887 \else
1888 \HCode{<label>}\@seccntformat{section}%
1889 \HCode{</label>}\fi }
1890
1891
1892 \Configure{subsubsection}
1893 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1894 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1895 {\TitleMark\space\HCode{<title>}\HtmlParOff}
1896 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1897
1898 \ConfigureMark{subsubsection}
1899 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1900 \else
1901 \HCode{<label>}\@seccntformat{section}%
1902 \HCode{</label>}\fi }
1903
1904
1905 \Configure{paragraph}
1906 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1907 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1908 {\HCode{<title>}\HtmlParOff}
1909 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1910
1911
1912 \Configure{likesection}
1913 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1914 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1915 {\HCode{<title>}\HtmlParOff}
1916 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1917
1918 \Configure{likesubsection}
1919 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1920 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1921 {\HCode{<title>}\HtmlParOff}
1922 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1923
1924 \Configure{likesubsubsection}
1925 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1926 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1927 {\HCode{<title>}\HtmlParOff}
1928 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1929
1930 \Configure{likeparagraph}
1931 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
1932 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
1933 {\HCode{<title>}\HtmlParOff}
1934 {\HCode{</title>}\HtmlParOn \ShowPar\par}
1935
1936
1937
1938 \Configure{float}
1939 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
1940 {\IgnorePar\EndP\HCode{<fig>}}
1941 {\ifvmode \IgnorePar \fi\EndP
1942 \HCode{</fig>}\csname par\endcsname\ShowPar}
1943
1944 \ConfigureEnv{figure}
1945 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
1946 \bgroup \Configure{float}{\ShowPar}{}{}%
1947 }
1948 {\egroup
1949 \IgnorePar\EndP\HCode{</fig>}\par}
1950 {}{}
1951
1952
1953 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
1954 {: } {\HCode{</label><caption>}\noindent\ShowPar}
1955 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
1956 \cur:th\:currentlabel\space-->}%
1957 }
1958
1959 \ConfigureEnv{table}
1960 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1961 \Configure{float}{}{}{}{}
1962 }
1963 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1964 {}{}
1965
1966 \ConfigureEnv{table*}
1967 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
1968 \Configure{float}{}{}{}{}
1969 }
1970 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
1971 {}{}
1972
1973 \ConfigureEnv{tabular}
1974 {\Configure{noalign}%
1975 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
1976 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
1977 %
1978 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
1979 \EndP\HCode{}%
1980 \PushStack\Col:Marg\AllColMargins
1981 }
1982 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
1983 \Configure{noalign}{}{}%
1984 %
1985 \ShowPar
1986 %
1987 }{}{}
1988
1989
1990 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
1991 % suppress footnote number in footnotext, it was already used in footnotemark
1992 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
1993 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
1994 {\EndP\RecallEndP\HCode{</fn>}}%
1995
1996 \ConfigureEnv{quote}
1997 {}{}
1998 {\ifvmode\IgnorePar\fi\EndP%
1999 \HCode{<disp-quote>}}
2000 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
2001
2002 \def\ConfigJatsList#1#2{%
2003 \ConfigureList{#1}%
2004 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
2005 \PushMacro\end:itm
2006 \global\let\end:itm=\empty}
2007 {\PopMacro\end:itm \global\let\end:itm \end:itm
2008 \EndP\HCode{</list-item></list>}}
2009 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
2010 {\HCode{<list-item>}\par\ShowPar
2011 }
2012 }
2013
2014 \ConfigJatsList{itemize}{bulleted}
2015 \ConfigJatsList{enumerate}{order}
2016 \ConfigureList{description}%
2017 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
2018 \PushMacro\end:itm
2019 \global\let\end:itm=\empty}
2020 {\PopMacro\end:itm \global\let\end:itm \end:itm
2021 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
2022 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
2023 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
2024 }
2025
2026 \ConfigureList{thebibliography}%
2027 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
2028 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
2029 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
2030 \HCode{<ref><label>}%
2031 \Configure{HtmlPar}%
2032 {\EndP}%
2033 {\EndP}%
2034 {} {}%
2035 }
2036 {\HCode{</label><mixed-citation>}}
2037
2038
2039 \ConfigureEnv{abstract}
2040 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
2041 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
2042
2043 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
2044 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
2045
2046
2047 \Configure{chapter}
2048 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2049 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2050 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2051 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2052
2053 \ConfigureMark{chapter}
2054 {\if@mainmatter
2055 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
2056
2057
2058 \Configure{appendix}
2059 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2060 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2061 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2062 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2063
2064 \ConfigureMark{appendix}{\HCode{<label>}%
2065 \appendixname\ \thechapter\HCode{</label>}}
2066
2067 \Configure{likechapter}
2068 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2069 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2070 {\HCode{<title>}\HtmlParOff}
2071 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2072
2073
2074
2075
2076 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2077
2078 \endinput\empty\empty\empty\empty\empty\empty
2079 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2175 \ConfigureHinput{scrbook}
2176 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2177 \Configure{maketitle}
2178 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
2179 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
2180 \def\TeX{TeX}%
2181 \def\mbox{\hbox}%
2182 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
2183 \def\footnotemark[##1]{}%
2184 \def\:hashintitle{\protect\symbol{35}}
2185 \let\#\:hashintitle
2186 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
2187 %
2188 \HCode{<maketitle>}}
2189 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
2190 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
2191 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
2192 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
2193 \Configure{thanks author date and}
2194 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
2195 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
2196 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
2197 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
2198 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
2199 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
2200 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
2201 {\HCode{}}
2202
2203 \Configure{thank}
2204 {\HCode{<affref rid="\the\c@footnote">}}
2205 {\HCode{</affref>}}
2206 {\HCode{<aff id="\the\c@footnote"><affmark>}}
2207 {\HCode{</affmark>}} {\HCode{</aff>}}
2208
2209 \Configure{section}
2210 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2211 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2212 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2213 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2214
2215 \ConfigureMark{section}
2216 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2217 \else
2218 \HCode{<label>}\@seccntformat{section}%
2219 \HCode{</label>}\fi }
2220
2221
2222 \Configure{subsection}
2223 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2224 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2225 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2226 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2227
2228 \ConfigureMark{subsection}
2229 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2230 \else
2231 \HCode{<label>}\@seccntformat{section}%
2232 \HCode{</label>}\fi }
2233
2234
2235 \Configure{subsubsection}
2236 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2237 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2238 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2239 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2240
2241 \ConfigureMark{subsubsection}
2242 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2243 \else
2244 \HCode{<label>}\@seccntformat{section}%
2245 \HCode{</label>}\fi }
2246
2247
2248 \Configure{paragraph}
2249 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2250 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2251 {\HCode{<title>}\HtmlParOff}
2252 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2253
2254
2255 \Configure{likesection}
2256 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2257 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2258 {\HCode{<title>}\HtmlParOff}
2259 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2260
2261 \Configure{likesubsection}
2262 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2263 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2264 {\HCode{<title>}\HtmlParOff}
2265 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2266
2267 \Configure{likesubsubsection}
2268 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2269 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2270 {\HCode{<title>}\HtmlParOff}
2271 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2272
2273 \Configure{likeparagraph}
2274 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2275 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2276 {\HCode{<title>}\HtmlParOff}
2277 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2278
2279
2280
2281 \Configure{float}
2282 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
2283 {\IgnorePar\EndP\HCode{<fig>}}
2284 {\ifvmode \IgnorePar \fi\EndP
2285 \HCode{</fig>}\csname par\endcsname\ShowPar}
2286
2287 \ConfigureEnv{figure}
2288 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
2289 \bgroup \Configure{float}{\ShowPar}{}{}%
2290 }
2291 {\egroup
2292 \IgnorePar\EndP\HCode{</fig>}\par}
2293 {}{}
2294
2295
2296 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
2297 {: } {\HCode{</label><caption>}\noindent\ShowPar}
2298 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
2299 \cur:th\:currentlabel\space-->}%
2300 }
2301
2302 \ConfigureEnv{table}
2303 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
2304 \Configure{float}{}{}{}{}
2305 }
2306 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
2307 {}{}
2308
2309 \ConfigureEnv{table*}
2310 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
2311 \Configure{float}{}{}{}{}
2312 }
2313 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
2314 {}{}
2315
2316 \ConfigureEnv{tabular}
2317 {\Configure{noalign}%
2318 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
2319 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
2320 %
2321 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
2322 \EndP\HCode{}%
2323 \PushStack\Col:Marg\AllColMargins
2324 }
2325 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
2326 \Configure{noalign}{}{}%
2327 %
2328 \ShowPar
2329 %
2330 }{}{}
2331
2332
2333 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
2334 % suppress footnote number in footnotext, it was already used in footnotemark
2335 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
2336 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
2337 {\EndP\RecallEndP\HCode{</fn>}}%
2338
2339 \ConfigureEnv{quote}
2340 {}{}
2341 {\ifvmode\IgnorePar\fi\EndP%
2342 \HCode{<disp-quote>}}
2343 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
2344
2345 \def\ConfigJatsList#1#2{%
2346 \ConfigureList{#1}%
2347 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
2348 \PushMacro\end:itm
2349 \global\let\end:itm=\empty}
2350 {\PopMacro\end:itm \global\let\end:itm \end:itm
2351 \EndP\HCode{</list-item></list>}}
2352 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
2353 {\HCode{<list-item>}\par\ShowPar
2354 }
2355 }
2356
2357 \ConfigJatsList{itemize}{bulleted}
2358 \ConfigJatsList{enumerate}{order}
2359 \ConfigureList{description}%
2360 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
2361 \PushMacro\end:itm
2362 \global\let\end:itm=\empty}
2363 {\PopMacro\end:itm \global\let\end:itm \end:itm
2364 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
2365 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
2366 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
2367 }
2368
2369 \ConfigureList{thebibliography}%
2370 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
2371 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
2372 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
2373 \HCode{<ref><label>}%
2374 \Configure{HtmlPar}%
2375 {\EndP}%
2376 {\EndP}%
2377 {} {}%
2378 }
2379 {\HCode{</label><mixed-citation>}}
2380
2381
2382
2383 \Configure{chapter}
2384 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2385 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2386 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2387 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2388
2389 \ConfigureMark{chapter}
2390 {\if@mainmatter
2391 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
2392
2393
2394 \Configure{appendix}
2395 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2396 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2397 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2398 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2399
2400 \ConfigureMark{appendix}{\HCode{<label>}%
2401 \appendixname\ \thechapter\HCode{</label>}}
2402
2403 \Configure{likechapter}
2404 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2405 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2406 {\HCode{<title>}\HtmlParOff}
2407 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2408
2409
2410
2411
2412
2413 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2414
2415 \endinput\empty\empty\empty\empty\empty\empty
2416 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2417
2418 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2419 \ConfigureHinput{scrartcl}
2420 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2421 \Configure{maketitle}
2422 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
2423 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
2424 \def\TeX{TeX}%
2425 \def\mbox{\hbox}%
2426 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
2427 \def\footnotemark[##1]{}%
2428 \def\:hashintitle{\protect\symbol{35}}
2429 \let\#\:hashintitle
2430 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
2431 %
2432 \HCode{<maketitle>}}
2433 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
2434 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
2435 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
2436 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
2437 \Configure{thanks author date and}
2438 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
2439 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
2440 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
2441 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
2442 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
2443 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
2444 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
2445 {\HCode{}}
2446
2447 \Configure{thank}
2448 {\HCode{<affref rid="\the\c@footnote">}}
2449 {\HCode{</affref>}}
2450 {\HCode{<aff id="\the\c@footnote"><affmark>}}
2451 {\HCode{</affmark>}} {\HCode{</aff>}}
2452
2453 \Configure{section}
2454 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2455 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2456 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2457 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2458
2459 \ConfigureMark{section}
2460 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2461 \else
2462 \HCode{<label>}\@seccntformat{section}%
2463 \HCode{</label>}\fi }
2464
2465
2466 \Configure{subsection}
2467 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2468 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2469 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2470 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2471
2472 \ConfigureMark{subsection}
2473 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2474 \else
2475 \HCode{<label>}\@seccntformat{section}%
2476 \HCode{</label>}\fi }
2477
2478
2479 \Configure{subsubsection}
2480 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2481 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2482 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2483 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2484
2485 \ConfigureMark{subsubsection}
2486 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2487 \else
2488 \HCode{<label>}\@seccntformat{section}%
2489 \HCode{</label>}\fi }
2490
2491
2492 \Configure{paragraph}
2493 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2494 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2495 {\HCode{<title>}\HtmlParOff}
2496 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2497
2498
2499 \Configure{likesection}
2500 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2501 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2502 {\HCode{<title>}\HtmlParOff}
2503 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2504
2505 \Configure{likesubsection}
2506 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2507 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2508 {\HCode{<title>}\HtmlParOff}
2509 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2510
2511 \Configure{likesubsubsection}
2512 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2513 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2514 {\HCode{<title>}\HtmlParOff}
2515 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2516
2517 \Configure{likeparagraph}
2518 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2519 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2520 {\HCode{<title>}\HtmlParOff}
2521 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2522
2523
2524
2525 \Configure{float}
2526 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
2527 {\IgnorePar\EndP\HCode{<fig>}}
2528 {\ifvmode \IgnorePar \fi\EndP
2529 \HCode{</fig>}\csname par\endcsname\ShowPar}
2530
2531 \ConfigureEnv{figure}
2532 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
2533 \bgroup \Configure{float}{\ShowPar}{}{}%
2534 }
2535 {\egroup
2536 \IgnorePar\EndP\HCode{</fig>}\par}
2537 {}{}
2538
2539
2540 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
2541 {: } {\HCode{</label><caption>}\noindent\ShowPar}
2542 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
2543 \cur:th\:currentlabel\space-->}%
2544 }
2545
2546 \ConfigureEnv{table}
2547 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
2548 \Configure{float}{}{}{}{}
2549 }
2550 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
2551 {}{}
2552
2553 \ConfigureEnv{table*}
2554 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
2555 \Configure{float}{}{}{}{}
2556 }
2557 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
2558 {}{}
2559
2560 \ConfigureEnv{tabular}
2561 {\Configure{noalign}%
2562 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
2563 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
2564 %
2565 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
2566 \EndP\HCode{}%
2567 \PushStack\Col:Marg\AllColMargins
2568 }
2569 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
2570 \Configure{noalign}{}{}%
2571 %
2572 \ShowPar
2573 %
2574 }{}{}
2575
2576
2577 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
2578 % suppress footnote number in footnotext, it was already used in footnotemark
2579 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
2580 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
2581 {\EndP\RecallEndP\HCode{</fn>}}%
2582
2583 \ConfigureEnv{quote}
2584 {}{}
2585 {\ifvmode\IgnorePar\fi\EndP%
2586 \HCode{<disp-quote>}}
2587 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
2588
2589 \def\ConfigJatsList#1#2{%
2590 \ConfigureList{#1}%
2591 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
2592 \PushMacro\end:itm
2593 \global\let\end:itm=\empty}
2594 {\PopMacro\end:itm \global\let\end:itm \end:itm
2595 \EndP\HCode{</list-item></list>}}
2596 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
2597 {\HCode{<list-item>}\par\ShowPar
2598 }
2599 }
2600
2601 \ConfigJatsList{itemize}{bulleted}
2602 \ConfigJatsList{enumerate}{order}
2603 \ConfigureList{description}%
2604 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
2605 \PushMacro\end:itm
2606 \global\let\end:itm=\empty}
2607 {\PopMacro\end:itm \global\let\end:itm \end:itm
2608 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
2609 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
2610 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
2611 }
2612
2613 \ConfigureList{thebibliography}%
2614 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
2615 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
2616 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
2617 \HCode{<ref><label>}%
2618 \Configure{HtmlPar}%
2619 {\EndP}%
2620 {\EndP}%
2621 {} {}%
2622 }
2623 {\HCode{</label><mixed-citation>}}
2624
2625
2626
2627 \ConfigureEnv{abstract}
2628 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
2629 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
2630
2631 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
2632 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
2633
2634
2635
2636
2637 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2638
2639 \endinput\empty\empty\empty\empty\empty\empty
2640 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2641
2642 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2643 \ConfigureHinput{scrreprt}
2644 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2645 \Configure{maketitle}
2646 {\ifvmode \IgnorePar\fi \EndP {\Configure{maketitle}{}{}{}{}%
2647 % \let\thanks\let \prOteCt \relax \Protect \csname acp:c\endcsname {18}\:gobble
2648 \def\TeX{TeX}%
2649 \def\mbox{\hbox}%
2650 \def\gobble:font##1##2{##2}\:TITLE: \no:fonts
2651 \def\footnotemark[##1]{}%
2652 \def\:hashintitle{\protect\symbol{35}}
2653 \let\#\:hashintitle
2654 \NoFonts\Tag{TITLE+}{\@title}\EndNoFonts}
2655 %
2656 \HCode{<maketitle>}}
2657 {\ifvmode \IgnorePar\fi \EndP \HCode{</maketitle>}}
2658 {\NoFonts\IgnorePar\HCode{<article-title>}\IgnorePar}
2659 {\HCode{</article-title>}\IgnoreIndent\EndNoFonts}
2660 \def\date:zeropad#1{\ifnum #1<10 0\fi#1}
2661 \Configure{thanks author date and}
2662 {\ifvmode \IgnorePar\fi\EndP \HCode{<aff>}}
2663 {\ifvmode \IgnorePar\fi\EndP \HCode{</aff>}}
2664 {\ifvmode \IgnorePar\fi\EndP \HCode{<contrib contrib-type="author"><name><string-name>}}
2665 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-name></name></contrib>}}
2666 {\ifvmode \IgnorePar\fi\EndP \HCode{<date iso-8601-date="\the\year-\date:zeropad{\the\month}-\date:zeropad{\the\day}"><string-date>}}
2667 {\ifvmode \IgnorePar\fi\EndP \HCode{</string-date></date>}}
2668 {\HCode{</string-name></name></contrib><contrib contrib-type="author"><name><string-name>}}
2669 {\HCode{}}
2670
2671 \Configure{thank}
2672 {\HCode{<affref rid="\the\c@footnote">}}
2673 {\HCode{</affref>}}
2674 {\HCode{<aff id="\the\c@footnote"><affmark>}}
2675 {\HCode{</affmark>}} {\HCode{</aff>}}
2676
2677 \Configure{section}
2678 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2679 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2680 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2681 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2682
2683 \ConfigureMark{section}
2684 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2685 \else
2686 \HCode{<label>}\@seccntformat{section}%
2687 \HCode{</label>}\fi }
2688
2689
2690 \Configure{subsection}
2691 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2692 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2693 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2694 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2695
2696 \ConfigureMark{subsection}
2697 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2698 \else
2699 \HCode{<label>}\@seccntformat{section}%
2700 \HCode{</label>}\fi }
2701
2702
2703 \Configure{subsubsection}
2704 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2705 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2706 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2707 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2708
2709 \ConfigureMark{subsubsection}
2710 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
2711 \else
2712 \HCode{<label>}\@seccntformat{section}%
2713 \HCode{</label>}\fi }
2714
2715
2716 \Configure{paragraph}
2717 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2718 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2719 {\HCode{<title>}\HtmlParOff}
2720 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2721
2722
2723 \Configure{likesection}
2724 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2725 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2726 {\HCode{<title>}\HtmlParOff}
2727 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2728
2729 \Configure{likesubsection}
2730 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2731 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2732 {\HCode{<title>}\HtmlParOff}
2733 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2734
2735 \Configure{likesubsubsection}
2736 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2737 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2738 {\HCode{<title>}\HtmlParOff}
2739 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2740
2741 \Configure{likeparagraph}
2742 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2743 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2744 {\HCode{<title>}\HtmlParOff}
2745 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2746
2747
2748
2749 \Configure{float}
2750 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
2751 {\IgnorePar\EndP\HCode{<fig>}}
2752 {\ifvmode \IgnorePar \fi\EndP
2753 \HCode{</fig>}\csname par\endcsname\ShowPar}
2754
2755 \ConfigureEnv{figure}
2756 {\IgnorePar\EndP\HCode{<fig>\Hnewline}%
2757 \bgroup \Configure{float}{\ShowPar}{}{}%
2758 }
2759 {\egroup
2760 \IgnorePar\EndP\HCode{</fig>}\par}
2761 {}{}
2762
2763
2764 \Configure{caption}{\IgnorePar\EndP\HCode{<label>}}
2765 {: } {\HCode{</label><caption>}\noindent\ShowPar}
2766 {\HCode{</caption>}\HCode{<!--tex4ht:label?:
2767 \cur:th\:currentlabel\space-->}%
2768 }
2769
2770 \ConfigureEnv{table}
2771 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
2772 \Configure{float}{}{}{}{}
2773 }
2774 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
2775 {}{}
2776
2777 \ConfigureEnv{table*}
2778 {\ifvmode \IgnorePar\fi \EndP \HCode{<table-wrap position="float">}
2779 \Configure{float}{}{}{}{}
2780 }
2781 {\ifvmode \IgnorePar\fi \EndP \HCode{</table-wrap>}\par\ShowPar}
2782 {}{}
2783
2784 \ConfigureEnv{tabular}
2785 {\Configure{noalign}%
2786 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
2787 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
2788 %
2789 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
2790 \EndP\HCode{}%
2791 \PushStack\Col:Marg\AllColMargins
2792 }
2793 {\HCode{}\PopStack\Col:Marg\AllColMargins\ShowPar
2794 \Configure{noalign}{}{}%
2795 %
2796 \ShowPar
2797 %
2798 }{}{}
2799
2800
2801 \Configure{footnotemark}{\bgroup\NoFonts\HCode{<fn symbol="}\Configure{textsuperscript}{}{}}{\HCode{">}\EndNoFonts\egroup}
2802 % suppress footnote number in footnotext, it was already used in footnotemark
2803 \Configure{footnotetext}{\NoFonts\ShowPar\setbox0=\vbox\bgroup}
2804 {\egroup\EndNoFonts\SaveEndP\par\ShowPar\normalsize}% force new paragraph and normal font size
2805 {\EndP\RecallEndP\HCode{</fn>}}%
2806
2807 \ConfigureEnv{quote}
2808 {}{}
2809 {\ifvmode\IgnorePar\fi\EndP%
2810 \HCode{<disp-quote>}}
2811 {\IgnorePar\EndP\HCode{</disp-quote>}\ShowPar\ShowIndent}
2812
2813 \def\ConfigJatsList#1#2{%
2814 \ConfigureList{#1}%
2815 {\ifvmode\IgnorePar\fi\EndP\EndP\HCode{<list list-type="#2">}%
2816 \PushMacro\end:itm
2817 \global\let\end:itm=\empty}
2818 {\PopMacro\end:itm \global\let\end:itm \end:itm
2819 \EndP\HCode{</list-item></list>}}
2820 {\end:itm\global\def\end:itm{\EndP\Tg</list-item>}\DeleteMark}
2821 {\HCode{<list-item>}\par\ShowPar
2822 }
2823 }
2824
2825 \ConfigJatsList{itemize}{bulleted}
2826 \ConfigJatsList{enumerate}{order}
2827 \ConfigureList{description}%
2828 {\ifvmode\IgnorePar\fi\EndP\HCode{<def-list>}%
2829 \PushMacro\end:itm
2830 \global\let\end:itm=\empty}
2831 {\PopMacro\end:itm \global\let\end:itm \end:itm
2832 \EndP\HCode{</def></def-item></def-list>}\ShowPar}
2833 {\end:itm \global\def\end:itm{\EndP\HCode{</def></def-item>}}\HCode{<def-item><term>}\NoFonts\HtmlParOff}
2834 {\EndNoFonts\HCode{</term><def>}\HtmlParOn\par\ShowPar
2835 }
2836
2837 \ConfigureList{thebibliography}%
2838 {\ifvmode\IgnorePar\fi \EndP \HCode{<ref-list>}\let\en:bib=\empty}
2839 {\en:bib \ifvmode\IgnorePar\fi \EndP \HCode{</ref-list>}}
2840 {\en:bib\def\en:bib{\HCode{</mixed-citation></ref>}}%
2841 \HCode{<ref><label>}%
2842 \Configure{HtmlPar}%
2843 {\EndP}%
2844 {\EndP}%
2845 {} {}%
2846 }
2847 {\HCode{</label><mixed-citation>}}
2848
2849
2850
2851 \ConfigureEnv{abstract}
2852 {\ifvmode\IgnorePar\fi\EndP\HCode{<abstract>\Hnewline}}
2853 {\ifvmode\IgnorePar\fi\EndP\HCode{</abstract>}\par}{}{}
2854
2855 \Configure{abstracttitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<label>}\HtmlParOff\NoFonts}
2856 {\HCode{</label>}\EndNoFonts\HtmlParOn\par}
2857
2858
2859
2860 \Configure{chapter}
2861 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2862 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2863 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2864 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2865
2866 \ConfigureMark{chapter}
2867 {\if@mainmatter
2868 \HCode{<label>}\chaptername\ \thechapter\HCode{</label>}\fi}
2869
2870
2871 \Configure{appendix}
2872 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2873 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2874 {\TitleMark\space\HCode{<title>}\HtmlParOff}
2875 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2876
2877 \ConfigureMark{appendix}{\HCode{<label>}%
2878 \appendixname\ \thechapter\HCode{</label>}}
2879
2880 \Configure{likechapter}
2881 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{<sec>\Hnewline}}
2882 {\ifvmode\IgnorePar\fi\EndP\IgnorePar\HCode{</sec>\Hnewline}}
2883 {\HCode{<title>}\HtmlParOff}
2884 {\HCode{</title>}\HtmlParOn \ShowPar\par}
2885
2886
2887
2888
2889
2890 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2891
2892 \endinput\empty\empty\empty\empty\empty\empty
2893 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198 \endinput
3199