Debian Codegraph @

texmf-dist/tex/generic/tex4ht/html-speech.4ht

raw
1 % html-speech.4ht (2016-03-31-11:13), generated from tex4ht-html-speech.tex
2 % Copyright 2009-2016 TeX Users Group
3 % Copyright 1997-2009 Eitan M. Gurari
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <http://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2016-03-31-11:13}
21
22 \exit:ifnot{JHEP,%
23 Preamble,%
24 aa,%
25 acm-proc-article-sp,%
26 amsart,%
27 amsbook,%
28 amsproc,%
29 amsthm,%
30 array,%
31 article,%
32 book,%
33 frenchb,%
34 latex,%
35 letter,%
36 plain,%
37 report,%
38 scrbook,%
39 scrreprt,%
40 slides,%
41 tex4ht,%
42 tex4ht2}
43
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45 \ConfigureHinput{Preamble}
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
47 \:CheckOption{math-} \if:Option
48 \edef\Preamble{\Preamble,mathml-}
49 \else
50 \Log:Note{for sources failing to produce
51 clean math code, try the command line option `math-'}%
52 \fi
53 \def\CssSpeech#1{\Css{@media speech{#1}}}
54 \def\add:description#1#2{<span class="#1"
55 title="speech-extra" >\Hnewline #2\Hnewline</span>}
56 \def\add:vdescription#1#2{<div class="#1"
57 title="speech-extra" >\Hnewline #2\Hnewline</div>}
58 \edef\Preamble{\Preamble,xhtml}
59
60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61
62 \endinput\empty\empty\empty\empty\empty\empty
63 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64
65 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66 \ConfigureHinput{tex4ht}
67 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
68 \Configure{VERSION}
69 {\HCode{<?xml version="1.0" encoding="\expandafter\ifx \csname a:charset\endcsname\relax
70 \expandafter\:encoding\A:charset
71 \else \expandafter\:encoding\a:charset\fi"
72 ?>\Hnewline
73 <?xtpipes file="htspk.4xt" ?>\Hnewline}}
74 \Css{.begin-math, .end-math {color:red;}}
75 \Css{span.semi-math {color:red;font-style:italic;}}
76 \Css{span[title="ch-verbose"] {color:red;}}
77 \Css{.added-description {color:green;}}
78 \Css{.begin-end {color:green;}}
79 \Css{.begin-root, .end-root, .mid-root {color:green;}}
80 \Css{.begin-stack, .end-stack, .mid-stack {color:green;}}
81 \Css{.capital-description {color:green;}}
82 \Configure{DOCTYPE}
83 {\HCode{% <!DOCTYPE html \xhtml:DOCTYPE> \Hnewline
84 <!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
85 \Hnewline}}
86 \def\xhtml:DOCTYPE{PUBLIC
87 "-//W3C//DTD XHTML 1.0 Transitional//"\Hnewline
88 \space\space "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}
89 \let\Link\M:Link \let\M:Link\:UnDef
90 \let\EndLink\M:EndLink \let\M:EndLink\:UnDef
91 \Configure{@HEAD}{}
92 \:CheckOption{xht} \if:Option
93 \:CheckOption{xhtml}\if:Option \else \:CheckOption{xml}\fi
94 \fi
95 \Log:Note{for file extension name xht, use the command line option `xht'}%
96 \Configure{@HEAD}{\HCode{<meta
97 http-equiv="Content-Type" content="text/html;
98 \expandafter\ifx \csname a:charset\endcsname\relax\A:charset
99 \else \a:charset\fi"></meta>\Hnewline}}
100
101 \def\:gobbleM#1->{}
102 \Configure{@HEAD}{\HCode{<meta
103 name="generator" content="TeX4ht
104 (http://www.cse.ohio-state.edu/\string
105 ~gurari/TeX4ht/)"></meta>\Hnewline}}
106 \Configure{@HEAD}{\HCode{<meta
107 name="originator" content="TeX4ht
108 (http://www.cse.ohio-state.edu/\string
109 ~gurari/TeX4ht/)"></meta>\Hnewline
110 <!--\space\expandafter\:gobbleM\meaning
111 \Preamble\space-->\Hnewline}}
112
113 \immediate\write-1{TeX4ht package options:
114 \expandafter\:gobbleM\meaning\Preamble}
115 \Configure{@HEAD}
116 {\HCode{<meta name="src" content="\jobname.tex"></meta>\Hnewline}}
117 \:CheckOption{timestamp}\if:Option
118 \Configure{@HEAD}
119 {\HCode{<meta name="date" content="\:today"></meta>\Hnewline}}
120 \else
121 \Log:Note{To print a timestamp, use the command line option timestamp}
122 \fi
123
124 \:CheckOption{css-in} \if:Option
125 \Log:Note{the inline CSS code is extracted from the input of the
126 previous compilation, so an extra compilation might be needed}
127 \Configure{@HEAD}{}
128 \else
129 \Log:Note{for inline CSS code, use the command line option `css-in'}
130 \Configure{@HEAD}{\HCode{<link
131 rel="stylesheet" type="text/css"
132 href="\aa:CssFile"></link>\Hnewline}}
133 \fi
134 \Configure{crosslinks}{ }{ }{next}{previous}{previous-tail}{front}{tail}{up}
135 \Configure{crosslinks+}
136 {\IgnorePar\EndP\HCode{<!--l. \the\inputlineno-->%
137 %
138 <div class="crosslinks"><p class="noindent">
139 \add:vdescription{begin-end}{\a:speak:crosslinks}}}
140 {\HCode{\add:vdescription{begin-end}{\b:speak:crosslinks}
141 </p></div>}\par\ShowPar}
142 {\IgnorePar\EndP\HCode{<!--l. \the\inputlineno-->%
143 %
144 <div class="crosslinks"><p class="noindent">
145 \add:vdescription{begin-end}{\a:speak:crosslinks}}}
146 {\HCode{\add:vdescription{begin-end}{\b:speak:crosslinks}
147 </p></div>}\par\ShowPar}
148 \:CheckOption{next} \if:Option
149 \Configure{next+}
150 {\ShowPar\par\noindent \HCode{<span class="next">
151 \add:description{added-description}{\c:speak:crosslinks}}}
152 {\HCode{</span>}}
153 \fi
154 \NewConfigure{speak:crosslinks}{3}
155 \Configure{speak:crosslinks}
156 {Navigation links}
157 {End navigation links}
158 {Navigation link}
159 \HAssign\HRow=0
160 \def\ord:pos#1{%
161 \ifcase #1
162 \or first
163 \or second
164 \or third
165 \or fourth
166 \or fifth
167 \or sixth
168 \or seventh
169 \or eighth
170 \or nineth
171 \else #1th
172 \fi
173 }
174 \Css{.ord-row {color:red;}}
175 \Css{.begin-limits-script, .end-limits-script, .mid-limits-script {color:green;}}
176 \Css{.begin-script, .end-script, .mid-script {color:green;}}
177
178 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
179
180 \endinput\empty\empty\empty\empty\empty\empty
181 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
182
183 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
184 \ConfigureHinput{tex4ht2}
185 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
186 \Configure{embedded-halign}{}{}
187
188 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189
190 \endinput\empty\empty\empty\empty\empty\empty
191 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
192
193
194
195
196 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
197 \ConfigureHinput{latex}
198 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
199 \Configure{verbatim} {} {\a:sp}
200 \def\env:verb#1{\ifinner\else \vfill\break\fi
201 \IgnorePar\EndP \HAssign\Verb:N=0
202 \HCode{\add:description{added-description}{begin verbatim}%
203 <pre class="#1"\a:LRdir>}\EndNoFonts}
204 \def\endenv:verb{\NoFonts
205 \EndP \ht:special{t4ht=</pre>%
206 \add:description{added-description}{end verbatim}%
207 }\ShowPar \par{\HCondtrue\noindent}%
208 }
209 \def\start:fenv#1{\:xhtml{\IgnorePar
210 \EndP}\HCode{<div align="#1"\Hnewline\a:LRdir>}}
211 \def\end:fenv{\IgnorePar\HCode{</div>}\IgnorePar}
212
213 \Configure{footnote-mark}
214 {\HCode{\add:description{added-description}{\a:speak:footnote}}%
215 \HCode{<span class="footnote-mark">}}
216 {\HCode{</span>}\HCode{}%
217 }
218 \NewConfigure{speak:footnote}{1}
219 \Configure{speak:footnote}
220 {footnote}
221
222 \ConfigureEnv{tabular}
223 {\Configure{noalign}%
224 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
225 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
226 %
227 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
228 \EndP
229 }
230 {\ShowPar
231 \Configure{noalign}{}{}%
232 %
233 \ShowPar
234 %
235 }{}{}
236 \Configure{tabular}
237 {\ifvmode \IgnorePar\fi \EndP
238 \HCode{<div class="table" title="tabular" >}\HCode{\add:vdescription{begin-end}{begin table}}%
239 }
240 {\HCode{<!--l. \the\inputlineno-->%
241 \add:vdescription{begin-end}{end table}}%
242 \HCode{</div>}}
243 {\HCode{<div class="tr"><!--row \HRow-->}%
244 \HCode{\add:vdescription{begin-end}{<span class="ord-row">\ord:pos{\HRow}</span>%
245 row}}%
246 }
247 {\HCode{</div>}}
248 {\HCode{<div class="td"><!--entry \HRow-\HCol\ifnum
249 \HMultispan>1 \, span \HMultispan\fi-->}%
250 \HCode{%
251 \add:vdescription{added-description}{%
252 \ifnum \HMultispan>1 \ord:pos{\HCol}%
253 cell, spans
254 \HMultispan \space columns
255 \else
256 \ifnum \HCol>1 \ord:pos{\HCol}%
257 cell \fi
258 \fi
259 }}%
260 \HCode{<div>}\SaveEndP
261 \par \ShowPar}
262 {\IgnorePar \EndP \ifvmode \IgnorePar \fi \EndP
263 \HCode{</div>}%
264 \HCode{</div>\Hnewline}\RecallEndP }
265
266 \def\@cite#1#2{%
267 \HCode{\add:description{added-description}{\a:speak:citation}}%
268 {#1\if@tempswa , #2\fi}}
269 \def\@biblabel#1{%
270 \HCode{\add:description{added-description}{\a:speak:bib}}%
271 #1}
272 \NewConfigure{speak:citation}{1}
273 \Configure{speak:citation}{citation }
274 \NewConfigure{speak:bib}{1}
275 \Configure{speak:bib}{Bibliography entry }
276 \Css{.begin-array, .end-array {color:green;}}
277 \ConfigureList{trivlist}%
278 {\EndP\HCode{<dl \a:LRdir class="trivlist">}%
279 \PushMacro\end:itm
280 \global\let\end:itm=\empty}
281 {\PopMacro\end:itm \global\let\end:itm \end:itm
282 \EndP\HCode{</dd></dl>}\ShowPar}
283 {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
284 class="trivlist">}\bgroup \bf}
285 {\egroup\HCode{</dt><dd\Hnewline class="trivlist">}}
286 \ConfigureList{list}%
287 {\EndP\HCode{<dl \a:LRdir class="list\expandafter\the
288 \csname @listdepth\endcsname">}%
289 \PushMacro\end:itm
290 \global\let\end:itm=\empty}
291 {\PopMacro\end:itm \global\let\end:itm \end:itm
292 \EndP\HCode{</dd></dl>}\ShowPar}
293 {\end:itm \global\def\end:itm{\EndP\Tg</dd>}\HCode{<dt
294 class="list">}\bgroup \bf}
295 {\egroup\HCode{</dt><dd\Hnewline class="list">}}
296 \ConfigureList{itemize}%
297 {\EndP\HCode{<div class="itemize">%
298 <div class="added-list-description">%
299 \add:description{added-description}{\a:speak:itemize}</div>}%
300 \HCode{<div
301 \a:LRdir class="ul-itemize\expandafter\the
302 \csname @itemdepth\endcsname">}%
303 \PushMacro\end:itm
304 \global\let\end:itm=\empty}
305 {\PopMacro\end:itm \global\let\end:itm \end:itm
306 \ifvmode \IgnorePar\fi
307 \EndP\HCode{</div></div>}\HCode{<div class="added-list-description">%
308 \add:description{added-description}{\b:speak:itemize}</div></div>}%
309 \ShowPar}
310 {\end:itm \global\def\end:itm{\EndP\Tg</div>}%
311 \HCode{<div class="li-itemize">}\HCode{<span class="added-list-description">%
312 \add:description{added-description}{\c:speak:itemize}</span>}%
313 \DeleteMark
314 }
315 {\HCode{}}
316 \NewConfigure{speak:itemize}{3}
317 \Configure{speak:itemize}
318 {begin \ifcase\csname @listdepth\endcsname
319 \or \or sub \or sub sub \or sub sub sub \else\fi
320 list}
321 {end \ifcase\csname @listdepth\endcsname
322 \or sub \or sub sub \or sub sub sub \else\fi
323 list}
324 {
325 item}
326 \ConfigureList{enumerate}%
327 {\EndP\HCode{<div class="enumerate">%
328 <div class="added-list-description">%
329 \add:description{added-description}{\a:speak:enumerate}</div>}%
330 \HCode{<div \a:enumerate:\space
331 class="ol-enumerate\expandafter\the\csname @enumdepth\endcsname"
332 \a:LRdir
333 >}\PushMacro\end:itm
334 \global\let\end:itm=\empty
335 }
336 {\PopMacro\end:itm \global\let\end:itm \end:itm
337 %
338 \EndP\HCode{</div></div>}\HCode{<div class="added-list-description">%
339 \add:description{added-description}{\b:speak:enumerate}</div></div>}%
340 \ShowPar
341 }
342 {\end:itm \gdef\end:itm{\EndP\Tg</div>}%
343 \HCode{<div class="li-enumerate" \Hnewline><span
344 class="ol-mark">}\HCode{<span class="added-list-description">%
345 \add:description{added-description}{\c:speak:enumerate}</span>}%
346 %\DeleteMark
347 }
348 {\HCode{}\HCode{</span>}%\AnchorLabel
349 }
350 \NewConfigure{speak:enumerate}{3}
351 \Configure{speak:enumerate}
352 {begin \ifcase\csname @listdepth\endcsname
353 \or \or sub \or sub sub \or sub sub sub \else\fi
354 list}
355 {end \ifcase\csname @listdepth\endcsname
356 \or sub \or sub sub \or sub sub sub \else\fi
357 list}
358 {
359 item}
360
361 \Configure{float}
362 {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}
363 {\:xhtml{\IgnorePar\EndP}\HCode{<div class="float"\Hnewline>}}
364 {\ifvmode \IgnorePar \fi\EndP
365 \HCode{</div>}\csname par\endcsname\ShowPar}
366 \ConfigureEnv{figure}
367 {\:xhtml{\IgnorePar\EndP}%
368 \HCode{<div class="figure"\Hnewline><div>\add:description{begin-end}{\a:speak:figure}</div>%
369 }%
370 \bgroup \Configure{float}{\ShowPar}{}{}%
371 }
372 {\egroup
373 \:xhtml{\IgnorePar\EndP}\HCode{<div>\add:description{begin-end}{\b:speak:figure}</div>%
374 </div>}%
375 \ShowPar
376 \par}
377 {}{}
378 \NewConfigure{speak:caption}{3}
379 \Configure{speak:caption}
380 {begin caption}
381 {end caption}
382 {caption of}
383 \NewConfigure{speak:figure}{2}
384 \Configure{speak:figure}
385 {begin figure environment}
386 {end figure environment}
387 \Configure{marginpar}
388 {\ifvmode
389 \IgnorePar\EndP\HCode{<div class="marginpar">}%
390 \HCode{<div>
391 \add:description{begin-end}{\a:speak:marginpar}</div><div>}%
392 %
393 \def\end:margp{\ifvmode \IgnorePar\fi \EndP
394 \HCode{</div><div>
395 \add:description{begin-end}{\b:speak:marginpar}</div>}%
396 \HCode{</div>}}%
397 \par
398 \else
399 \SaveEndP
400 \HCode{<span class="marginpar">}\HCode{\add:description{begin-end}{\a:speak:marginpar}}%
401 %
402 \bgroup
403 \Configure{HtmlPar}
404 {<br />}
405 {\HCode{<br />}}
406 {}{}%
407 \def\end:margp{\egroup
408 \HCode{\add:description{begin-end}{\b:speak:marginpar}}%
409 \HCode{</span>}\RecallEndP}%
410 \fi
411 }
412 {\end:margp}
413 \NewConfigure{speak:marginpar}{2}
414 \Configure{speak:marginpar}
415 {begin margin note}
416 {end margin note}
417 \Configure{newtheorem}
418 {\ifvmode\IgnorePar\fi\EndP
419 \HCode{<div class="newtheorem">}\par\noindent
420 \HCode{<span class="theorem-head">}}
421 {\HCode{</span>}}
422 {\EndP\IgnorePar\HCode{</div>}\ShowPar\par}
423 \Css{span.theorem-head { font-weight:bold; }}
424
425 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
426
427 \endinput\empty\empty\empty\empty\empty\empty
428 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
429
430
431 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
432 \ConfigureHinput{book}
433 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
434 \ConfigureMark{section}
435 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
436 \else
437 \HCode{<span class="titlemark">\add:description{added-description}
438 {\a:speak:section}}\@seccntformat{section}%
439 \HCode{</span>}\fi }
440 \ConfigureMark{subsection}
441 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
442 \else
443 \HCode{<span class="titlemark">\add:description{added-description}
444 {\a:speak:subsection}}\@seccntformat{subsection}%
445 \HCode{</span>}\fi }
446 \NewConfigure{speak:section}{1}
447 \Configure{speak:section}{section}
448 \NewConfigure{speak:subsection}{1}
449 \Configure{speak:subsection}{subsection}
450
451
452
453
454
455 \Configure{caption}{\HCode{\if:nopar \else <br />\fi}
456 \:xhtml{\IgnorePar\EndP}\HCode{<div class="caption"><span class="mark">}%
457 \HCode{\add:description{added-description}{\c:speak:caption}}%
458 }
459 {: } {\HCode{}%
460 \HCode{</span>%
461 <span \Hnewline class="content">%
462 \add:description{added-description}{\a:speak:caption}}}
463 {\HCode{\add:description{added-description}{\b:speak:caption}%
464 </span></div>}}
465
466 \ConfigureList{description}%
467 {\EndP\HCode{<div class="description">%
468 <div class="added-list-description">%
469 \add:description{added-description}{\a:speak:description}</div>}%
470 %
471 \HCode{<div \a:LRdir class="dl-description">}%
472 \PushMacro\end:itm
473 \global\let\end:itm=\empty}
474 {\PopMacro\end:itm \global\let\end:itm \end:itm
475 \EndP\HCode{</div></div>}%
476 \HCode{<div class="added-list-description">%
477 \add:description{added-description}{\b:speak:description}</div></div>}%
478 \ShowPar}
479 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
480 class="dt-description">}\HCode{<span class="added-list-description">%
481 \add:description{added-description}{\c:speak:description}%
482 </span>}%
483 \bgroup \bf}
484 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
485
486
487 \Configure{enumiii}
488 {\HCode{<span class="roman-numeral">}%
489 Roman numeral \HCode{}\the\c@enumiii
490 \HCode{}\:gobbleII}
491 {\HCode{</span>}}
492 \long\def\:tempc{(\theenumii)}
493 \ifx \labelenumii\:tempc
494 \def\:tempc{(\HCode{}\theenumii\HCode{})}
495 \HLet\labelenumii\:tempc
496 \fi
497
498
499
500 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
501
502 \endinput\empty\empty\empty\empty\empty\empty
503 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
504
505 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
506 \ConfigureHinput{report}
507 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
508 \ConfigureMark{section}
509 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
510 \else
511 \HCode{<span class="titlemark">\add:description{added-description}
512 {\a:speak:section}}\@seccntformat{section}%
513 \HCode{</span>}\fi }
514 \ConfigureMark{subsection}
515 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
516 \else
517 \HCode{<span class="titlemark">\add:description{added-description}
518 {\a:speak:subsection}}\@seccntformat{subsection}%
519 \HCode{</span>}\fi }
520 \NewConfigure{speak:section}{1}
521 \Configure{speak:section}{section}
522 \NewConfigure{speak:subsection}{1}
523 \Configure{speak:subsection}{subsection}
524
525
526
527
528
529 \Configure{caption}{\HCode{\if:nopar \else <br />\fi}
530 \:xhtml{\IgnorePar\EndP}\HCode{<div class="caption"><span class="mark">}%
531 \HCode{\add:description{added-description}{\c:speak:caption}}%
532 }
533 {: } {\HCode{}%
534 \HCode{</span>%
535 <span \Hnewline class="content">%
536 \add:description{added-description}{\a:speak:caption}}}
537 {\HCode{\add:description{added-description}{\b:speak:caption}%
538 </span></div>}}
539
540 \ConfigureList{description}%
541 {\EndP\HCode{<div class="description">%
542 <div class="added-list-description">%
543 \add:description{added-description}{\a:speak:description}</div>}%
544 %
545 \HCode{<div \a:LRdir class="dl-description">}%
546 \PushMacro\end:itm
547 \global\let\end:itm=\empty}
548 {\PopMacro\end:itm \global\let\end:itm \end:itm
549 \EndP\HCode{</div></div>}%
550 \HCode{<div class="added-list-description">%
551 \add:description{added-description}{\b:speak:description}</div></div>}%
552 \ShowPar}
553 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
554 class="dt-description">}\HCode{<span class="added-list-description">%
555 \add:description{added-description}{\c:speak:description}%
556 </span>}%
557 \bgroup \bf}
558 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
559
560
561 \Configure{enumiii}
562 {\HCode{<span class="roman-numeral">}%
563 Roman numeral \HCode{}\the\c@enumiii
564 \HCode{}\:gobbleII}
565 {\HCode{</span>}}
566 \long\def\:tempc{(\theenumii)}
567 \ifx \labelenumii\:tempc
568 \def\:tempc{(\HCode{}\theenumii\HCode{})}
569 \HLet\labelenumii\:tempc
570 \fi
571
572
573 \ConfigureEnv{abstract}
574 {\IgnorePar\EndP
575 \HCode{<div class="abstract"\Hnewline>}\par\ShowPar}
576 {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
577 {}{}
578
579
580 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
581
582 \endinput\empty\empty\empty\empty\empty\empty
583 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
584
585 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
586 \ConfigureHinput{article}
587 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
588 \ConfigureMark{section}
589 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
590 \else
591 \HCode{<span class="titlemark">\add:description{added-description}
592 {\a:speak:section}}\@seccntformat{section}%
593 \HCode{</span>}\fi }
594 \ConfigureMark{subsection}
595 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
596 \else
597 \HCode{<span class="titlemark">\add:description{added-description}
598 {\a:speak:subsection}}\@seccntformat{subsection}%
599 \HCode{</span>}\fi }
600 \NewConfigure{speak:section}{1}
601 \Configure{speak:section}{section}
602 \NewConfigure{speak:subsection}{1}
603 \Configure{speak:subsection}{subsection}
604
605
606
607
608
609 \Configure{caption}{\HCode{\if:nopar \else <br />\fi}
610 \:xhtml{\IgnorePar\EndP}\HCode{<div class="caption"><span class="mark">}%
611 \HCode{\add:description{added-description}{\c:speak:caption}}%
612 }
613 {: } {\HCode{}%
614 \HCode{</span>%
615 <span \Hnewline class="content">%
616 \add:description{added-description}{\a:speak:caption}}}
617 {\HCode{\add:description{added-description}{\b:speak:caption}%
618 </span></div>}}
619
620 \ConfigureList{description}%
621 {\EndP\HCode{<div class="description">%
622 <div class="added-list-description">%
623 \add:description{added-description}{\a:speak:description}</div>}%
624 %
625 \HCode{<div \a:LRdir class="dl-description">}%
626 \PushMacro\end:itm
627 \global\let\end:itm=\empty}
628 {\PopMacro\end:itm \global\let\end:itm \end:itm
629 \EndP\HCode{</div></div>}%
630 \HCode{<div class="added-list-description">%
631 \add:description{added-description}{\b:speak:description}</div></div>}%
632 \ShowPar}
633 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
634 class="dt-description">}\HCode{<span class="added-list-description">%
635 \add:description{added-description}{\c:speak:description}%
636 </span>}%
637 \bgroup \bf}
638 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
639
640
641 \Configure{enumiii}
642 {\HCode{<span class="roman-numeral">}%
643 Roman numeral \HCode{}\the\c@enumiii
644 \HCode{}\:gobbleII}
645 {\HCode{</span>}}
646 \long\def\:tempc{(\theenumii)}
647 \ifx \labelenumii\:tempc
648 \def\:tempc{(\HCode{}\theenumii\HCode{})}
649 \HLet\labelenumii\:tempc
650 \fi
651
652
653 \ConfigureEnv{abstract}
654 {\IgnorePar\EndP
655 \HCode{<div class="abstract"\Hnewline>}\par\ShowPar}
656 {\ifvmode \IgnorePar\fi \EndP\HCode{</div>}}
657 {}{}
658
659
660 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
661
662 \endinput\empty\empty\empty\empty\empty\empty
663 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
679 \ConfigureHinput{amsart}
680 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
681 \Configure{caption}{\HCode{\if:nopar \else <br />\fi}
682 \:xhtml{\IgnorePar\EndP}\HCode{<div class="caption"><span class="mark">}%
683 \HCode{\add:description{added-description}{\c:speak:caption}}%
684 }
685 {: } {\HCode{}%
686 \HCode{</span>%
687 <span \Hnewline class="content">%
688 \add:description{added-description}{\a:speak:caption}}}
689 {\HCode{\add:description{added-description}{\b:speak:caption}%
690 </span></div>}}
691
692 \ConfigureList{description}%
693 {\EndP\HCode{<div class="description">%
694 <div class="added-list-description">%
695 \add:description{added-description}{\a:speak:description}</div>}%
696 %
697 \HCode{<div \a:LRdir class="dl-description">}%
698 \PushMacro\end:itm
699 \global\let\end:itm=\empty}
700 {\PopMacro\end:itm \global\let\end:itm \end:itm
701 \EndP\HCode{</div></div>}%
702 \HCode{<div class="added-list-description">%
703 \add:description{added-description}{\b:speak:description}</div></div>}%
704 \ShowPar}
705 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
706 class="dt-description">}\HCode{<span class="added-list-description">%
707 \add:description{added-description}{\c:speak:description}%
708 </span>}%
709 \bgroup \bf}
710 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
711
712 \ifx \deferred@thm@head\:UnDef\else
713 \Configure{proof}
714 {\ifvmode \IgnorePar \fi \EndP
715 \HCode{<div class="newtheorem" title="proof">}\par\ShowPar
716 \HCode{<span class="theorem-head">}\IgnorePar}
717 {\HCode{</span>}\ShowPar}
718 {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}\par}
719
720 \fi
721
722
723 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
724
725 \endinput\empty\empty\empty\empty\empty\empty
726 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
727
728 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
729 \ConfigureHinput{amsbook}
730 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
731 \ConfigureMark{subsection}
732 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
733 \else
734 \HCode{<span class="titlemark">\add:description{added-description}
735 {\a:speak:section}}\@ifundefined{sectionname}{}{%
736 \ignorespaces\sectionname\space}%
737 \@seccntformat{section}%
738 \HCode{</span>}\fi }
739 \NewConfigure{speak:section}{1}
740 \Configure{speak:section}{section}
741 \NewConfigure{speak:subsection}{1}
742 \Configure{speak:subsection}{subsection}
743
744
745
746
747 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
748
749 \endinput\empty\empty\empty\empty\empty\empty
750 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
751
752 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
753 \ConfigureHinput{amsproc}
754 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
755 \Configure{caption}{\HCode{\if:nopar \else <br />\fi}
756 \:xhtml{\IgnorePar\EndP}\HCode{<div class="caption"><span class="mark">}%
757 \HCode{\add:description{added-description}{\c:speak:caption}}%
758 }
759 {: } {\HCode{}%
760 \HCode{</span>%
761 <span \Hnewline class="content">%
762 \add:description{added-description}{\a:speak:caption}}}
763 {\HCode{\add:description{added-description}{\b:speak:caption}%
764 </span></div>}}
765
766 \ConfigureList{description}%
767 {\EndP\HCode{<div class="description">%
768 <div class="added-list-description">%
769 \add:description{added-description}{\a:speak:description}</div>}%
770 %
771 \HCode{<div \a:LRdir class="dl-description">}%
772 \PushMacro\end:itm
773 \global\let\end:itm=\empty}
774 {\PopMacro\end:itm \global\let\end:itm \end:itm
775 \EndP\HCode{</div></div>}%
776 \HCode{<div class="added-list-description">%
777 \add:description{added-description}{\b:speak:description}</div></div>}%
778 \ShowPar}
779 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
780 class="dt-description">}\HCode{<span class="added-list-description">%
781 \add:description{added-description}{\c:speak:description}%
782 </span>}%
783 \bgroup \bf}
784 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
785
786 \ifx \deferred@thm@head\:UnDef\else
787 \Configure{proof}
788 {\ifvmode \IgnorePar \fi \EndP
789 \HCode{<div class="newtheorem" title="proof">}\par\ShowPar
790 \HCode{<span class="theorem-head">}\IgnorePar}
791 {\HCode{</span>}\ShowPar}
792 {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}\par}
793
794 \fi
795
796
797 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
798
799 \endinput\empty\empty\empty\empty\empty\empty
800 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
801
802
803
804 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
805 \ConfigureHinput{amsthm}
806 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
807 \Configure{proof}
808 {\ifvmode \IgnorePar \fi \EndP
809 \HCode{<div class="newtheorem" title="proof">}\par\ShowPar
810 \HCode{<span class="theorem-head">}\IgnorePar}
811 {\HCode{</span>}\ShowPar}
812 {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}\par}
813
814
815 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
816
817 \endinput\empty\empty\empty\empty\empty\empty
818 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
819
820
821
822
823
824
825
826
827
828
829
830
831 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
832 \ConfigureHinput{plain}
833 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
834 \Configure{eqalign}
835 {\:xhtml{\IgnorePar\EndP}\HCode
836 {<div class="eqalign"><table class="eqalign">}}
837 {\HCode{</table></div>}}
838 {\HCode{<tr \Hnewline class="eqalign"
839 valign="middle">}}{\IgnorePar\HCode{</tr>}}
840 {\HCode{<td align="\ifnum \HCol=2
841 left\else right\fi"\Hnewline class="eqalign\HCol"
842 style="white-space:nowrap;">}}
843 {\HCode{</td>}}
844 \def\:eqalign:{\Configure{noalign}
845 {\HCode{<tr><td class="noalign" colspan="2">}}%
846 {\HCode{</td></tr>}}}
847 \Css{td.eqalign3 { text-align:right; margin-left:10em;}}
848 \Css{.eqalign td { white-space: nowrap; }}
849 \Css{div.eqalign {text-align:center;}}
850 \Configure{eqalignno}
851 {\:xhtml{\IgnorePar\EndP}\HCode{<table class="eqalignno">}}
852 {\HCode{</table>}}
853 {\HCode{<tr\Hnewline class="eqalignno">}}{\IgnorePar\HCode{</tr>}}
854 {\HCode{\ifnum \HCol=3 <td\Hnewline width="10"
855 class="eqalignno-sp"></td>\fi
856 <td align="\ifnum \HCol=2 left\else right\fi"\Hnewline
857 class="eqalignno\HCol">}}
858 {\HCode{</td>}}
859 \def\:eqalignno:{\Configure{noalign}
860 {\HCode{<tr><td class="noalign" colspan="2">}}%
861 {\HCode{</td></tr>}}}
862 \Css{td.eqalignno3, td.leqalignno3
863 { text-align:right; margin-left:10em;}}
864 \Css{.leqalignno td, .eqalignno td
865 { white-space: nowrap; }}
866 \Css{.leqalignno td.noalign, .eqalignno td.noalign
867 { width:5\%; white-space: normal; }}
868 \Css{table.leqalignno, table.eqalignno {width:100\%;}}
869 \Configure{leqalignno}
870 {\:xhtml{\IgnorePar\EndP}\HCode{<table class="leqalignno">}}
871 {\HCode{</table>}}
872 {\HCode{<tr \Hnewline
873 class="leqalignno">}}{\IgnorePar\HCode{</tr>}}
874 {\HCode{\ifnum \HCol=3 <td\Hnewline width="30"
875 class="eqalignno-sp"></td>\fi
876 <td align="\ifnum \HCol=2 left\else right\fi"\Hnewline
877 class="leqalignno\HCol">}}
878 {\HCode{</td>}}
879 \def\:leqalignno:{\Configure{noalign}
880 {\HCode{<tr><td class="noalign" colspan="2">}}%
881 {\HCode{</td></tr>}}}
882
883
884 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
885
886 \endinput\empty\empty\empty\empty\empty\empty
887 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
888
889
890
891
892
893
894
895
896
897 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
898 \ConfigureHinput{letter}
899 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
900 \ConfigureList{description}%
901 {\EndP\HCode{<div class="description">%
902 <div class="added-list-description">%
903 \add:description{added-description}{\a:speak:description}</div>}%
904 %
905 \HCode{<div \a:LRdir class="dl-description">}%
906 \PushMacro\end:itm
907 \global\let\end:itm=\empty}
908 {\PopMacro\end:itm \global\let\end:itm \end:itm
909 \EndP\HCode{</div></div>}%
910 \HCode{<div class="added-list-description">%
911 \add:description{added-description}{\b:speak:description}</div></div>}%
912 \ShowPar}
913 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
914 class="dt-description">}\HCode{<span class="added-list-description">%
915 \add:description{added-description}{\c:speak:description}%
916 </span>}%
917 \bgroup \bf}
918 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
919
920
921 \Configure{enumiii}
922 {\HCode{<span class="roman-numeral">}%
923 Roman numeral \HCode{}\the\c@enumiii
924 \HCode{}\:gobbleII}
925 {\HCode{</span>}}
926 \long\def\:tempc{(\theenumii)}
927 \ifx \labelenumii\:tempc
928 \def\:tempc{(\HCode{}\theenumii\HCode{})}
929 \HLet\labelenumii\:tempc
930 \fi
931
932
933 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
934
935 \endinput\empty\empty\empty\empty\empty\empty
936 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
937
938
939
940
941
942
943
944
945
946
947
948
949 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
950 \ConfigureHinput{array}
951 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
952 \ConfigureEnv{tabular}
953 {\Configure{noalign}%
954 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
955 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
956 %
957 \IgnorePar\ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
958 \EndP
959 }
960 {\ShowPar
961 \Configure{noalign}{}{}%
962 %
963 \ShowPar
964 %
965 }{}{}
966 \Configure{tabular}
967 {\ifvmode \IgnorePar\fi \EndP
968 \HCode{<div class="table" title="tabular" >}\HCode{\add:vdescription{begin-end}{begin table}}%
969 }
970 {\HCode{<!--l. \the\inputlineno-->%
971 \add:vdescription{begin-end}{end table}}%
972 \HCode{</div>}}
973 {\HCode{<div class="tr"><!--row \HRow-->}%
974 \HCode{\add:vdescription{begin-end}{<span class="ord-row">\ord:pos{\HRow}</span>%
975 row}}%
976 }
977 {\HCode{</div>}}
978 {\HCode{<div class="td"><!--entry \HRow-\HCol\ifnum
979 \HMultispan>1 \, span \HMultispan\fi-->}%
980 \HCode{%
981 \add:vdescription{added-description}{%
982 \ifnum \HMultispan>1 \ord:pos{\HCol}%
983 cell, spans
984 \HMultispan \space columns
985 \else
986 \ifnum \HCol>1 \ord:pos{\HCol}%
987 cell \fi
988 \fi
989 }}%
990 \HCode{<div>}\SaveEndP
991 \par \ShowPar}
992 {\IgnorePar \EndP \ifvmode \IgnorePar \fi \EndP
993 \HCode{</div>}%
994 \HCode{</div>\Hnewline}\RecallEndP }
995
996
997 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
998
999 \endinput\empty\empty\empty\empty\empty\empty
1000 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1076 \ConfigureHinput{frenchb}
1077 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1078 \Configure{frenchb-nbsp}
1079 {\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
1080 \setbox\tmp:bx=\hbox\bgroup}
1081 {\egroup}
1082
1083 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1084
1085 \endinput\empty\empty\empty\empty\empty\empty
1086 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1127 \ConfigureHinput{aa}
1128 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1129 \ConfigureMark{section}
1130 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1131 \else
1132 \HCode{<span class="titlemark">\add:description{added-description}
1133 {\a:speak:section}}\@seccntformat{section}%
1134 \HCode{</span>}\fi }
1135 \ConfigureMark{subsection}
1136 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1137 \else
1138 \HCode{<span class="titlemark">\add:description{added-description}
1139 {\a:speak:subsection}}\@seccntformat{subsection}%
1140 \HCode{</span>}\fi }
1141 \NewConfigure{speak:section}{1}
1142 \Configure{speak:section}{section}
1143 \NewConfigure{speak:subsection}{1}
1144 \Configure{speak:subsection}{subsection}
1145
1146
1147
1148
1149
1150 \Configure{caption}{\HCode{\if:nopar \else <br />\fi}
1151 \:xhtml{\IgnorePar\EndP}\HCode{<div class="caption"><span class="mark">}%
1152 \HCode{\add:description{added-description}{\c:speak:caption}}%
1153 }
1154 {: } {\HCode{}%
1155 \HCode{</span>%
1156 <span \Hnewline class="content">%
1157 \add:description{added-description}{\a:speak:caption}}}
1158 {\HCode{\add:description{added-description}{\b:speak:caption}%
1159 </span></div>}}
1160
1161 \CssSpeech{
1162 .sectionHead {pitch: 4;
1163 pitch-range: 7:
1164 richness: 9;
1165 speed: slow;
1166 volume: 7
1167 ;}}
1168 \CssSpeech{ .subsectionHead {pitch: 5;
1169 pitch-range: 7;
1170 richness: 9;
1171 speed: slow;
1172 volume: 5
1173 ;}}
1174
1175
1176 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1177
1178 \endinput\empty\empty\empty\empty\empty\empty
1179 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1180
1181
1182
1183
1184
1185
1186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1187 \ConfigureHinput{scrbook}
1188 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1189 \ConfigureList{description}%
1190 {\EndP\HCode{<div class="description">%
1191 <div class="added-list-description">%
1192 \add:description{added-description}{\a:speak:description}</div>}%
1193 %
1194 \HCode{<div \a:LRdir class="dl-description">}%
1195 \PushMacro\end:itm
1196 \global\let\end:itm=\empty}
1197 {\PopMacro\end:itm \global\let\end:itm \end:itm
1198 \EndP\HCode{</div></div>}%
1199 \HCode{<div class="added-list-description">%
1200 \add:description{added-description}{\b:speak:description}</div></div>}%
1201 \ShowPar}
1202 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
1203 class="dt-description">}\HCode{<span class="added-list-description">%
1204 \add:description{added-description}{\c:speak:description}%
1205 </span>}%
1206 \bgroup \bf}
1207 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
1208
1209
1210 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1211
1212 \endinput\empty\empty\empty\empty\empty\empty
1213 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1214
1215
1216
1217 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1218 \ConfigureHinput{scrreprt}
1219 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1220 \ConfigureList{description}%
1221 {\EndP\HCode{<div class="description">%
1222 <div class="added-list-description">%
1223 \add:description{added-description}{\a:speak:description}</div>}%
1224 %
1225 \HCode{<div \a:LRdir class="dl-description">}%
1226 \PushMacro\end:itm
1227 \global\let\end:itm=\empty}
1228 {\PopMacro\end:itm \global\let\end:itm \end:itm
1229 \EndP\HCode{</div></div>}%
1230 \HCode{<div class="added-list-description">%
1231 \add:description{added-description}{\b:speak:description}</div></div>}%
1232 \ShowPar}
1233 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
1234 class="dt-description">}\HCode{<span class="added-list-description">%
1235 \add:description{added-description}{\c:speak:description}%
1236 </span>}%
1237 \bgroup \bf}
1238 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
1239
1240
1241 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1242
1243 \endinput\empty\empty\empty\empty\empty\empty
1244 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1245
1246
1247
1248
1249
1250 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1251 \ConfigureHinput{JHEP}
1252 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1253
1254 \ConfigureMark{section}
1255 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1256 \else
1257 \HCode{<span class="titlemark">\add:description{added-description}
1258 {\a:speak:section}}\@seccntformat{section}%
1259 \HCode{</span>}\fi }
1260 \ConfigureMark{subsection}
1261 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1262 \else
1263 \HCode{<span class="titlemark">\add:description{added-description}
1264 {\a:speak:subsection}}\@seccntformat{subsection}%
1265 \HCode{</span>}\fi }
1266 \NewConfigure{speak:section}{1}
1267 \Configure{speak:section}{section}
1268 \NewConfigure{speak:subsection}{1}
1269 \Configure{speak:subsection}{subsection}
1270
1271
1272
1273
1274 \CssSpeech{
1275 .sectionHead {pitch: 4;
1276 pitch-range: 7:
1277 richness: 9;
1278 speed: slow;
1279 volume: 7
1280 ;}}
1281 \CssSpeech{ .subsectionHead {pitch: 5;
1282 pitch-range: 7;
1283 richness: 9;
1284 speed: slow;
1285 volume: 5
1286 ;}}
1287
1288
1289 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1290
1291 \endinput\empty\empty\empty\empty\empty\empty
1292 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1338 \ConfigureHinput{slides}
1339 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1340 \ConfigureList{description}%
1341 {\EndP\HCode{<div class="description">%
1342 <div class="added-list-description">%
1343 \add:description{added-description}{\a:speak:description}</div>}%
1344 %
1345 \HCode{<div \a:LRdir class="dl-description">}%
1346 \PushMacro\end:itm
1347 \global\let\end:itm=\empty}
1348 {\PopMacro\end:itm \global\let\end:itm \end:itm
1349 \EndP\HCode{</div></div>}%
1350 \HCode{<div class="added-list-description">%
1351 \add:description{added-description}{\b:speak:description}</div></div>}%
1352 \ShowPar}
1353 {\end:itm \global\def\end:itm{\EndP\Tg</div>}\HCode{<div
1354 class="dt-description">}\HCode{<span class="added-list-description">%
1355 \add:description{added-description}{\c:speak:description}%
1356 </span>}%
1357 \bgroup \bf}
1358 {\egroup\EndP\HCode{</div><div\Hnewline class="dd-description">}}
1359
1360 \Configure{enumiii}
1361 {\HCode{<span class="roman-numeral">}%
1362 Roman numeral \HCode{}\the\c@enumiii
1363 \HCode{}\:gobbleII}
1364 {\HCode{</span>}}
1365 \long\def\:tempc{(\theenumii)}
1366 \ifx \labelenumii\:tempc
1367 \def\:tempc{(\HCode{}\theenumii\HCode{})}
1368 \HLet\labelenumii\:tempc
1369 \fi
1370
1371
1372 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1373
1374 \endinput\empty\empty\empty\empty\empty\empty
1375 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1472 \ConfigureHinput{acm-proc-article-sp}
1473 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1474
1475 \ConfigureMark{section}
1476 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1477 \else
1478 \HCode{<span class="titlemark">\add:description{added-description}
1479 {\a:speak:section}}\@seccntformat{section}%
1480 \HCode{</span>}\fi }
1481 \ConfigureMark{subsection}
1482 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
1483 \else
1484 \HCode{<span class="titlemark">\add:description{added-description}
1485 {\a:speak:subsection}}\@seccntformat{subsection}%
1486 \HCode{</span>}\fi }
1487 \NewConfigure{speak:section}{1}
1488 \Configure{speak:section}{section}
1489 \NewConfigure{speak:subsection}{1}
1490 \Configure{speak:subsection}{subsection}
1491
1492
1493
1494
1495 \CssSpeech{
1496 .sectionHead {pitch: 4;
1497 pitch-range: 7:
1498 richness: 9;
1499 speed: slow;
1500 volume: 7
1501 ;}}
1502 \CssSpeech{ .subsectionHead {pitch: 5;
1503 pitch-range: 7;
1504 richness: 9;
1505 speed: slow;
1506 volume: 5
1507 ;}}
1508
1509 \Configure{proof}
1510 {\ifvmode\IgnorePar\fi\EndP
1511 \HCode{<div class="newtheorem" title="proof">}\par\noindent
1512 \HCode{<span class="theorem-head">}}
1513 {\HCode{</span>}}
1514 {\EndP\IgnorePar\HCode{</div>}\ShowPar\par}
1515
1516 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1517
1518 \endinput\empty\empty\empty\empty\empty\empty
1519 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593 \endinput
1594