Debian Codegraph @

texmf-dist/source/generic/tex4ht/tex4ht-docbook.tex

raw
1 % $Id: tex4ht-docbook.tex 1450 2024-01-22 21:33:00Z karl $
2 % compile 3 times: latex tex4ht-docbook
3 % or xhlatex tex4ht-docbook "html,3,sections+"
4 %
5 % Copyright 2009-2024 TeX Users Group
6 % Copyright 2000-2009 Eitan M. Gurari
7 % Released under LPPL 1.3c+.
8 % See tex4ht-cpright.tex for license text.
9
10 \ifx \HTML\UnDef
11 \def\HTML{docbook,docbook-math,docbook-mml}
12 \def\CONFIG{\jobname}
13 \def\MAKETITLE{\title{Source for DocBook}%
14 \author{Eitan M. Gurari}}
15 \def\PREAMBLE{\usepackage{url}}
16 \def\next{\input mktex4ht.4ht \endinput}
17 \expandafter\next
18 \fi
19
20 \input{common}
21 \input{tex4ht-cpright}
22
23 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24 \chapter{File Organization}
25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26
27
28
29 \<docbook\><<<
30 % docbook.4ht (|version), generated from |jobname.tex
31 % Copyright 2009-2024 TeX Users Group
32 % Copyright |CopyYear.2000. Eitan M. Gurari
33 |<TeX4ht copywrite|>
34 >>>
35
36
37 \<docbook-math\><<<
38 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 % docbook-math.4ht (|version), generated from |jobname.tex
40 % Copyright (C) 2009-2010 TeX Users Group
41 % Copyright (C) |CopyYear.2000. Eitan M. Gurari
42 |<TeX4ht copywrite|>
43 >>>
44
45
46 \<docbook-mml\><<<
47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48 % docbook-mml.4ht (|version), generated from |jobname.tex
49 % Copyright (C) 2009-2010 TeX Users Group
50 % Copyright (C) |CopyYear.2000. Eitan M. Gurari
51 |<TeX4ht copywrite|>
52 >>>
53
54
55 \<configure docbook tex4ht\><<<
56 \if:latex |<Hinclude latex|>
57 \else |<Hinclude plain|> \fi
58 >>>
59
60 \<configure docbook plain\><<<
61 |<Hinclude plain lib|>
62 |<Hinclude plain + latex lib|>
63 >>>
64
65 \<configure docbook latex\><<<
66 |<Hinclude latex lib|>
67 |<Hinclude plain + latex lib|>
68 >>>
69
70 \<configure docbook Preamble\><<<
71 \Configure{ext}{xml}
72 \edef\Preamble{\Preamble,refcaption}
73 >>>
74
75
76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
77 \chapter{Origin of Hooks}
78 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79
80 %%%%%%%%%%%%%%%%%%
81 \section{tex4ht}
82 %%%%%%%%%%%%%%%%%%
83
84 \<configure docbook tex4ht\><<<
85 |<tex4ht wrapper|>
86 |<tex4ht paragraphs|>
87 |<tex4ht cross-linking|>
88 >>>
89
90
91 %%%%%%%%%%%%%%%
92 \section{latex}
93 %%%%%%%%%%%%%%%
94
95 \<configure docbook latex\><<<
96 |<latex ltsec|>
97 |<latex environments|>
98 |<latex lists|>
99 |<latex tables|>
100 |<latex etc|>
101 |<obey lines|>
102 |<latex, plain|>
103 >>>
104
105
106 \<configure docbook plain\><<<
107 |<latex, plain|>
108 >>>
109
110
111
112
113 \<latex etc\><<<
114 \Configure{ref}{\refLink}{\EndLink}{}
115 \def\refLink#1#2#3\EndLink{
116 \ifvmode
117 \HCode{<note role="ref"><para>}
118 \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
119 #3\HCode{</para></note>}
120 \else
121 \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi#3\EndLink
122 \fi}
123 >>>
124
125
126 We reuse old accents code from unicode.4ht, because
127 we got errors for accented characters without explicit
128 configuration for accents.
129
130 \<latex etc\><<<
131 \Configure{accents}
132 {\ifmmode \expandafter\mathord\fi
133 {\leavevmode
134 \if !#1!\ht:special{t4ht@+&\#x#2;}%
135 \else \expandafter \ifx\csname U#2#1\endcsname\relax
136 \ht:special{t4ht@+&{35}x#2;}%
137 \else
138 \ht:special{t4ht@+&{35}x\csname U#2#1\endcsname;}%
139 \fi \fi x%
140 \ht:special{t4ht@[}x\ht:special{t4ht@]}}}
141 {\ifmmode \expandafter\mathord\fi
142 {#3}}
143 >>>
144
145
146 \<configure docbook-mml latex\><<<
147 \def\refLink#1#2#3\EndLink{%
148 \ifvmode
149 \ifmathml\else
150 \HCode{<note role="ref"><para role="ref">}
151 \fi
152 \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
153 \ifmathml\else #3\HCode{</para></note>}\par\fi
154 \else
155 \Link{#1}{#2}\expandafter\ifx \csname RefArg\endcsname\relax\else \Tg<!--ref: \RefArg-->\fi\EndLink
156 \fi
157 }
158 >>>
159
160
161
162
163
164 \<latex etc\><<<
165 \Configure{newline}{\HCode{<!--br\Hnewline/-->}}
166 >>>
167
168 \<configure docbook-mml tex4ht\><<<
169 \LinkCommand\mtxt:link{mtext,xreflabel,id, class="label" ,,\empty}
170 \LinkCommand\msp:link{mstyle,xreflabel,id, class="label" ,,\empty}
171 >>>
172
173
174
175 \<configure docbook-mml latex\><<<
176 \Configure{newline}
177 {\ifmtext \HCode{</mtext><mtext\Hnewline class="newline">}%
178 \else \HCode{<!--br\Hnewline role="newline" /-->}\fi}
179 >>>
180
181 \<configure docbook-mml latex\><<<
182 \Configure{equation}
183 {\IgnorePar\EndP\HCode{<para role="equation">}}
184 {\HCode{</para><para role="equation-label">}}
185 {\IgnorePar\HCode{</para>}\ShowPar\par}
186 >>>
187
188
189
190
191
192
193
194 \<latex etc\><<<
195 \Configure{newtheorem}
196 {\IgnorePar\EndP\HCode{<blockquote role="newtheorem"><title>}}
197 {\HCode{</title>}\ShowPar\par}
198 {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
199 >>>
200
201 \verb+<section>+ and \verb+<blockquote>+ allow recursion,
202 but the first can't be followed by \verb+<para>+.
203
204
205 \<configure docbook plain\><<<
206 |<plain prologue|>
207 >>>
208
209 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
210 \section{Class Roots}
211 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
212
213 \<configure docbook article\><<<
214 |<article, report, book|>
215 |<article prologue|>
216 |<article maketitle|>
217 |<article sections|>
218 |<article tocs|>
219 |<article,report,book lists|>
220 |<article,report,book figures|>
221 |<article,report|>
222 |<article,report,book indexes|>
223 >>>
224
225 % |<amsart + article sec|>
226
227
228 \<configure docbook report\><<<
229 |<article, report, book|>
230 |<report, book|>
231 |<report prologue|>
232 |<report maketitle|>
233 |<report sections|>
234 |<report,book tocs|>
235 |<article,report,book lists|>
236 |<article,report,book figures|>
237 |<article,report|>
238 |<article,report,book indexes|>
239 >>>
240
241
242
243 \<configure docbook book\><<<
244 |<article, report, book|>
245 |<report, book|>
246 |<book prologue|>
247 |<book maketitle|>
248 |<book sections|>
249 |<report,book tocs|>
250 |<article,report,book lists|>
251 |<article,report,book figures|>
252 |<article,report,book indexes|>
253 >>>
254
255
256
257 \<configure docbook scrartcl\><<<
258 |<article, report, book|>
259 |<article prologue|>
260 |<article maketitle|>
261 |<article sections|>
262 |<article tocs|>
263 |<article,report,book lists|>
264 |<article,report,book figures|>
265 |<article,report|>
266 |<article,report,book indexes|>
267 >>>
268
269 \<configure docbook scrbook\><<<
270 |<article, report, book|>
271 |<report, book|>
272 |<book prologue|>
273 |<book maketitle|>
274 |<scr title page|>
275 |<book sections|>
276 |<scrbook sections|>
277 |<report,book tocs|>
278 |<scrbook tocs|>
279 |<article,report,book lists|>
280 |<article,report,book figures|>
281 |<article,report,book indexes|>
282 >>>
283
284 \<configure docbook scrreprt\><<<
285 |<article, report, book|>
286 |<report, book|>
287 |<report prologue|>
288 |<report maketitle|>
289 |<report sections|>
290 |<report,book tocs|>
291 |<article,report,book lists|>
292 |<article,report,book figures|>
293 |<article,report|>
294 |<article,report,book indexes|>
295 >>>
296
297 \<configure docbook memoir\><<<
298 |<article, report, book|>
299 |<report, book|>
300 |<book prologue|>
301 |<book maketitle|>
302 |<book sections|>
303 |<report,book tocs|>
304 |<article,report,book lists|>
305 |<article,report,book figures|>
306 |<article,report,book indexes|>
307 >>>
308
309 \<article, report, book\><<<
310 |<config lists of figures and tables|>
311 >>>
312
313 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
314 \chapter{Front and Back Matter}
315 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
316
317
318
319 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
320 \section{Front and Back Matter}
321 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
322
323
324
325 \begin{verbatim}
326 <TEI.2>
327 <teiHeader> [ TEI Header information ] </teiHeader>
328 <text>
329 <front> [ front matter ... ] </front>
330 <body> [ body of text ... ] </body>
331 <back> [ back matter ... ] </back>
332 </text>
333 </TEI.2>
334 \end{verbatim}
335
336 The front and back elements are optional.
337
338 \<tex4ht wrapper\><<<
339 \Configure{HTML}{}{}
340 \Configure{HEAD}{\bgroup \Configure{TITLE}{}{}}{\egroup}
341 \Configure{BODY}{}{}
342 \Configure{TITLE+} {}
343 \ifx \a:TITLE\:UnDef
344 \Configure{TITLE}{}{}
345 \fi
346 >>>
347
348 There used to be this configuration, but the resulting title element was empty.
349 Publication title should be inside info element anyway. This element is inserted by maketitle.
350 % \Configure{TITLE}{\Protect\IgnorePar
351 % \HCode{<title>}}{\HCode{</title>\Hnewline}}
352
353
354
355
356
357
358
359
360 \<article prologue\><<<
361 \def\:gobbleM#1->{}
362 \Configure{BODY}
363 {|<tex4ht sig|>%
364 \HCode{<article |<xml name spaces|> >}%
365 \a:TITLE\bgroup \:TITLE: \c:TITLE \egroup \b:TITLE
366 \par\ShowPar
367 }
368 {\IgnorePar\EndP\HCode{</article>}}
369 |<tex4ht log sig|>
370 >>>
371
372
373 \<plain prologue\><<<
374 \def\:gobbleM#1->{}
375 \Configure{BODY}
376 {|<tex4ht sig|>%
377 \HCode{<article |<xml name spaces|> >}%
378 \par\ShowPar}
379 {\IgnorePar\EndP\HCode{</article>}}
380 |<tex4ht log sig|>
381 >>>
382
383
384
385 \<report prologue\><<<
386 \def\:gobbleM#1->{}
387 \Configure{BODY}
388 {|<tex4ht sig|>%
389 \HCode{<article role="report" |<xml name spaces|> >}%
390 \a:TITLE\bgroup \:TITLE: \c:TITLE \egroup \b:TITLE
391 \par\ShowPar}
392 {\IgnorePar\EndP\HCode{</article>}}
393 |<tex4ht log sig|>
394 >>>
395
396
397
398 \<book prologue\><<<
399 \def\:gobbleM#1->{}
400 \Configure{BODY}
401 {|<tex4ht sig|>%
402 \HCode{<article role="book" |<xml name spaces|> >}%
403 \a:TITLE\bgroup \:TITLE: \c:TITLE \egroup \b:TITLE
404 \par\ShowPar
405 }
406 {\IgnorePar\EndP\HCode{</article>}}
407 |<tex4ht log sig|>
408 >>>
409
410
411
412 \<tex4ht sig\><<<
413 \HCode{\Hnewline<!--translated from \jobname.tex
414 \Hnewline by TeX4ht (https://tug.org/tex4ht/)
415 \expandafter\:gobbleM\meaning\Preamble\space-->\Hnewline}
416 \:CheckOption{-xtpipes} \if:Option
417 \Log:Note{Use the `-xtpipes' command line option to
418 avoid xtpipes post processing}
419 \else
420 \HCode{<?xtpipes file="docbook.4xt" ?>\Hnewline}
421 \fi
422 >>>
423
424 \<tex4ht log sig\><<<
425 \immediate\write-1{TeX4ht package options:
426 \expandafter\:gobbleM\meaning\Preamble}
427 >>>
428
429
430
431
432
433
434
435 %%%%%%%%%%%%%%%%%%
436 \subsection{DTD's}
437 %%%%%%%%%%%%%%%%%%
438
439 \<xml name spaces\><<<
440 xmlns="http://docbook.org/ns/docbook" \Hnewline
441 xmlns:xlink="http://www.w3.org/1999/xlink" \Hnewline
442 version="5.0" \Hnewline
443 >>>
444
445 \<\><<<
446 xmlns="http://relaxng.org/ns/structure/1.0" \Hnewline
447 xmlns:svg="http://www.w3.org/2000/svg" \Hnewline
448 xmlns:s="http://www.ascc.net/xml/schematron" \Hnewline
449 xmlns:rng="http://relaxng.org/ns/structure/1.0" \Hnewline
450 xmlns:mml="http://www.w3.org/1998/Math/MathML" \Hnewline
451 xmlns:html="http://www.w3.org/1999/xhtml" \Hnewline
452 xmlns:db="http://docbook.org/ns/docbook" \Hnewline
453 xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" \Hnewline
454 xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"\Hnewline
455 xmlns:xsd="http://www.w3.org/2001/XMLSchema" \Hnewline
456 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \Hnewline
457 >>>
458
459 % datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" \Hnewline
460 % ns="http://docbook.org/ns/docbook" \Hnewline
461
462
463
464 \<article prologue\><<<
465 \Configure{VERSION}
466 {\HCode{<?xml version="1.0"?>\Hnewline}}
467 \Configure{DOCTYPE}
468 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
469 >>>
470
471 \<doctype 5.0\><<<
472 PUBLIC "-//OASIS//DTD DocBook V5.0//|<dtd lang|>"\Hnewline
473 "http://www.oasis-open.org/docbook/xml/5.0/docbook.dtd"
474 >>>
475
476
477
478 % {\HCode{<!--!DOCTYPE article [|<docbook dtd|>]\Hnewline
479 % DocBook V5.0CR5 -->\Hnewline }}
480
481
482 \<plain prologue\><<<
483 \Configure{VERSION}
484 {\HCode{<?xml version="1.0"?>\Hnewline}}
485 \Configure{DOCTYPE}
486 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
487 >>>
488
489
490
491
492 \<report prologue\><<<
493 \Configure{VERSION}
494 {\HCode{<?xml version="1.0"?>\Hnewline}}
495 \Configure{DOCTYPE}
496 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
497 >>>
498
499
500
501
502 \<book prologue\><<<
503 \Configure{VERSION}
504 {\HCode{<?xml version="1.0"?>\Hnewline}}
505 \Configure{DOCTYPE}
506 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
507 >>>
508
509
510 \<docbook dtd\><<<
511 <!ENTITY \% docbook.dtd PUBLIC\Hnewline
512 "-//OASIS//DTD DocBook XML V4.2CR1//|<dtd lang|>"\Hnewline
513 "http://www.oasis-open.org/docbook/xml/4.2CR1/docbookx.dtd">
514 \Hnewline \%docbook.dtd; \Hnewline
515 >>>
516
517
518 \<dtd lang\><<<
519 \expandafter
520 \ifx \csname a:dtd-lang\endcsname\relax EN\else
521 \csname a:dtd-lang\endcsname
522 \fi
523 >>>
524
525
526
527 \<configure docbook-mml article\><<<
528 \Configure{VERSION}
529 {\HCode{<?xml version="1.0"?>\Hnewline}}
530 \Configure{DOCTYPE}
531 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
532 >>>
533
534
535 \<configure docbook-mml report\><<<
536 \Configure{VERSION}
537 {\HCode{<?xml version="1.0"?>\Hnewline}}
538 \Configure{DOCTYPE}
539 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
540 >>>
541
542
543 \<configure docbook-mml book\><<<
544 \Configure{VERSION}
545 {\HCode{<?xml version="1.0"?>\Hnewline}}
546 \Configure{DOCTYPE}
547 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
548 >>>
549
550 % {\HCode{<!--!DOCTYPE article [|<docbook-mml dtd tex4ht|>]\Hnewline
551 % DocBook V5.0CR5 -->\Hnewline }}
552
553 \<configure docbook-mml scrbook\><<<
554 \Configure{VERSION}
555 {\HCode{<?xml version="1.0"?>\Hnewline}}
556 \Configure{DOCTYPE}
557 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
558 >>>
559
560
561
562
563
564 \<configure docbook-mml plain\><<<
565 \Configure{VERSION}
566 {\HCode{<?xml version="1.0"?>\Hnewline}}
567 \Configure{DOCTYPE}
568 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
569 >>>
570
571
572
573 \<docbook-mml dtd tex4ht\><<<
574 |<docbook-mml dtd|>%
575 |<docbook dtd|>%
576 |<mathml dtd|>%
577 >>>
578
579
580 \<docbook-mml dtd\><<<
581 <!ELEMENT equation (math)>\Hnewline
582 <!ELEMENT inlineequation (math)>\Hnewline
583 |<duplicated mathml entities|>%
584 >>>
585
586 \<duplicated mathml entities\><<<
587 <!ENTITY \% ent-isopub "">
588 <!ENTITY \% ent-isonum "">\Hnewline
589 <!ENTITY \% ent-isolat2 "">
590 <!ENTITY \% ent-isolat1 "">\Hnewline
591 <!ENTITY \% ent-isodia "">
592 <!ENTITY \% ent-isocyr2 "">\Hnewline
593 <!ENTITY \% ent-isocyr1 "">
594 <!ENTITY \% ent-isobox "">\Hnewline
595 <!ENTITY \% ent-isotech "">
596 <!ENTITY \% ent-isogrk3 "">\Hnewline
597 <!ENTITY \% ent-isoamsr "">
598 <!ENTITY \% ent-isoamso "">\Hnewline
599 <!ENTITY \% ent-isoamsn "">
600 <!ENTITY \% ent-isoamsc "">\Hnewline
601 <!ENTITY \% ent-isoamsb "">
602 <!ENTITY \% ent-isoamsa "">\Hnewline
603 >>>
604
605
606
607 \<mathml dtd\><<<
608 <!ENTITY \% mathml.dtd PUBLIC
609 "-//W3C//DTD MathML 2.0//|<dtd lang|>"\Hnewline\space\space
610 "mathml.dtd">
611 \Hnewline \%mathml.dtd;\Hnewline
612 >>>
613
614
615
616
617
618
619
620 %%%%%%%%%%%%%%%%%%%%
621 \chapter{LaTeX}
622 %%%%%%%%%%%%%%%%%%%%
623
624
625
626
627
628 %%%%%%%%%%%%%%%%%%
629 \section{Title Page}
630 %%%%%%%%%%%%%%%%%%
631
632 \<article maketitle\><<<
633 \Configure{maketitle}
634 {\HCode{<info role="maketitle">}}
635 {\HCode{</info>}\par\ShowPar}
636 {\HCode{<title>}}{\HCode{</title>}}
637 \Configure{thanks author date and} {}{}
638 {\HCode{<author><personname><othername>}}
639 {\HCode{</othername></personname></author>}}
640 {\HCode{<date>}}
641 {\HCode{</date>}}
642 {}{}
643 >>>
644
645 \<report maketitle\><<<
646 \Configure{maketitle}
647 {\HCode{<info role="maketitle">}}
648 {\HCode{</info>}\par\ShowPar}
649 {\HCode{<title>}}{\HCode{</title>}}
650 \Configure{thanks author date and} {}{}
651 {\HCode{<author><personname><othername>}}
652 {\HCode{</othername></personname></author>}}
653 {\HCode{<date>}}
654 {\HCode{</date>}}
655 {}{}
656 >>>
657
658 \<book maketitle\><<<
659 \Configure{maketitle}
660 {\HCode{<info role="maketitle">}}
661 {\HCode{</info>}\par\ShowPar}
662 {\HCode{<title>}}{\HCode{</title>}}
663 \Configure{thanks author date and} {}{}
664 {\HCode{<author><personname><othername>}}
665 {\HCode{</othername></personname></author>}}
666 {\HCode{<date>}}
667 {\HCode{</date>}}
668 {}{}
669 >>>
670
671
672 \<article maketitle\><<<
673 \ConfigureEnv{abstract}
674 {\IgnorePar\EndP\HCode{<abstract>}}
675 {\IgnorePar\EndP\HCode{</abstract>}}
676 {\HCode{<title>}}
677 {\HCode{</title>}}
678 >>>
679
680
681
682 \<report maketitle\><<<
683 \ConfigureEnv{abstract}
684 {\IgnorePar\EndP\HCode{<abstract>}}
685 {\IgnorePar\EndP\HCode{</abstract>}}
686 {\HCode{<note role="title"><para>}}
687 {\HCode{</para></note>}}
688 >>>
689
690
691
692
693
694 \<scr title page\><<<
695 \ConfigureEnv{titlepage}
696 {\bgroup
697 \ifvmode \IgnorePar\fi \EndP
698 % \HCode{<para class="titlepage">}%
699 \Configure{tabular}{}{}{}{}{}{}%
700 \ConfigureEnv{tabular}{}{}{}{}{}{}%
701 \ConfigureEnv{center}{}{}{}{}}
702 {\ifvmode \IgnorePar\fi \EndP
703 % \HCode{</para>}%
704 \egroup}
705 {} {}
706 \Configure{dedication}
707 {\ifvmode \IgnorePar\fi\EndP
708 \HCode{<para role="dedication" >}}
709 {\ifvmode \IgnorePar\fi\EndP \HCode{</para>}}
710 >>>
711
712
713
714
715 %%%%%%%%%%%%%%%%%%
716 \section{Sections}
717 %%%%%%%%%%%%%%%%%%
718
719
720
721 %%%%%%%%%%%%%
722 \subsection{Special Cases for Sectioning Titles}
723 %%%%%%%%%%%%%
724
725
726
727
728 \<latex ltsec\><<<
729 \Configure{InsertTitle}{\let\label=\lb:l
730 \let\ref=\o:ref \Configure{ref}{}{}{}}
731 \Configure{AfterTitle}{\let\index=\:index
732 \let\ref=\:ref \let\label=\lb:l }
733 \Configure{NoSection}
734 {\let\sv:index=\index \let\sv:label=\label
735 \let\sv:newline=\newline \def\newline{ }%
736 \let\sv:setfontsize=\@setfontsize \let\@setfontsize=\:gobbleIII
737 \let\index=\@gobble \let\label=\@gobble
738 |<nolink ref|>%
739 }
740 {\let\index=\sv:index \let\label=\sv:label
741 |<restore ref|>%
742 \let\newline=\sv:newline \let\@setfontsize=\sv:setfontsize
743 }
744 >>>
745
746
747
748 \<nolink ref\><<<
749 \let\sva:rEfLiNK=\a:rEfLiNK
750 \let\svb:rEfLiNK=\b:rEfLiNK
751 \let\svc:rEfLiNK=\c:rEfLiNK
752 \expandafter\let\expandafter\svC:rEfLiNK\c:rEfLiNK
753 \Configure{ref}{}{}{}% \let\sv:ref=\ref \let\ref=\@gobble
754 >>>
755
756 \<restore ref\><<<
757 \let\a:rEfLiNK=\sva:rEfLiNK
758 \let\b:rEfLiNK=\svb:rEfLiNK
759 \let\c:rEfLiNK=\svc:rEfLiNK
760 \expandafter\let\c:rEfLiNK\svC:rEfLiNK % \let\ref\sv:ref
761 >>>
762
763
764 %%%%%%%%%%%%%%%%%%%%%%%%%
765 \subsection{Titles and Bodies}
766 %%%%%%%%%%%%%%%%%%%%%%%%%
767
768
769 \<book sections\><<<
770 |<article sections|>
771 \Configure{chapter}
772 {\OpenDiv{chapter}} {\CloseDiv{chapter}}
773 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
774 \Configure{likechapter}
775 {\OpenDiv{likechapter}} {\CloseDiv{likechapter}}
776 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
777 >>>
778
779
780 \<report sections\><<<
781 |<book sections|>
782 >>>
783
784
785
786 \<article sections\><<<
787 |<amsart + article sec|>
788 >>>
789
790
791
792 \<TitleMark\><<<
793 \TitleMark
794 >>>
795
796
797
798 \<sectioning utilities\><<<
799 \def\OpenDiv#1{%
800 \IgnorePar\EndP \HCode{<!--l.
801 \the\inputlineno--><section\Hnewline role="#1">}%
802 }
803 \def\CloseDiv#1{%
804 \IgnorePar\EndP\HCode{</section><!--end #1-->}%
805 }
806 \def\AppOpenDiv#1{%
807 \IgnorePar\EndP \HCode{<!--l.
808 \the\inputlineno--><appendix\Hnewline role="#1">}%
809 }
810 \def\AppCloseDiv#1{%
811 \IgnorePar\EndP\HCode{</appendix><!--end #1-->}%
812 }
813 >>>
814
815
816 % \HAssign\DivLevel=0
817 % \def\OpenDiv#1{%
818 % \IgnorePar\EndP \gHAdvance\DivLevel by 1
819 % \HCode{<sect\DivLevel\Hnewline role="#1">}%
820 % }
821 % \def\CloseDiv#1{%
822 % \IgnorePar\EndP\HCode{</sect\DivLevel><!--end #1-->}%
823 % \gHAdvance\DivLevel by -1
824 % }
825
826
827 % \PopStack\text:stack\:temp \def\:tempa{body}%
828 % \ifx \:temp\:tempa \else \HCode{</\:temp><body>}\fi
829 % \PushStack\text:stack{body}
830
831
832
833 \<article sections\><<<
834 \Configure{likepart}
835 {\OpenDiv{likepart}} {\CloseDiv{likepart}}
836 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
837 \Configure{likesection}
838 {\OpenDiv{likesection}} {\CloseDiv{likesection}}
839 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
840 \Configure{likesubsection}
841 {\OpenDiv{likesubsection}} {\CloseDiv{likesubsection}}
842 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
843 \Configure{likesubsubsection}
844 {\OpenDiv{likesubsubsection}} {\CloseDiv{likesubsubsection}}
845 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
846 \Configure{likeparagraph}
847 {\OpenDiv{likeparagraph}} {\CloseDiv{likeparagraph}}
848 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
849 \Configure{likesubparagraph}
850 {\OpenDiv{likesubparagraph}} {\CloseDiv{likesubparagraph}}
851 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
852 >>>
853
854
855
856
857 \<scrbook sections\><<<
858 \Configure{addchap}
859 {\OpenDiv{addchap}} {\CloseDiv{addchap}}
860 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
861 >>>
862
863 %%%%%%%%%%%%%%%%%%%%%%%%%
864 \subsection{End Points}
865 %%%%%%%%%%%%%%%%%%%%%%%%%
866
867 \<article sections\><<<
868 \Configure{endlikesection}
869 {section,chapter,likechapter,appendix,part,likepart}
870 \Configure{endlikesubsection}
871 {subsection,section,likesection,chapter,%
872 likechapter,appendix,part,likpart}
873 \Configure{endlikesubsubsection}
874 {subsubsection,subsection,likesubsection,section,%
875 likesection,chapter,likechapter,appendix,part,likpart}
876 \Configure{endlikeparagraph}
877 {paragraph,subsubsection,likesubsubsection,subsection,%
878 likesubsection,section,%
879 likesection,chapter,likechapter,appendix,part,likpart}
880 \Configure{endlikesubparagraph}
881 {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
882 subsection,likesubsection,section,%
883 likesection,chapter,likechapter,appendix,part,likpart}
884 \ifx \part\:UnDef \else
885 \Configure{endlikepart}{endpart}
886 \fi
887 >>>
888
889 \<scrbook sections\><<<
890
891 \Configure{endlikeparagraph}
892 {paragraph,subsubsection,likesubsubsection,subsection,%
893 likesubsection,section,%
894 likesection,chapter,likechapter,addchap,appendix,part,likepart}
895 \Configure{endsubparagraph}
896 {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
897 subsection,likesubsection,section,%
898 likesection,chapter,likechapter,addchap,appendix,part,likepart}
899 \Configure{endlikesubparagraph}
900 {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
901 subsection,likesubsection,section,%
902 likesection,chapter,likechapter,addchap,appendix,part,likepart}
903 \Configure{endsection}
904 {likesection,chapter,likechapter,addchap,appendix,part,likepart}
905 \Configure{endlikesection}
906 {section,chapter,likechapter,addchap,appendix,part,likepart}
907 \Configure{endsubsection}
908 {likesubsection,section,likesection,chapter,%
909 likechapter,addchap,appendix,part,likepart}
910 \Configure{endlikesubsection}
911 {subsection,section,likesection,chapter,%
912 likechapter,addchap,appendix,part,likepart}
913 \Configure{endsubsubsection}
914 {likesubsubsection,subsection,likesubsection,section,%
915 likesection,chapter,likechapter,addchap,appendix,part,likepart}
916 \Configure{endlikesubsubsection}
917 {subsubsection,subsection,likesubsection,section,%
918 likesection,chapter,likechapter,addchap,appendix,part,likepart}
919 \Configure{endparagraph}
920 {likeparagraph,subsubsection,likesubsubsection,subsection,%
921 likesubsection,section,%
922 likesection,chapter,likechapter,addchap,appendix,part,likepart}
923 \Configure{endchapter}{likechapter,addchap,appendix,part,likepart}
924 \Configure{endlikechapter}{chapter,appendix,part,likeparaddchap,addchap}
925 \Configure{endaddchap}{chapter,likechapter,appendix,part,likepart}
926 \Configure{endappendix}{chapter,likechapter,addchap,part,likepart}
927
928 \ifx \part\:UnDef \else
929 \Configure{endpart}{likepart}
930 \Configure{endlikepart}{endpart}
931 \fi
932 >>>
933
934 %%%%%%%%%%%%%%%
935 \section{Lists}
936 %%%%%%%%%%%%%%%
937
938
939 \<latex lists\><<<
940 \ConfigureList{trivlist}%
941 {\EndP\HCode{<glosslist>}\let\end:itm=\empty}
942 {\EndP\HCode{</glossdef></glossentry></glosslist>}\ShowPar}
943 {\end:itm\def\end:itm{\EndP\HCode{</glossdef></glossentry>}}%
944 \HCode{<glossentry><glossterm><remark>}\bgroup \bf}
945 {\egroup\HCode{</remark></glossterm><glossdef\Hnewline>}\par\ShowPar}
946 \ConfigureList{list}%
947 {\EndP\HCode{<glosslist>}\let\end:itm=\empty}
948 {\EndP\HCode{</glossdef></glossentry></glosslist>}\ShowPar}
949 {\end:itm\def\end:itm{\EndP\HCode{</glossdef></glossentry>}}%
950 \HCode{<glossentry><glossterm><remark>}\bgroup \bf}
951 {\egroup\HCode{</remark></glossterm><glossdef\Hnewline>}\par\ShowPar}
952 \ConfigureList{itemize}%
953 {\EndP\HCode{<itemizedlist>}\let\end:itm=\empty}
954 {\EndP\HCode{</listitem></itemizedlist>}\ShowPar}
955 {\end:itm\def\end:itm{\EndP\Tg</listitem>}\DeleteMark}
956 {\HCode{<listitem>}\par\ShowPar}
957 \ConfigureList{enumerate}%
958 {\EndP\HCode{<orderedlist\Hnewline>}\let\end:itm=\empty}
959 {\EndP\HCode{</listitem></orderedlist>}\ShowPar}
960 {\end:itm\def\end:itm{\EndP\Tg</listitem>}\DeleteMark}
961 {\HCode{<listitem>}\AnchorLabel\par\ShowPar}
962 \ConfigureList{description}%
963 {\EndP\HCode{<variablelist\Hnewline>}%
964 |<save end:itm|>\global\let\end:itm=\empty}
965 {|<recall end:itm|>\EndP
966 \HCode{</listitem></varlistentry></variablelist>}\ShowPar}
967 {\end:itm \global\def\end:itm{\EndP
968 \HCode{</listitem></varlistentry>}}%
969 \HCode{<varlistentry><term\Hnewline>}\bgroup \bf}
970 {\egroup\EndP\HCode{</term><listitem>}\par\ShowPar}
971 >>>
972
973
974 \<save end:itm\><<<
975 \PushMacro\end:itm
976 >>>
977
978
979 \<recall end:itm\><<<
980 \PopMacro\end:itm \global\let\end:itm \end:itm
981 >>>
982
983
984 % \LinkCommand\DBLink{link, linkend,,,,\empty}
985
986 \<tex4ht cross-linking\><<<
987 %\LinkCommand\DBLink{ulink, url}
988 \LinkCommand\DBLink{link, xlink:href}
989 \LinkCommand\Anchor{anchor,, xml:id,,,\empty}
990 \Odef\Link[#1]#2#3{%
991 \global\let\EndLink=\empty
992 \if ]#3]\else \Anchor{}{#3}\EndAnchor
993 \gdef\M:EndLink{\HCode{<!--end anchor-->}}\fi
994 \if ]#1#2]\else
995 \EndLink\DBLink[#1]{#2}{}\global\let\EndLink=\EndDBLink\fi
996 }
997 |<fix Link for -|>
998 \Configure{Link}{anchor}{linkend=}{xml:id=}{}
999 >>>
1000
1001 \<configure docbook-mml tex4ht\><<<
1002 \Odef\M:Link[#1]#2#3{%
1003 \global\let\M:EndLink=\empty
1004 \if ]#3]\else \Anchor{}{#3}\EndAnchor
1005 \gdef\M:EndLink{\HCode{<!--end anchor-->}}\fi
1006 \if ]#1#2]\else
1007 \EndLink\DBLink[#1]{#2}{}\global\let\M:EndLink=\EndDBLink\fi
1008 }
1009 |<fix M:Link for -|>
1010 >>>
1011
1012
1013
1014 \<fix Link for -\><<<
1015 \let\do:Link=\Link
1016 \def\Link{\Protect\p:Link}
1017 \def\p:Link{\futurelet\:next\choose:Link}
1018 \def\choose:Link{\ifx -\:next \expandafter\minus:Link
1019 \else\expandafter\do:Link\fi}
1020 \def\minus:Link#1{\do:Link}
1021 >>>
1022
1023 The protection is required for cases like the following one.
1024
1025 \begin{verbatim}
1026 \documentclass{article}
1027 \begin{document}
1028 \section{Introduction}
1029
1030 \begin{figure*} \caption{fig \ref{fig}} \end{figure*}
1031
1032 \label{fig}
1033
1034 \end{document}
1035 \end{verbatim}
1036
1037
1038
1039
1040 \<fix M:Link for -\><<<
1041 \let\do:M:Link=\M:Link
1042 \def\M:Link{\Protect\p:M:Link}
1043 \def\p:M:Link{\futurelet\:next\choose:M:Link}
1044 \def\choose:M:Link{\ifx -\:next \expandafter\minus:M:Link
1045 \else\expandafter\do:M:Link\fi}
1046 \def\minus:M:Link#1{\do:M:Link}
1047 >>>
1048
1049 %%%%%%%%%%%%%%%
1050 \section{Bibliography}
1051 %%%%%%%%%%%%%%%
1052
1053
1054
1055 %%%%%%%%%%%%%%%%%%%
1056 \subsection{Shared}
1057 %%%%%%%%%%%%%%%%%%%
1058
1059
1060
1061 \<article,report,book lists\><<<
1062 \ConfigureList{thebibliography}%
1063 {\IgnorePar\EndP
1064 \HCode{<simplelist role="bibliography">}\let\en:bib=\empty}
1065 {\en:bib\HCode{</simplelist>}}
1066 {\en:bib\def\en:bib{\HCode{</member>}}%
1067 \HCode{<member><!--l.
1068 \the\inputlineno--><abbrev role="biblioentry">}%
1069 |<para within bib|>}
1070 {\HCode{</abbrev>}}
1071 >>>
1072
1073
1074
1075
1076
1077 \<para within bib\><<<
1078 \Configure{HtmlPar}{}{}{}{}
1079 >>>
1080
1081
1082
1083 \<latex lists\><<<
1084 \Configure{cite}{\HCode{<citation>}}{\HCode{</citation>}}{\LinkCite}{}
1085 \Configure{bibitem}{\Link}{\EndLink}
1086 \LinkCommand\LinkCite{xref, linkend,,,/,\empty}
1087 >>>
1088
1089
1090 %%%%%%%%%%%%%%%%%%%
1091 \subsection{Jurabib}
1092 %%%%%%%%%%%%%%%%%%%
1093
1094
1095 \<configure docbook jurabib\><<<
1096 \Configure{jblink}{\Link}{\EndLink}
1097 \Configure{jbanchor}{\Link}{\EndLink}
1098 >>>
1099
1100 %%%%%%%%%%%%%%%%%%%%%
1101 \subsection{Biblatex}
1102 %%%%%%%%%%%%%%%%%%%%%
1103
1104
1105 \<configure docbook biblatex\><<<
1106 \def\bibConfigure{%
1107 \ConfigureList{thebibliography}
1108 {\ifvmode \IgnorePar \fi \EndP \EndP
1109 \HCode {<bibliolist>}%
1110 %
1111 % This is for linking citations with biblist items which
1112 % are in a different file when output is split into different
1113 % chunks. [CVR 2012-09-27]
1114 %
1115 %
1116 % <biblatex-2.2>
1117 %
1118 \immediate\write\@auxout{%
1119 \string\BibFileName[\therefsection]{\FileName}}%
1120 %
1121 % </biblatex-2.2>
1122 %
1123 \PushMacro \end:itm \global \let \end:itm =\empty}%
1124 {\ifvmode \IgnorePar \fi \EndP
1125 \PopMacro \end:itm \global \let \end:itm \end:itm \EndP
1126 \HCode {</bibliomisc></bibliomixed></bibliolist>}\ShowPar}%
1127 {\ifvmode \IgnorePar \fi \EndP \gHAdvance \bibN by 1
1128 \end:itm \global \def \end:itm {\EndP \HCode{</bibliomisc></bibliomixed>}}%
1129 \HCode {<bibliomixed xml:id="X\therefsection-\abx@field@entrykey"><bibliomisc>}\bgroup \bf}%
1130 {\ifvmode \IgnorePar \fi \EndP
1131 \egroup
1132 \HCode {</bibliomisc><bibliomisc\Hnewline xml:id="bib-\bibN">}%
1133 \par \ShowPar}%
1134 }
1135
1136 \def\hyper:natanchorstart#1{\Link{}{#1}\EndLink}%
1137 \def\hyper:natlinkstart#1{\Link{#1}{}}%
1138 >>>
1139
1140
1141
1142 %%%%%%%%%%%%%%%%
1143 \section{Tables and Arrays}
1144 %%%%%%%%%%%%%%%%
1145
1146 \<<article, report, book\><<<
1147 \ConfigureEnv{table}
1148 {\ifvmode \IgnorePar\fi \EndP
1149 \HCode{<para role="table"><blockquote>}}
1150 {\ifvmode \IgnorePar\fi \EndP
1151 \HCode{</blockquote></para>}}
1152 {}{}
1153 >>>
1154
1155 %%%%%%%%%%%%%
1156 \subsection{Tabular and Array}
1157 %%%%%%%%%%%%%
1158
1159
1160
1161 \<configure docbook Preamble\><<<
1162 \:CheckOption{debug-} \if:Option
1163 \def\IgnoreDebug#1{}
1164 \else
1165 \def\IgnoreDebug#1{#1}
1166 \fi
1167 >>>
1168
1169 \<latex tables\><<<
1170 \Configure{tabular}
1171 {\IgnorePar\EndP \halignTB{tabular}%
1172 \HCode{<informaltable><tgroup cols="\ar:cnt">}%
1173 |<tabular colspec width|>%
1174 \HCode{<tbody>}}
1175 {\HCode{</tbody></tgroup></informaltable>}\ShowPar}
1176 {\HCode{<row>}}
1177 {\HCode{</row>}}
1178 {\HCode{<entry\Hnewline}\halignTD
1179 \ifnum \HMultispan>1
1180 \tmp:cnt=\HCol \advance\tmp:cnt by \HMultispan
1181 \advance\tmp:cnt by -1
1182 \HCode{ namest="c\HCol" \IgnoreDebug{nameend="c\the\tmp:cnt"}}\fi
1183 \HCode{>}\par\ShowPar}
1184 {\ifvmode\IgnorePar\fi \EndP \HCode{</entry>}}
1185 >>>
1186
1187 [\HPage{test data}
1188 \<\><<<
1189 \documentclass{report}
1190 \begin{document}
1191
1192 \begin{tabular}{p{13cm}}
1193
1194 \begin{verbatim}
1195 foo
1196 \end{verbatim}\\
1197 abc
1198 \end{tabular}
1199
1200 \end{document}
1201 >>>
1202 \EndHPage{}]
1203
1204 \<latex tables\><<<
1205 \HAssign\tabularN=0
1206 \Configure{halignTB<>}{tabular}{<>\HAlign}
1207 \Configure{halignTB}
1208 {\halignTBL}
1209 {}
1210 >>>
1211
1212
1213 \<configure docbook-mml latex\><<<
1214 \Configure{halignTB}
1215 {\ifmathml \HCode{<\:MT table }\fi \halignTBL}
1216 {\ifmathml \HCode{>}\fi}
1217 >>>
1218
1219
1220 \<configure docbook-mml array\><<<
1221 \Configure{halignTB}
1222 {\ifmathml \HCode{<\:MT table }\fi \halignTBL}
1223 {\ifmathml \HCode{>}\fi}
1224 >>>
1225
1226 \<tabular colspec width\><<<
1227 \tmp:cnt = 0
1228 \loop
1229 \ifnum \tmp:cnt < \ar:cnt
1230 \advance\tmp:cnt by 1
1231 {\HAssign\HCol=\tmp:cnt
1232 \HCode{<colspec colname="c\HCol"
1233 \expandafter\expandafter\expandafter\ifx
1234 \HColWidth\relax\else
1235 colwidth="\HColWidth"
1236 \fi
1237 />}}%
1238 \repeat
1239 >>>
1240
1241
1242
1243 \<latex tables\><<<
1244 \Configure{halignTD} {}{}
1245 {<}{\HCode{ align="left"}}
1246 {-}{\HCode{ align="center"}}
1247 {>}{\HCode{ align="right"}}
1248 {^}{\HCode{ valign="top"}}
1249 {=}{\HCode{ valign="middle"}}
1250 {||}{\HCode{ valign="middle"}}
1251 {_}{\HCode{ valign="bottom"}}
1252 {p}{\HCode{ align="char"}}
1253 {m}{\HCode{ align="left" valign="middle"}}
1254 {b}{\HCode{ align="left" valign="middle"}}
1255 {}
1256 >>>
1257
1258
1259
1260
1261
1262
1263 \<configure docbook-mml latex\><<<
1264 \Configure{halignTD} {}{}
1265 {<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
1266 \HCode{ align="left" }\fi}
1267 {-}{\ifmathml \HCode{ \a:mathml columnalign="center"}\else
1268 \HCode{ align="center" }\fi}
1269 {>}{\ifmathml \HCode{ \a:mathml columnalign="right"}\else
1270 \HCode{ align="right" }\fi}
1271 {^}{\ifmathml \HCode{ \a:mathml rowalign="top"}\else
1272 \HCode{ valign="top" }\fi}
1273 {=}{\ifmathml \HCode{ \a:mathml rowalign="baseline"}\else
1274 \HCode{ valign="baseline" }\fi}
1275 {||}{\ifmathml \HCode{ \a:mathml rowalign="center"}\else
1276 \HCode{ valign="middle" }\fi}
1277 {_}{\ifmathml \HCode{ \a:mathml rowalign="bottom"}\else
1278 \HCode{ valign="bottom" }\fi}
1279 {p}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
1280 \HCode{ align="left"}\fi}
1281 {}
1282 >>>
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 \<latex tables\><<<
1302 \Configure{hline}{}
1303 \Configure{//[]}{}
1304 >>>
1305
1306
1307 %%%%%%%%%%%%%
1308 \subsection{Horizontal Borders}
1309 %%%%%%%%%%%%%
1310
1311
1312
1313
1314 \<latex tables\><<<
1315 \Configure{HBorder}
1316 {<row\Hnewline role="hline">}
1317 {<entry rowsep="1"></entry>}
1318 {</row>}
1319 {<row\Hnewline role="cline">}
1320 {<entry rowsep="0"></entry>}
1321 {<entry rowsep="1"></entry>}
1322 {</row>}
1323 {<row\Hnewline role="vspace">}
1324 {<entry rowsep="1"\Hnewline></entry>}
1325 {</row>}
1326 \Configure{putHBorder}{\HCode{\HBorder}}
1327 >>>
1328
1329
1330
1331
1332 \<configure docbook-mml latex\><<<
1333 \def\:MM{\ifmathml \a:mathml m\fi}
1334 \Configure{HBorder}
1335 {<\ifmathml \a:mathml mtr class\else row role\fi ="hline">}
1336 {\ifmathml <\a:mathml mtd><mo> \string&\#x0332; </mo></\a:mathml mtd>\else
1337 <entry rowsep="1"></entry>\fi}
1338 {</\ifmathml \a:mathml mtr\else row\fi>}
1339 {<\ifmathml \a:mathml mtr class\else row role\fi ="cline">}
1340 {\ifmathml <\a:mathml mtd></\a:mathml mtd>\else
1341 <entry rowsep="0"></entry>\fi}
1342 {\ifmathml<\a:mathml mtd><mo> \string&\#x0332; </mo></\a:mathml mtd>\else
1343 <entry rowsep="1"></entry>\fi}
1344 {</\ifmathml \a:mathml mtr\else row\fi>}
1345 {<\ifmathml \a:mathml mtr class\else row role\fi ="vspace">}
1346 {\ifmathml <\a:mathml mtd></\a:mathml mtd>\else
1347 <entry rowsep="1"\Hnewline>\string&\#x00A0;</entry>\fi}
1348 {</\ifmathml \a:mathml mtr\else row\fi>}
1349 >>>
1350
1351 \<configure docbook latex\><<<
1352 \Configure{xcline}{\ht:special{t4ht=<!--dirt-->}}
1353 >>>
1354
1355 \<mml hline\><<<
1356
1357 >>>
1358
1359
1360
1361 \<\><<<
1362 \let\VBorder=\empty \let\AllColMargins=\empty
1363 \Configure{VBorder}
1364 {\let\VBorder=\empty \let\AllColMargins=\empty
1365 \global\let\GROUPS=\empty \HAssign\NewGroup = 0
1366 \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
1367 {\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
1368 \HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}}
1369 {\Advance:\NewGroup by 1
1370 \ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup
1371 xml:id="TBL-\TableNo-\ar:cnt g">}\fi
1372 \xdef\VBorder{\VBorder<col\Hnewline xml:id="TBL-\TableNo
1373 -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
1374 {\xdef\AllColMargins{\AllColMargins 0}}
1375 >>>
1376
1377
1378 \<latex tables\><<<
1379 \HAssign\Next:TableNo=0 \global\let\TableNo=\Next:TableNo
1380 >>>
1381
1382
1383 \<latex tables\><<<
1384 \Configure{hline}{\ifx \ar:cnt\:UnDef\else
1385 \o:noalign:{|<hline body for array/tabular|>}%
1386 \expandafter\ignoreEndTr
1387 \fi}
1388 >>>
1389
1390
1391
1392
1393 \<hline body for array/tabular\><<<
1394 \append:def\hline:s{\a:HBorder}%
1395 \def\:tempb{\ifnum \tmp:cnt<\ar:cnt
1396 \advance\tmp:cnt by 1 \append:def\hline:s{\b:HBorder}%
1397 \expandafter\:tempb
1398 \fi }%
1399 \tmp:cnt=0 \:tempb
1400 \append:def\hline:s{\c:HBorder}\global\let\hline:s=\hline:s
1401 >>>
1402
1403
1404
1405 \<\><<<
1406 \Configure{//[]}{\ifx \ar:cnt\:UnDef
1407 \else\o:noalign:{|<vspace body for array/tabular|>}\fi}
1408 >>>
1409
1410 \<vspace body for array/tabular\><<<
1411 \append:def\vspc:s{\h:HBorder}%
1412 \def\:tempb{\ifnum \tmp:cnt<\ar:cnt
1413 \advance\tmp:cnt by 1 \append:def\vspc:s{\i:HBorder}%
1414 \expandafter\:tempb
1415 \fi }
1416 \tmp:cnt|=0 \:tempb
1417 \append:def\vspc:s{\j:HBorder}\global\let\vspc:s|=\vspc:s
1418 >>>
1419
1420
1421
1422
1423 %%%%%%%%%%%%%
1424 \subsection{Long Tables}
1425 %%%%%%%%%%%%%
1426
1427 \<configure docbook longtable\><<<
1428 \Configure{longtable}
1429 {\IgnorePar\EndP
1430 \HCode{<informaltable}\halignTB{longtable}%
1431 \HCode{><tgroup cols="\ar:cnt"><tbody>}}
1432 {\HCode{</tbody></tgroup></informaltable>}\ShowPar}
1433 {\HCode{<row \Hnewline}\halignTR\HCode{>}}
1434 {\r:HA}
1435 {\HCode{<entry}%
1436 \halignTD
1437 \ifnum \HMultispan>1
1438 \tmp:cnt=\HCol \advance\tmp:cnt by \HMultispan
1439 \advance\tmp:cnt by -1
1440 \HCode{ namest="c\HCol" \IgnoreDebug{nameend="c\the\tmp:cnt"}}\fi
1441 \HCode{\Hnewline role="td}|<tabular td align|>%
1442 \HCode{">}|<td save EndP|>%
1443 |<start array par box|>\PushStack\Table:Stck\TableNo}
1444 {\PopStack\Table:Stck\TableNo |<end array par box|>\d:HA}
1445 \Configure{halignTB<>}{longtable}{\HCode{role="longtable"\Hnewline
1446 }<>\HAlign}
1447 \Configure{longtableparbox}{\IgnorePar\leavevmode\ShowPar\par}
1448 >>>
1449
1450 % {\IgnorePar\EndP
1451 % \HCode{|<show input line no|><div}%
1452 % \halignTB{longtable}\HCode{><table>}}
1453 % {\HCode{</table></div>}}
1454
1455
1456 \<configure docbook longtable\><<<
1457 \def\r:HA{\HCode{</row>}}
1458 \def\d:HA{\ifvmode \IgnorePar \fi \EndP\HCode{</entry>}|<td recall EndP|>}
1459 >>>
1460
1461
1462 \<configure docbook tex4ht\><<<
1463 \newif\ifHCond
1464 >>>
1465
1466
1467 \<show input line no\><<<
1468 <!--l. \the\inputlineno-->%
1469 >>>
1470
1471
1472 \<td save EndP\><<<
1473 \SaveEndP
1474 >>>
1475
1476 \<td recall EndP\><<<
1477 \RecallEndP
1478 >>>
1479
1480 \<start array par box\><<<
1481 \par \ShowPar
1482 >>>
1483
1484 \<end array par box\><<<
1485 \IgnorePar \EndP
1486 >>>
1487
1488
1489
1490
1491
1492
1493
1494
1495 %%%%%%%%%%%%%
1496 \subsection{Obey Lines and Alignments}
1497 %%%%%%%%%%%%%
1498
1499
1500
1501
1502 \<obey lines\><<<
1503 \Configure{verb}{}{}
1504 >>>
1505
1506 \<latex, plain\><<<
1507 \Configure{obeylines}
1508 {\ifvmode \IgnorePar \EndP
1509 \HCode{<blockquote role="obeylines-v">}%
1510 \gdef\ob:ln{blockquote}%
1511 \else \HCode{<remark role="obeylines-h">}%
1512 \gdef\ob:ln{remark}%
1513 \fi
1514 }
1515 {\ht:special{t4ht=</\ob:ln>}\ShowPar} {\hbox{\HCode{<!--br /-->}}}
1516 >>>
1517
1518 \<latex etc\><<<
1519 \ConfigureEnv{center}
1520 {} {\ShowPar} {}{}
1521 \Configure{centerline}
1522 {\ifvmode \IgnorePar\fi\HCode{<!--centerline-->}}
1523 {\HCode{<!--/centerline-->}}
1524 \Configure{leftline}
1525 {\ifvmode \IgnorePar\fi\HCode{<!--leftline-->}}
1526 {\HCode{<!--/leftline-->}}
1527 \Configure{rightline}
1528 {\ifvmode \IgnorePar\fi\HCode{<!--rightline-->}}
1529 {\HCode{<!--/rightline-->}}
1530 >>>
1531
1532
1533 %%%%%%%%%%%%%
1534 \subsection{multirow}
1535 %%%%%%%%%%%%%
1536
1537 \<configure docbook multirow\><<<
1538 \Configure{multirow}
1539 {\HCode{<blockquote
1540 role="multirow"><para role="\the\@tempcnta">}}
1541 {\HCode{</para></blockquote>}}
1542 >>>
1543
1544
1545
1546 %%%%%%%%%%%%%
1547 \subsection{multirow}
1548 %%%%%%%%%%%%%
1549
1550 \<configure docbook dcolumn\><<<
1551 \Configure{dcolumn}
1552 {\HCode{<blockquote role="align-char"><para role="\Dpoint">}}
1553 {\HCode{</para></blockquote>}}
1554 >>>
1555
1556
1557
1558
1559 %%%%%%%%%%%%%%%%%%%%%%%
1560 \subsection{colortbl.sty}
1561 %%%%%%%%%%%%%%%%%%%%%%%
1562
1563 \<configure docbook colortbl WAIT\><<<
1564 \HAssign\Table:No=0
1565 \HAssign\TableNo=0
1566 \HAssign\Prev:Col=0
1567 \HAssign\HRow=0
1568
1569 \Configure{@classz}
1570 {\let\begin:current@color=\relax
1571 \let\end:current@color=\relax }
1572 {%
1573 \ifx \CT@column@color\relax \else
1574 \ifx \CT@column@color\empty \else{%
1575 \def\CT@color{\@ifnextchar[\color:ii\color:i}%
1576 \CT@column@color|<par del|>%
1577 \edef\:temp{\noexpand\add:color
1578 {background-color}{\:temp}{\ar:cnt}}\:temp
1579 }\fi \fi
1580 }
1581 {\begin:current@color}
1582 {\end:current@color}
1583 \Configure{rowcolor}{\row:clr}
1584 \def\row:clr#1{{%
1585 % \HAdvance\HRow by 1
1586 \add:color{background-color}{#1}{\HRow-}}}
1587 \Configure{text-colortbl}
1588 {\add:color{color}{\current@color}{\HRow-\HCol}}
1589 \Configure{cell-colortbl}
1590 {\add:color{background-color}{\current@color}{\HRow-\HCol}}
1591 \def\add:color#1#2#3{%
1592 \Configure{SetHColor}{\Css{ \#TBL-\TableNo-#3{ #1:\HColor }}}{#2}}
1593 >>>
1594
1595
1596
1597
1598 %%%%%%%%%%%%%%%%%
1599 \section{Figures}
1600 %%%%%%%%%%%%%%%%%
1601
1602 \<article,report,book figures\><<<
1603 \ConfigureEnv{figure}
1604 {\ifvmode \IgnorePar\fi \EndP \HCode{<figure><title/><blockquote>}}
1605 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote></figure>}}
1606 {}{}
1607 \Configure{caption}
1608 {\HCode{<blockquote role="caption"><title role="caption">}}
1609 {\HCode{</title><para>}}
1610 {}
1611 {\HCode{</para></blockquote>}}
1612 >>>
1613
1614 \<config lists of figures and tables\><<<
1615 \ConfigureToc{lof}
1616 {\HCode{\Hnewline<tocentry role="lofToc">}}
1617 {\ }{} {\HCode{</tocentry>}}
1618 \ConfigureToc{lot}
1619 {\HCode{\Hnewline<tocentry role="lotToc">}}
1620 {\ }{} {\HCode{</tocentry>}}
1621 >>>
1622
1623
1624
1625 %%%%%%%%%%%%%%
1626 \section{Math}
1627 %%%%%%%%%%%%%%
1628
1629 \<configure docbook-math tex4ht\><<<
1630 \Configure{$$}{\EndP\PicDisplay}{\EndPicDisplay}
1631 {\everymath{}\everydisplay{}}
1632 \Configure{$}{\PicMath}{\EndPicMath}{}
1633 \Configure{PicMath}
1634 {\Tg<inlineequation>}{\Tg</inlineequation>}{}{}
1635 \let\MathPar\empty
1636 >>>
1637
1638
1639 \<configure docbook-math tex4ht\><<<
1640 \Configure{PicDisplay}
1641 {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\EndP\ShowPar\endgraf
1642 \HCode{<equation role="\MathPar math-display"><mathphrase>}}
1643 {\HCode{</mathphrase></equation>}\ShowPar}
1644 {} {\space role="\MathPar math-display" }
1645 >>>
1646
1647
1648
1649
1650
1651 \<try inline par\><<<
1652 \ShowPar\par{\HCondtrue\noindent}%
1653 >>>
1654
1655
1656
1657 \<configure docbook tex4ht \><<<
1658 \Configure{Picture+}{}{}
1659 \Configure{Picture*}{}{}
1660 \Configure{IMG}
1661 {\ht:special{t4ht=<graphic\Hnewline fileref="}}
1662 {\ht:special{t4ht="}}
1663 {}
1664 {}
1665 {\ht:special{t4ht=></graphic>}}
1666 \Configure{pic-halign}{}
1667 >>>
1668
1669
1670
1671 \<configure docbook tex4ht\><<<
1672 \Configure{Picture+}{}{}
1673 \Configure{Picture*}{}{}
1674 \Configure{IMG}
1675 {\ht:special{t4ht=<inlinemediaobject><imageobject><imagedata\Hnewline
1676 fileref="}}
1677 {\ht:special{t4ht="}}
1678 {}
1679 {}
1680 {\ht:special{t4ht=></imagedata></imageobject></inlinemediaobject>}}
1681 \Configure{pic-halign}{}
1682 >>>
1683
1684
1685
1686 \<configure docbook tex4ht\><<<
1687 \Configure{PictureAlt*+}
1688 {\let\sv:HtmlPar=\HtmlPar \let\HtmlPar=\empty
1689 |<postscript for /Picture|>%
1690 |<tex halign and cr/crcr|>%
1691 \NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
1692 \let\HCode=\:gobble |%\offinterlineskip|%
1693 \let\EndPicture=\empty
1694 \ht:special{t4ht@[}%
1695 }
1696 {\ht:special{t4ht@]}%
1697 \let\HCode=\:HCode
1698 \let\EndPicture=\:UnDef \let\HtmlPar=\sv:HtmlPar \SUBOn \SUPOn
1699 \csname EndPauseMathClass\endcsname \EndNoFonts
1700 |<tex4ht halign and cr/crcr|>%
1701 |<delay postscript|>%
1702 }
1703 >>>
1704
1705 \<postscript for /Picture\><<<
1706 \def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
1707 >>>
1708
1709 \<tex halign and cr/crcr\><<<
1710 \iffalse{\fi
1711 \let\sv:halign=\halign
1712 \let\sv:cr=\cr
1713 \let\sv:crcr=\crcr
1714 \iffalse}\fi
1715 \RecallTeXcr \let\halign =\TeXhalign
1716 >>>
1717
1718 \<tex4ht halign and cr/crcr\><<<
1719 \iffalse{\fi
1720 \let\halign=\sv:halign
1721 \let\cr=\sv:cr
1722 \let\crcr=\sv:crcr
1723 \iffalse}\fi
1724 >>>
1725
1726 \<delay postscript\><<<
1727 \let\PsCode=\relax
1728 >>>
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1739
1740
1741
1742 \<configure docbook-math tex4ht WAIT\><<<
1743
1744 \Configure{halignTR}
1745 {\HCode{ style="vertical-align:baseline;"}}
1746 \Configure{halignTBL}
1747 % % {t}{\HCode{ valign="top"}}
1748 % % {b}{\HCode{ valign="baseline"}}
1749 % % {c}{\HCode{ valign="middle"}}
1750 {}
1751
1752 \Configure{halign}
1753 {\EndP\halignTB{halign}} {\HCode{</table>}}
1754 \R:HA\r:HA\D:HA\d:HA
1755 \Configure{pic-halign}{}
1756 \Configure{halignTD} {}{}
1757 {<}{\HCode{ style="white-space:nowrap; text-align:left;"}}
1758 {-}{\HCode{ style="white-space:nowrap; text-align:center;"}}
1759 {>}{\HCode{ style="white-space:nowrap; text-align:right;"}}
1760 {^}{\HCode{ style="vertical-align:top; white-space:nowrap;"}}
1761 {=}{\HCode{ style="vertical-align:baseline; white-space:nowrap;"}}
1762 {||}{\HCode{ style="vertical-align:middle; white-space:nowrap;"}}
1763 {_}{\HCode{ style="vertical-align:bottom; white-space:nowrap;"}}
1764 {p}{\HCode{ style="white-space:wrap; text-align:left;"}\Protect\a:HColWidth}
1765 {m}{\HCode{ style="white-space:nowrap; text-align:left; vertical-align:middle;"}}
1766 {b}{\HCode{ style="white-space:nowrap; text-align:left; vertical-align:baseline;"}}
1767 {}
1768
1769
1770
1771 \ifx \a:imgdir\:UnDef
1772 \let\a:imgdir=\empty
1773 \catcode`\:=12
1774 \expandafter
1775 \def\csname :temp\endcsname#1imgdir:#2,#3!*?: {%
1776 \if !#2!\else \expandafter
1777 \def\csname a:imgdir\endcsname{#2}\fi}
1778 \expandafter\csname :temp\expandafter\endcsname
1779 \Preamble ,imgdir:,!*?: %
1780 \catcode`\:=11
1781 \Log:Note{for addressing images in
1782 a subdirectory, use the command line option `imgdir:.../'}
1783 \fi
1784
1785 >>>
1786
1787 \<configure docbook-math latex WAIT\><<<
1788 \ConfigureEnv{array}
1789 {\IgnorePar\EndP\Tg<div class="pic-array">\Picture*{}$$}
1790 {$$\EndPicture\Tg</div>}{}{}
1791 >>>
1792
1793 \<configure docbook-math array WAIT\><<<
1794 \ConfigureEnv{array}
1795 {\IgnorePar\EndP\Tg<div class="pic-array">\Picture*{}$$}
1796 {$$\EndPicture\Tg</div>}{}{}
1797 >>>
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807 \<configure docbook graphics\><<<
1808 \Configure{graphics}
1809 {}
1810 {\HCode{<inlinemediaobject><imageobject><imagedata
1811 width="\the\Gin@req@width"
1812 fileref="\Gin@base\Gin@ext"
1813 ></imagedata></imageobject></inlinemediaobject>}%
1814 }
1815 >>>
1816
1817
1818 \<configure docbook graphics \><<<
1819 \Configure{graphics}
1820 {}
1821 {\HCode{<graphic width="\the\Gin@req@width" fileref="\Gin@base\Gin@ext"
1822 ></graphic>}%
1823 }
1824 >>>
1825
1826
1827 \<configure docbook-math latex\><<<
1828 \Configure{[]}
1829 {\PicDisplay $$\everymath{}\everydisplay{}}
1830 {$$\EndPicDisplay}
1831 \Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
1832 >>>
1833
1834
1835
1836
1837 \<configure docbook-mml tex4ht\><<<
1838 \Configure{$$}
1839 {\Configure{@math}{|<disp math|>}\DviMath}
1840 {\EndDviMath{\csname HCondtrue\endcsname\noindent}}
1841 {}
1842 \Configure{@math}{|<disp math|>} \let\math:mode=\a:@math
1843 \Configure{DviMath}
1844 {\a:DviMathML \mathmltrue
1845 \mml:htfsym |%\NoFonts|%%
1846 \IgnoreRule
1847 \HCode{<!--l. \the\inputlineno--><math\Hnewline
1848 xmlns="http://www.w3.org/1998/Math/MathML">}\a:math
1849 |<sv dvimath par|>\IgnorePar}
1850 {\HCode{</math>} \EndIgnoreRule
1851 \ext:htfsym |%\EndNoFonts|%%
1852 \mathmlfalse \b:DviMathML |<recall dvimath par|>}
1853 \Configure{DviMathML}
1854 {\HCode{<\ifx \math:mode\a:@math \else inline\fi
1855 equation \Hnewline \expandafter\:rend \a:@math==//>}}
1856 {\HCode{</\ifx \math:mode\a:@math \else inline\fi equation>}}
1857 \def\:rend#1=#2=#3//{\if !#1!\else role=#2\fi}
1858 >>>
1859
1860
1861 % \ifOption{mml-fonts}{}{|%\mml:htfsym|%\NoFonts}%
1862 % \ifOption{mml-fonts}{}{|%\ext:htfsym|%\EndNoFonts}%
1863
1864 \<disp math\><<<
1865 display="block">>>
1866
1867 \<recall dvimath par\><<<
1868 \sv:ignore
1869 >>>
1870
1871 \<sv dvimath par\><<<
1872 \edef\sv:ignore{\if:nopar
1873 \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
1874 >>>
1875
1876
1877
1878
1879
1880
1881
1882 \<configure docbook fontmath\><<<
1883 \Configure{mathit}{\HCode{<emphasis role="it">}}
1884 {\HCode{</emphasis>}}
1885 \Configure{mathbf}{\HCode{<emphasis role="bf">}}
1886 {\HCode{</emphasis>}}
1887 \Configure{mathtt}{\HCode{<emphasis role="tt">}}
1888 {\HCode{</emphasis>}}
1889 \Configure{mathsf}{\HCode{<emphasis role="sf">}}
1890 {\HCode{</emphasis>}}
1891 \Configure{mathrm}{\HCode{<emphasis role="rm">}}
1892 {\HCode{</emphasis>}}
1893 >>>
1894
1895 \<configure docbook latex\><<<
1896 \Configure{textbf}{|<par within font|>\HCode{<emphasis role="bf">}}
1897 {\HCode{</emphasis>}|<end par within font|>}
1898 \Configure{textit}{|<par within font|>\HCode{<emphasis role="it">}}
1899 {\HCode{</emphasis>}|<end par within font|>}
1900 \Configure{textrm}{|<par within font|>\HCode{<emphasis role="rm">}}
1901 {\HCode{</emphasis>}|<end par within font|>}
1902 \Configure{textup}{|<par within font|>\HCode{<emphasis role="up">}}
1903 {\HCode{</emphasis>}|<end par within font|>}
1904 \Configure{textsc}{|<par within font|>\HCode{<emphasis role="sc">}}
1905 {\HCode{</emphasis>}|<end par within font|>}
1906 \Configure{textsf}{|<par within font|>\HCode{<emphasis role="sf">}}
1907 {\HCode{</emphasis>}|<end par within font|>}
1908 \Configure{textsl}{|<par within font|>\HCode{<emphasis role="sl">}}
1909 {\HCode{</emphasis>}|<end par within font|>}
1910 \Configure{texttt}{|<par within font|>\HCode{<emphasis role="tt">}}
1911 {\HCode{</emphasis>}|<end par within font|>}
1912 \Configure{emph}{|<par within font|>\HCode{<emphasis>}}
1913 {\HCode{</emphasis>}|<end par within font|>}
1914 >>>
1915
1916
1917
1918 \<par within font\><<<
1919 \leavevmode\SaveEndP\bgroup
1920 \Configure{HtmlPar}
1921 {\HCode{<!--br role="newline" /-->}}
1922 {\HCode{<!--br role="newline" /-->}}
1923 {}{}%
1924 >>>
1925
1926 \<end par within font\><<<
1927 \egroup \RecallEndP
1928 >>>
1929
1930 %%%%%%%%%%%%%%%%%%%%
1931 \section{Environments}
1932 %%%%%%%%%%%%%%%%%%%%
1933
1934
1935
1936
1937
1938 %%%%%%%%%%%%
1939 \subsection{quote}
1940 %%%%%%%%%%%%
1941
1942 \<latex environments\><<<
1943 \ConfigureEnv{quote}{\ifvmode\IgnorePar\fi\EndP\HCode{<blockquote>}}{\ifvmode\IgnorePar\fi\EndP\HCode{</blockquote>}\par\ShowPar}{}{}
1944 >>>
1945
1946 %%%%%%%%%%%%%
1947 \subsection{Center}
1948 %%%%%%%%%%%%%
1949
1950 \<latex environments\><<<
1951 \ConfigureEnv{center}
1952 {\EndP}{\par \ShowPar} {}{}
1953 \ConfigureList{center}
1954 {\IgnorePar\EndP\HCode{<section role="center"><title/>}\par\ShowPar}
1955 {\IgnorePar\EndP\HCode{</section>}\par\ShowPar}
1956 {} {\par\ShowPar}
1957 >>>
1958
1959 %%%%%%%%
1960 \subsection{Flusshing}
1961 %%%%%%%%%%%%%
1962
1963 \<latex environments\><<<
1964 \ConfigureEnv{flushleft}
1965 {\EndP}{\par \ShowPar} {}{}
1966 \ConfigureEnv{flushright}
1967 {\EndP}{\par \ShowPar} {}{}
1968 \ConfigureList{flushleft}
1969 {\IgnorePar\EndP\HCode{<blockquote role="flushleft">}\par\ShowPar}
1970 {\IgnorePar\EndP\HCode{</blockquote>}\par\ShowPar}
1971 {} {\par\ShowPar}
1972 \ConfigureList{flushright}
1973 {\IgnorePar\EndP\HCode{<blockquote role="flushright">}\par\ShowPar}
1974 {\IgnorePar\EndP\HCode{</blockquote>}\par\ShowPar}
1975 {} {\par\ShowPar}
1976 >>>
1977
1978 %%%%%%%%%%%%%
1979 \subsection{Mini Page}
1980 %%%%%%%%%%%%%
1981
1982 \<latex environments\><<<
1983 \ConfigureEnv{minipage}
1984 {%\IgnorePar\EndP
1985 %\HCode{<note><para role="minipage">}%
1986 {\ifnum 0=`}\fi
1987 }
1988 {\ifnum 0=`{\fi}%
1989 % \EndP\HCode{</para></note>}%
1990 }
1991 {}{}
1992 >>>
1993
1994 The extra braces in the minipage configurations are to allow the
1995 compilation of cases similar to the following one.
1996
1997 \begin{verbatim}
1998 \documentclass{article}
1999 \begin{document}
2000 \begin{tabular}{c}
2001 \begin{minipage}{4in}
2002 \begin{eqnarray}
2003 x & = & y
2004 \end{eqnarray}
2005 \end{minipage}
2006 \end{tabular}
2007 \end{document}
2008 \end{verbatim}
2009
2010
2011
2012
2013 \<latex environments\><<<
2014 \ConfigureEnv{section}
2015 {\IgnorePar\EndP\HCode{<section role="minipage">}}
2016 {\IgnorePar\EndP\HCode{</section>}\ShowPar}
2017 {}{}
2018 >>>
2019
2020 %%%%%%%%%%%%%
2021 \subsection{Tabbing}
2022 %%%%%%%%%%%%%
2023
2024 \<latex environments\><<<
2025
2026 >>>
2027
2028 \subsection{Tabular and Array}
2029
2030 \<latex environments\><<<
2031
2032 >>>
2033
2034 \subsection{Verbatim}
2035
2036 \<latex environments\><<<
2037 \ConfigureEnv{verbatim}
2038 {\ifinner\else \vfill\break\fi
2039 \IgnorePar\EndP\HCode{<literallayout role="verbatim">}\EndNoFonts}
2040 {\NoFonts \ht:special{t4ht=</literallayout>}\ShowPar\par}
2041 {} {}
2042 \ConfigureEnv{verbatim*}
2043 {\ifinner\else \vfill\break\fi
2044 \IgnorePar\EndP\HCode{<literallayout role="verbatim-star">}\EndNoFonts}
2045 {\NoFonts \HCode{</literallayout>}\ShowPar\par}
2046 {} {}
2047 \Configure{verbatim}{\:nbsp}{\a:sp}
2048 >>>
2049
2050 array
2051 tabbing
2052 tabular
2053
2054
2055 %%%%%%%%%%%%%%%%%%%%%%
2056 \subsection{Listings}
2057 %%%%%%%%%%%%%%%%%%%%%%
2058
2059 \<configure docbook listings\><<<
2060 \Log:Note{to ensure proper alignments use
2061 fixed size fonts (see listings.dtx)}
2062 \Configure{listings}
2063 {\ifvmode \IgnorePar\fi \EndP
2064 {\everypar{}\leavevmode}\HCode{<!--l. \the\inputlineno-->}%
2065 \HCode{<pre class="listings">}%
2066 }
2067 {{\everypar{}\leavevmode}\HCode{</pre>}}
2068 {}{}
2069 \Configure{lstinline}
2070 {\HCode{<remark role="lstinline">}}
2071 {\HCode{</remark>}}
2072 >>>
2073
2074 \<configure docbook listings\><<<
2075 \ConfigureEnv{lstlisting}
2076 {\ifvmode \IgnorePar\fi \EndP
2077 \HCode{<!--l. \the\inputlineno-->}%
2078 \HCode{<div class="lstlisting">}%
2079 \bgroup
2080 \Configure{listings}
2081 {{\everypar{}\leavevmode}}
2082 {{\everypar{}\leavevmode}}
2083 {\HCode{<br/>}}{}%
2084 }
2085 {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</div>}}
2086 {} {}
2087 >>>
2088
2089
2090 %%%%%%%%%%%%%%%%%%%%
2091 \section{Paragraphs}
2092 %%%%%%%%%%%%%%%%%%%%
2093
2094
2095 \<tex4ht paragraphs\><<<
2096 \Configure{HtmlPar}
2097 {\EndP\HCode{<!--l. \the\inputlineno--><para>}}
2098 {\EndP\HCode{<!--l. \the\inputlineno--><para>}}
2099 {\HCode{</para>}} {\HCode{</para>}}
2100 >>>
2101
2102
2103 %%%%%%%%%%%%%%%%%%%%
2104 \section{TOCs}
2105 %%%%%%%%%%%%%%%%%%%%
2106
2107
2108 %%%%%%%%%%%%%%%%%%%%
2109 \subsection{Shared}
2110 %%%%%%%%%%%%%%%%%%%%
2111
2112
2113
2114
2115 \<configure docbook tex4ht\><<<
2116 \Configure{TocLink}{\Link{#2}{#3}\EndLink#4}
2117 >>>
2118
2119
2120
2121
2122 \<article tocs\><<<
2123 \Configure{tableofcontents}
2124 {\ifvmode \IgnorePar\fi \EndP\HCode{<toc><tocpart>}}
2125 {\ifvmode \IgnorePar\fi \EndP\HCode{</tocpart></toc><para></para>}}
2126 {}{}{}
2127 >>>
2128
2129
2130 \<report,book tocs\><<<
2131 |<article tocs|>
2132 \ConfigureToc{appendix}
2133 {\HCode{\Hnewline<tocentry role="appendixToc">}}
2134 {\ }{} {\HCode{</tocentry>}}
2135 \ConfigureToc{chapter}
2136 {\HCode{\Hnewline<tocentry role="chapterToc">}}
2137 {\ }{} {\HCode{</tocentry>}}
2138 \ConfigureToc{likechapter}
2139 {} {\HCode{\Hnewline<tocentry role="likechapterToc">}}
2140 {} {\HCode{</tocentry>}}
2141 >>>
2142
2143 \<article tocs\><<<
2144 \ConfigureToc{likeparagraph}
2145 {} {\HCode{\Hnewline<tocentry role="likeparagraphToc">}}
2146 {} {\HCode{</tocentry>}}
2147 \ConfigureToc{likepart}
2148 {} {\HCode{\Hnewline<tocentry role="likepartToc">}}
2149 {} {\HCode{</tocentry>}}
2150 \ConfigureToc{likesection}
2151 {} {\HCode{\Hnewline<tocentry role="likesectionToc">}}
2152 {} {\HCode{</tocentry>}}
2153 \ConfigureToc{likesubparagraph}
2154 {} {\HCode{\Hnewline<tocentry role="likesubparagraphToc">}}
2155 {} {\HCode{</tocentry>}}
2156 \ConfigureToc{likesubsection}
2157 {} {\HCode{\Hnewline<tocentry role="likesubsectionToc">}}
2158 {} {\HCode{</tocentry>}}
2159 \ConfigureToc{likesubsubsection}
2160 {} {\HCode{\Hnewline<tocentry role="likesubsubsectionToc">}}
2161 {} {\HCode{</tocentry>}}
2162 \ConfigureToc{paragraph}
2163 {\HCode{\Hnewline<tocentry role="paragraphToc">}}
2164 {\ }{} {\HCode{</tocentry>}}
2165 \ConfigureToc{part}
2166 {\HCode{\Hnewline<tocentry role="partToc">}}
2167 {\ }{} {\HCode{</tocentry>}}
2168 \ConfigureToc{section}
2169 {\HCode{\Hnewline<tocentry role="sectionToc">}}
2170 {\ }{} {\HCode{</tocentry>}}
2171 \ConfigureToc{subparagraph}
2172 {\HCode{\Hnewline<tocentry role="subparagraphToc">}}
2173 {\ }{} {\HCode{</tocentry>}}
2174 \ConfigureToc{subsection}
2175 {\HCode{\Hnewline<tocentry role="subsectionToc">}}
2176 {\ }{} {\HCode{</tocentry>}}
2177 \ConfigureToc{subsubsection}
2178 {\HCode{\Hnewline<tocentry role="subsubsectionToc">}}
2179 {\ }{} {\HCode{</tocentry>}}
2180 >>>
2181
2182
2183 %%%%%%%%%%%%%%%%%%%%
2184 \subsection{Scr}
2185 %%%%%%%%%%%%%%%%%%%%
2186
2187 \<scrbook tocs\><<<
2188 \ConfigureToc{addchap}
2189 {}
2190 {\HCode{\Hnewline<tocentry role="addchapToc">}}
2191 {}
2192 {\HCode{</tocentry>}}
2193 >>>
2194
2195 %%%%%%%%%%%%%%%%%%%%
2196 \section{Texinfo}
2197 %%%%%%%%%%%%%%%%%%%%
2198
2199
2200
2201 \<configure docbook texinfo\><<<
2202 \ConfigureToc{chapter}
2203 {\HCode{\Hnewline<tocentry role="chapter">}}
2204 {\ }{} {\HCode{</tocentry>}}
2205 \ConfigureToc{appendix}
2206 {\HCode{\Hnewline<tocentry role="appendix">}}
2207 {\ }{} {\HCode{</tocentry>}}
2208 \ConfigureToc{unnumbered}
2209 {\HCode{\Hnewline<tocentry role="unnumbered">}}
2210 {\ }{} {\HCode{</tocentry>}}
2211 \ConfigureToc{numberedsec}
2212 {\HCode{\Hnewline<tocentry role="numberedsec">}}
2213 {\ }{} {\HCode{</tocentry>}}
2214 \ConfigureToc{appendixsec}
2215 {\HCode{\Hnewline<tocentry role="appendixsec">}}
2216 {\ }{} {\HCode{</tocentry>}}
2217 \ConfigureToc{unnumberedsec}
2218 {\HCode{\Hnewline<tocentry role="unnumberedsec">}}
2219 {\ }{} {\HCode{</tocentry>}}
2220 \ConfigureToc{numberedsubsec}
2221 {\HCode{\Hnewline<tocentry role="numberedsubsec">}}
2222 {\ }{} {\HCode{</tocentry>}}
2223 \ConfigureToc{appendixsubsec}
2224 {\HCode{\Hnewline<tocentry role="appendixsubsec">}}
2225 {\ }{} {\HCode{</tocentry>}}
2226 \ConfigureToc{appendixsubsec}
2227 {\HCode{\Hnewline<tocentry role="appendixsubsec">}}
2228 {\ }{} {\HCode{</tocentry>}}
2229 \ConfigureToc{unnumberedsubsec}
2230 {\HCode{\Hnewline<tocentry role="unnumberedsubsec">}}
2231 {\ }{} {\HCode{</tocentry>}}
2232 \ConfigureToc{numberedsubsubsec}
2233 {\HCode{\Hnewline<tocentry role="numberedsubsubse">}}
2234 {\ }{} {\HCode{</tocentry>}}
2235 \ConfigureToc{appendixsubsubsec}
2236 {\HCode{\Hnewline<tocentry role="appendixsubsubse">}}
2237 {\ }{} {\HCode{</tocentry>}}
2238 \ConfigureToc{appendixsubsubsec}
2239 {\HCode{\Hnewline<tocentry role="appendixsubsubse">}}
2240 {\ }{} {\HCode{</tocentry>}}
2241 \ConfigureToc{unnumberedsubsubsec}
2242 {\HCode{\Hnewline<tocentry role="unnumberedsubsub">}}
2243 {\ }{} {\HCode{</tocentry>}}
2244 \Configure{toTocLink}{\Title:Link}{}
2245 >>>
2246
2247
2248
2249 %%%%%%%%%%%%%%%%%%%%
2250 \section{Indexes}
2251 %%%%%%%%%%%%%%%%%%%%
2252
2253
2254
2255 %%%%%%%%%%%%%
2256 \subsection{Article, Report, Book}
2257 %%%%%%%%%%%%%
2258
2259 \<index entry\><<<
2260 \Configure{theindex}
2261 {\let\end:theidx=\empty \HCode{<indexterm>}}
2262 {\HCode{</indexterm>}}
2263 {|<primary index|>%
2264 \def\end:cur{|<end primary index|>\let\end:cur=\empty}%
2265 \DB:index
2266 }
2267 {\end:cur \let\chain:subitem=\empty}
2268 {\chain:subitem |<secondary index|>%
2269 \def\end:cur{|<end secondary index|>\let\end:cur=\empty}%
2270 }
2271 {\end:cur \def\chain:subitem{%
2272 |<new index entry|>|<primary index|>|<end primary index|>}%
2273 \let\chain:subsubitem=\empty
2274 }
2275 {\chain:subsubitem|<tertiary index|>%
2276 \def\end:cur{|<end tertiary index|>\let\end:cur=\empty}%
2277 }
2278 {\end:cur \def\chain:subsubitem{%
2279 |<new index entry|>|<primary index|>|<end primary index|>%
2280 |<secondary index|>|<end secondary index|>}%
2281 }
2282 {}
2283 >>>
2284
2285
2286
2287 \<article, report, book\><<<
2288 \def\DB:index#1\indNum#2{%
2289 \ifnum #2=\index:N
2290 \let\DB:index=\relax #1\long\def\item##1\end{\end}%
2291 \else \expandafter\gob:item \fi
2292 }
2293 \long\def\gob:item#1\item{\DB:index}
2294 \let\indNum=\:gobble
2295 >>>
2296
2297
2298
2299
2300 \<article, report, book\><<<
2301 \HAssign\index:N = 0
2302 \def\comNum#1{\tmp:cnt=}
2303 \let\db:index=\index
2304 \def\index{%
2305 \immediate\openin15=\jobname.ind
2306 \ifeof15 \else
2307 \immediate\closein15
2308 \bgroup
2309 \def\gobble##1{}%
2310 \gHAdvance\index:N by 1
2311 |<index entry|>%
2312 \leavevmode \let\par=\empty
2313 \input{\jobname.ind}%
2314 \egroup
2315 \fi
2316 \db:index}
2317 >>>
2318
2319
2320 %%%%%%%%%%%%%%%%%%%%
2321 \subsection{index}
2322 %%%%%%%%%%%%%%%%%%%%
2323
2324
2325 \<configure docbook latex\><<<
2326 \Configure{idxmake}{\Beforeentry}
2327 >>>
2328
2329
2330 \<ams art,proc,book\><<<
2331 |<index throug printindex|>
2332 >>>
2333
2334
2335 \<configure docbook amsmidx\><<<
2336 |<index throug printindex|>
2337 >>>
2338
2339 \<configure docbook makeidx\><<<
2340 |<index throug printindex|>
2341 >>>
2342
2343
2344 \<configure docbook index\><<<
2345 |<index throug printindex|>
2346 >>>
2347
2348 \<configure docbook multind\><<<
2349 |<index throug printindex|>
2350 >>>
2351
2352
2353 \<index throug printindex\><<<
2354 \def\:temp{\HCode{<indexterm role="printindex" />}}
2355 \HLet\printindex\:temp
2356 \expandafter\ifx \csname db:index\endcsname\realx
2357 \let\db:index=\index
2358 \fi
2359 \def\index{\bgroup
2360 \HRestore\printindex
2361 \def\gobble##1{}%
2362 \gHAdvance\index:N by 1
2363 |<index entry|>%
2364 \leavevmode \let\par=\empty
2365 \printindex
2366 \egroup \db:index}
2367 \def\comNum#1{\tmp:cnt=}
2368 \def\brange#1{\HCode{<remark role="start">}\Link{to-#1}{from-#1}\EndLink
2369 \HCode{</remark>}}
2370 \def\erange#1{\HCode{<remark role="to">}\Link{from-#1}{to-#1}\EndLink
2371 \HCode{</remark>}}
2372 >>>
2373
2374
2375
2376 \<\><<<
2377 \def\comNum{%
2378 \def\:tempa{%
2379 \ifx ,\:temp \def\:tempa####1{\tmp:cnt=}%
2380 \else \ifx {\:temp \def\:tempa####1{\tmp:cnt=####1}%
2381 \iffalse }\fi
2382 \else \def\:tempa{\tmp:cnt=}%
2383 \fi\fi \:tempa}%
2384 \futurelet\:temp\:tempa}
2385 >>>
2386
2387
2388 %%%%%%%%%%%%%%%%%%%%
2389 \subsection{theindex}
2390 %%%%%%%%%%%%%%%%%%%%
2391
2392
2393 \<article, report, book\><<<
2394 \Configure{theindex}
2395 {\special{t4ht@[}}
2396 {\special{t4ht@]}}
2397 {}{}{}{}{}{}{}
2398 >>>
2399
2400
2401
2402 \<configure docbook makeidx\><<<
2403 \Configure{see}
2404 {\csname end:cur\endcsname \HCode{<seealso role="see">}}
2405 {\HCode{</seealso>}%
2406 \futurelet\:next\remove:comma}
2407 \def\remove:comma{\ifx ,\:next \expandafter\:gobble\fi}
2408 >>>
2409
2410
2411
2412 \<primary index\><<<
2413 \HCode{<primary>}%
2414 >>>
2415
2416 \<end primary index\><<<
2417 \HCode{</primary>}\hfil\break
2418 >>>
2419
2420 \<secondary index\><<<
2421 \HCode{<secondary>}%
2422 >>>
2423
2424 \<end secondary index\><<<
2425 \HCode{</secondary>}\hfil\break
2426 >>>
2427
2428 \<tertiary index\><<<
2429 \HCode{<tertiary>}%
2430 >>>
2431
2432 \<end tertiary index\><<<
2433 \HCode{</tertiary>}\hfil\break
2434 >>>
2435
2436
2437
2438
2439
2440 %%%%%%%%%%%%%%%%%%%%
2441 \subsection{splitindex}
2442 %%%%%%%%%%%%%%%%%%%%
2443
2444 \<configure docbook splitidx\><<<
2445 \let\db:sindex=\sindex
2446 \def\:sindex{\bgroup
2447 \HRestore\printindex
2448 \def\gobble##1{}%
2449 \gHAdvance\index:N by 1
2450 \leavevmode \let\par=\empty
2451 \edef\:temp{\LikeRef{printindex}}\expandafter\printindex\:temp
2452 \egroup \db:sindex}
2453 >>>
2454
2455 \<configure docbook splitidx\><<<
2456 \def\:temp{%
2457 \def\:tempa{%
2458 \HCode{<indexterm role="printindex\ifx *\:temp -star\fi" />}%
2459 \ifx *\:temp \Tag{printindex}{*}\expandafter\:gobble\fi
2460 }%
2461 \futurelet\:temp\:tempa
2462 }
2463 \HLet\printindex\:temp
2464 >>>
2465
2466 \<configure docbook splitidx\><<<
2467 \def\sindex{%
2468 \def\:tempa{%
2469 \ifx [\:temp
2470 \def\:temp[####1]{\def\ind:ext{####1}\:sindex[####1]}%
2471 \expandafter\:temp
2472 \else \expandafter\:sindex \fi
2473 }%
2474 \futurelet\:temp\:tempa
2475 }
2476 \let\o:@@printindex:=\@@printindex
2477 \def\@@printindex[#1][#2]{%
2478 \def\:temp{#1}%
2479 \ifx \:temp\ind:ext \o:@@printindex:[#1][#2]\fi}
2480 >>>
2481
2482
2483
2484
2485 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2486 \section{Color}
2487 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2488
2489
2490 \<configure docbook color\><<<
2491 \Configure{color}{\:gobble}
2492 \Configure{HColor:gray}{%
2493 \int:of\:tempa{255}{#1}%
2494 \Configure{HColor}{}{rgb(\:tempa,\:tempa,\:tempa)}%
2495 }
2496 \Configure{HColor:rgb}{%
2497 \int:of\:tempa{255}{#1}%
2498 \int:of\:tempb{255}{#2}%
2499 \int:of\:tempc{255}{#3}%
2500 \Configure{HColor}{}{rgb(\:tempa,\:tempb,\:tempc)}%
2501 }
2502 \Configure{HColor:cmyk}{%
2503 \int:of\:Cyan{255}{#1}%
2504 \int:of\:Magenta{255}{#2}%
2505 \int:of\:Yellow{255}{#3}%
2506 \int:of\:Black{255}{#4}%
2507 \:cmyk\:tempa\:Cyan
2508 \:cmyk\:tempb\:Magenta
2509 \:cmyk\:tempc\:Yellow
2510 \Configure{HColor}{}{rgb(\:tempa,\:tempb,\:tempc)}%
2511 }
2512 |<HColor util|>
2513 >>>
2514
2515
2516 \<HColor util\><<<
2517 \def\int:of#1#2#3{%
2518 \tmp:dim=#3pt \tmp:dim=#2\tmp:dim
2519 \edef\:temp{\tmp:cnt\the\tmp:dim//}%
2520 \def#1##1//{}\afterassignment#1\:temp
2521 \edef#1{\the\tmp:cnt}%
2522 }
2523 >>>
2524
2525
2526 \begin{verbatim}
2527 cmyk -> gray
2528 (1 - 0.299c - 0.587m - 0.114y)(1 - k)
2529
2530 cmyk -> rgb
2531 Red = 1-minimum(1,Cyan *(1-Black)+Black)
2532 Green = 1-minimum(1,Magenta*(1-Black)+Black)
2533 Blue = 1-minimum(1,Yellow *(1-Black)+Black)
2534 \end{verbatim}
2535
2536
2537
2538 \<HColor util\><<<
2539 \def\:cmyk#1#2{%
2540 \tmp:cnt=255 \advance\tmp:cnt by -\:Black
2541 \multiply\tmp:cnt by#2 \advance\tmp:cnt by \:Black
2542 \advance\tmp:cnt by -255 \tmp:cnt=-\tmp:cnt
2543 \ifnum \tmp:cnt<0 \tmp:cnt=0 \fi
2544 \edef#1{\the\tmp:cnt}%
2545 }
2546 >>>
2547
2548
2549
2550
2551
2552
2553 %%%%%%%%%%%%%%%%%%%%
2554 \section{Other}
2555 %%%%%%%%%%%%%%%%%%%%
2556
2557
2558 \<latex ltoutenc\><<<
2559 \Configure{textcircled}
2560 {\@use@text@encoding \@curr@enc c}
2561 {\leavevmode \special{t4ht@+\string&\#x00A9;}c}
2562 {\@use@text@encoding \@curr@enc \scshape r}
2563 {\leavevmode \special{t4ht@+\string&\#x00AE;}r}
2564 {}
2565 >>>
2566
2567
2568 \<configure docbook latex\><<<
2569 |<latex ltoutenc|>
2570 \def\:temp{LaTeX}
2571 \HLet\LaTeX\:temp
2572 >>>
2573
2574 \<configure docbook amsmath\><<<
2575 \def\:temp{{\protect\AmSfont AMS}}
2576 \HLet\AmS\:temp
2577 >>>
2578
2579
2580 \<latex, plain\><<<
2581 |<unicode space|>
2582 >>>
2583
2584 \<unicode space\><<<
2585 \def\:nbsp{\HCode{\string&}\HChar{-35}\HCode{x00A0;}}%
2586 >>>
2587
2588
2589 \<configure docbook latex\><<<
2590 \Configure{footnotetext}
2591 {\HCode{<footnote><para>}\setbox\tmp:bx=\hbox\bgroup\let\@makefnmark\relax}
2592 {\egroup}%
2593 {\HCode{</para></footnote>}}
2594 \Configure{footnotemark}
2595 {\setbox\tmp:bx=\hbox\bgroup}
2596 {\egroup}
2597 \ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi
2598 >>>
2599
2600
2601 Sub and super scripts
2602
2603
2604 \<configure docbook latex\><<<
2605 \Configure{textsuperscript}
2606 {\HCode{<superscript>}}
2607 {\HCode{</superscript>}}
2608
2609 \Configure{textsubscript}
2610 {\HCode{<subscript>}}
2611 {\HCode{</subscript>}}
2612 >>>
2613
2614
2615
2616 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2617 \section{Underline and Overline}
2618 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2619
2620
2621
2622 \<configure docbook latex\><<<
2623 \Configure{underline}
2624 {\HCode{<emphasis role="underline">}\:gobble}
2625 {\HCode{</emphasis>}}
2626 \Configure{overline}
2627 {\HCode{<emphasis role="overline">}}
2628 {\HCode{</emphasis>}}
2629 >>>
2630
2631 \<configure docbook plain\><<<
2632 \Configure{underline}
2633 {\HCode{<emphasis role="underline">}\hbox\bgroup \:gobble}
2634 {\egroup \HCode{</emphasis>}}
2635 \Configure{overline}
2636 {\HCode{<emphasis role="overline">}}
2637 {\HCode{</emphasis>}}
2638 >>>
2639
2640
2641
2642
2643
2644
2645
2646 \<configure docbook-mml latex\><<<
2647 \Configure{overline}
2648 {\bgroup\ifmathml |<mathml overline|>\else
2649 \HCode{<emphasis role="overline">}\fi}
2650 {\ifmathml |<end mathml overline|>\else \HCode{</emphasis>}\fi\egroup}
2651 \Configure{underline}
2652 {\bgroup
2653 \ifmathml |<mathml underline|>%
2654 \else |<nomath underline|>\HCode{<emphasis role="underline">}\fi}
2655 {\ifmathml |<end mathml underline|>\else \HCode{</emphasis>}\fi \egroup}
2656 >>>
2657
2658
2659 \<mathml latex\><<<
2660 |<und/ov-erline|>
2661 >>>
2662
2663 \<mathml plain\><<<
2664 |<und/ov-erline|>
2665 >>>
2666
2667
2668 \<und/ov-erline\><<<
2669 \Configure{overline}
2670 {\bgroup |<mathml overline|>}
2671 {|<end mathml overline|>\egroup}
2672 \Configure{underline}
2673 {\bgroup \ifmmode |<mathml underline|>\else
2674 |<nomath underline|>\fi}
2675 {|<end mathml underline|>\egroup}
2676 >>>
2677
2678 \<nomath underline\><<<
2679 \expandafter\everymath
2680 \expandafter{\expandafter\everymath
2681 \expandafter{\the\everymath}}%
2682 \let\o::@underline:\o:@@underline:
2683 \def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
2684 >>>
2685
2686
2687 \<mathml overline\><<<
2688 \HCode{<\a:mathml mover accent="false"\Hnewline
2689 \mml:class="mml-overline"><\a:mathml mrow>}%
2690 >>>
2691
2692 \<end mathml overline\><<<
2693 \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
2694 accent="true">&\#x00AF;</\a:mathml mo>%
2695 </\a:mathml mover>}%
2696 >>>
2697
2698 \verb'&#x00AF;' is the code of \verb'&OverBar;'
2699
2700
2701 \<mathml underline\><<<
2702 \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
2703 \mml:class="mml-underline"><\a:mathml mrow>}%
2704 >>>
2705
2706 \<end mathml underline\><<<
2707 \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
2708 accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
2709 >>>
2710
2711
2712 \verb'&#x0332;' is the code of \verb'&UnderBar;'
2713
2714
2715 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2716 \subsection{Ulem}
2717 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2718
2719
2720 \<configure docbook ulem\><<<
2721 \Configure{uline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2722 \Configure{uuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2723 \Configure{sout}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2724 \Configure{xout}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2725 \Configure{uwave}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2726 \Configure{dashuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2727 \Configure{dotuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
2728 >>>
2729
2730 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2731 \chapter{AMS}
2732 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2733
2734
2735 %%%%%%%%%%%%%%%%%%%%
2736 \section{Root}
2737 %%%%%%%%%%%%%%%%%%%%
2738
2739
2740 \<configure docbook amsart\><<<
2741 |<article prologue|>
2742 |<sectioning utilities|>
2743 |<ams maketitle|>
2744 |<ams article,report maketitle|>
2745 |<ams art,proc,book|>
2746 |<ams art,proc|>
2747 >>>
2748
2749 \<configure docbook amsbook\><<<
2750 |<article prologue|>
2751 |<sectioning utilities|>
2752 |<ams maketitle|>
2753 |<ams article,report maketitle|>
2754 |<ams art,proc,book|>
2755 |<ams book|>
2756 >>>
2757
2758 \<configure docbook amsproc\><<<
2759 |<article prologue|>
2760 |<sectioning utilities|>
2761 |<ams maketitle|>
2762 |<ams article,report maketitle|>
2763 |<ams art,proc,book|>
2764 |<ams art,proc|>
2765 >>>
2766
2767 \<configure docbook-mml amsart\><<<
2768 |<ams dtd|>
2769 >>>
2770
2771 \<ams dtd\><<<
2772 \:CheckOption{css} \if:Option
2773 \:CheckOption{dtd} \if:Option
2774 \Configure{VERSION}
2775 {\HCode{<?xml version="1.0"?>\Hnewline}}
2776 \Configure{DOCTYPE}
2777 {\HCode{<!DOCTYPE article |<doctype 5.0|> >}}
2778 \Configure{XML-STYLESHEET}
2779 {\HCode{<?xml-stylesheet type="text/css" href="\jobname.css"?>
2780 \Hnewline}}
2781 \else
2782 \Configure{VERSION}
2783 {\HCode{<?xml version="1.0"?>\Hnewline}}
2784 \Configure{DOCTYPE}
2785 {\HCode{<!DOCTYPE article |<doctype 5.0|> >}}
2786 \Configure{XML-STYLESHEET}
2787 {\HCode{<?xml-stylesheet type="text/css" href="\jobname.css"?>
2788 \Hnewline}}
2789 \fi
2790 \else
2791 \Configure{VERSION}
2792 {\HCode{<?xml version="1.0"?>\Hnewline}}
2793 \Configure{DOCTYPE}
2794 {\HCode{<!DOCTYPE article |<doctype 5.0|> >\Hnewline }}
2795 \fi
2796 >>>
2797
2798
2799
2800 \<configure docbook Preamble\><<<
2801 \Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
2802 \:CheckOption{no-DOCTYPE} \if:Option
2803 \Configure{PROLOG}{VERSION,*XML-STYLESHEET}
2804 \fi
2805 >>>
2806
2807
2808
2809 \<configure docbook-mml amsbook\><<<
2810 |<ams dtd|>
2811 >>>
2812
2813 \<configure docbook-mml amsproc\><<<
2814 |<ams dtd|>
2815 >>>
2816
2817
2818
2819 %%%%%%%%%%%%%%%%%%%%
2820 \section{Css}
2821 %%%%%%%%%%%%%%%%%%%%
2822
2823 \<configure docbook tex4ht\><<<
2824 |<cascade style sheets|>
2825 \Configure{Preamble}
2826 {|<default cascade style sheets|>} {}
2827 \Configure{CssFile}{\jobname.css}
2828 {/* \aa:CssFile\space from \jobname.tex (TeX4ht) */}
2829 \Configure{Needs}{l.
2830 \the\inputlineno\space--- needs --- #1 ---}
2831 \Configure{Needs-}{l.
2832 \the\inputlineno\space--- needs --- #1 ---}
2833 >>>
2834
2835 \<default cascade style sheets\><<<
2836 {\ifdim \lastskip>\z@ \unskip\fi \IgnorePar\parindent\z@
2837 \leavevmode}%
2838 \immediate\write-1{--- file \aa:CssFile\space ---}%
2839 \ht:special{t4ht>\aa:CssFile}\ht:special{t4ht=\Hnewline /* css.sty */}%
2840 \ht:special{t4ht<\aa:CssFile}%
2841 >>>
2842
2843
2844 \<cascade style sheets\><<<
2845 \ScriptCommand{\CssFile}{%
2846 \immediate\write-1{--- file \aa:CssFile\space ---}%
2847 \def\FontSize##1##2{\:Context{##1}\ht:special{t4ht;\%##2}\%}%
2848 \def\FontName##1{\:Context{##1}\ht:special{t4ht;=}}%
2849 \def\:Context##1{\ht:special{t4ht>\jobname.tmp}##1\ht:special
2850 {t4ht>\aa:CssFile}}%
2851 \ht:special{t4ht>\jobname.tmp}\ht:special{t4ht>\aa:CssFile}\bb:CssFile
2852 \hfil\break\NoFonts}{\EndNoFonts
2853 \ht:special{t4ht<\aa:CssFile}\ht:special{t4ht<\jobname.tmp}}
2854 \let\Css:File|=\CssFile
2855 \def\CssFile{\futurelet\:temp\Css:Fl}
2856 \def\Css:Fl{\ifx [\:temp \expandafter\Css:fl
2857 \else \expand:after{\Css:File \space}\fi}
2858 \def\Css:fl[#1]{\Css:File\space \css:files #1,,|<par del|>}
2859 \def\css:files#1,#2|<par del|>{\def\:temp{#1}\ifx \:temp\empty
2860 \else \def\:temp{\in:css#1.|<par del|>\css:files#2,,|<par del|>}\fi
2861 \:temp }
2862 \def\in:css#1.#2|<par del|>{\def\:temp{#2}\ifx \:temp\empty \input #1.css
2863 \else \inc:ss#1.#2|<par del|>\fi}
2864 \def\inc:ss#1.|<par del|>{\input #1 }
2865 \NewConfigure{CssFile}[2]{\def\aa:CssFile{#1}\def\bb:CssFile{#2}}
2866 >>>
2867
2868
2869
2870 \<cascade style sheets\><<<
2871 \def\Css#1{{\def\:temp{\Configure{Needs}}%
2872 \expandafter\:temp\expandafter{\aa:Css}\Needs{#1}}}
2873 >>>
2874
2875
2876 \<configure docbook tex4ht\><<<
2877 \ifx \a:FontCss:\:UnDef
2878 \Configure{FontCss}{Font\string_Css##1}
2879 {Font\string_Css\string_Plus\space##1}
2880 \fi
2881 \expandafter\ifx \csname aa:Css\endcsname\relax
2882 \Configure{Css}{Css: ##1}
2883 \fi
2884 >>>
2885
2886 %%%%%%%%%%%%%%%%%%%%
2887 \section{Theorem}
2888 %%%%%%%%%%%%%%%%%%%%
2889
2890
2891 \<ams art,proc,book\><<<
2892 \ifx \deferred@thm@head\:UnDef\else
2893 |<shared ams thm/cls|>
2894 \fi
2895 >>>
2896
2897 \<configure docbook amsthm\><<<
2898 |<shared ams thm/cls|>
2899 >>>
2900
2901 \<shared ams thm/cls\><<<
2902 \Configure{proof}
2903 {\IgnorePar\EndP\HCode{<blockquote role="proof"><title>}\IgnorePar}
2904 {\ifvmode \IgnorePar\fi\EndP\HCode{</title>}\ShowPar\par}
2905 {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
2906 >>>
2907
2908
2909
2910
2911 %%%%%%%%%%%%%%%%%%%%
2912 \section{Title Page}
2913 %%%%%%%%%%%%%%%%%%%%
2914
2915 \<ams maketitle\><<<
2916 \Configure{maketitle}
2917 {\HCode{<articleinfo>}}
2918 {\HCode{</articleinfo>}}
2919 {\HCode{<title>}}{\HCode{</title>}}
2920 \Configure{thanks author date and} {}{}
2921 {\HCode{<author><othername>}}
2922 {\HCode{</othername></author>}}
2923 {\HCode{<date>}}
2924 {\HCode{</date>}}
2925 {}{}
2926 >>>
2927
2928
2929 \<ams article,report maketitle\><<<
2930 \Configure{maketitle}
2931 {\ifvmode \IgnorePar\fi\EndP
2932 \HCode{<section role="maketitle"><title />}%
2933 \ConfigureEnv{center}
2934 {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}
2935 {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}%
2936 }
2937 {\ifvmode \IgnorePar\fi\EndP \HCode{</section>}}
2938 {\ifvmode \IgnorePar\fi\EndP \HCode{<para role="title">}}
2939 {\ifvmode \IgnorePar\fi\HCode{</para>}}
2940 \Configure{thanks author date and}
2941 {\par\IgnorePar\EndP \HCode{<note role="thanks">}\par\ShowPar}
2942 {\ifvmode \IgnorePar\fi\EndP \HCode{</note>}}
2943 {\ifvmode \IgnorePar\fi\EndP
2944 |<para role|>\HCode{<para role="authorgroup"><author><personname><othername>}}
2945 {\ifvmode \IgnorePar\fi
2946 \HCode{</othername></personname></author><!--/author--></para><!--/authorgroup-->}}
2947 {\ifvmode \IgnorePar\fi\EndP \HCode{<para role="date">}}
2948 {\ifvmode \IgnorePar\fi \HCode{</para><!--/date-->}}
2949 {\ifvmode \IgnorePar\fi\lowercase{\HCode{</othername></personname></author>
2950 <!--/author--><!--author--><author><personname><othername>}}}
2951 {}
2952 >>>
2953
2954 \<ams article,report maketitle\><<<
2955 \Configure{addresses}
2956 {\ifvmode \IgnorePar\fi \EndP
2957 \HCode{<note role="addresses">}\ShowPar}
2958 {\ifvmode \IgnorePar\fi \EndP
2959 \HCode{</note><!--addresses-->}}
2960 \Configure{address}
2961 {\HCode{<note role="address-title"><para>}}
2962 {\ifvmode \IgnorePar\fi
2963 \HCode{</para></note><!--address-title--><note role="address"><para>}}
2964 {\HCode{</para></note><!--address-->}}
2965 \Configure{curraddr}
2966 {\HCode{<para role="curraddr-title">}}
2967 {\ifvmode \IgnorePar\fi
2968 \HCode{</para><!--curraddr-title--><para role="curraddr">}}
2969 {\HCode{</para><!--curraddr-->}}
2970 \Configure{email}
2971 {\HCode{<note role="email-title"><para>}}
2972 {\ifvmode \IgnorePar\fi
2973 \HCode{</para></note><!--email-title--><note role="email"><para>}}
2974 {\HCode{</para></note><!--email-->}}
2975 \Configure{urladdr}
2976 {\HCode{<para role="urladdr-title">}}
2977 {\ifvmode \IgnorePar\fi
2978 \HCode{</para><!--urladdr-title--><para role="urladdr">}}
2979 {\HCode{</para><!--urladdr-->}}
2980 >>>
2981
2982 \<ams art,proc,book\><<<
2983 \ConfigureEnv{abstract}
2984 {\ifvmode \IgnorePar\fi \EndP}
2985 {\ifvmode \IgnorePar\fi \EndP}
2986 {}{}
2987 \ConfigureList{abstract}
2988 {\ifvmode \IgnorePar\fi \EndP
2989 \HCode{<note role="abstract">}\IgnorePar}
2990 {\ifvmode \IgnorePar\fi \EndP
2991 \HCode{</note><!--abstract-->}\ShowPar}
2992 {\IgnorePar\par\HCode{<title>}}
2993 {\HCode{</title>}\ShowPar\par}
2994 \Configure{setabstract}
2995 {\ifvmode \IgnorePar \fi \EndP}
2996 {\ifvmode \IgnorePar \fi \EndP}
2997 >>>
2998
2999 \<ams art,proc,book\><<<
3000 \Configure{subjclass}
3001 {\par\IgnorePar\HCode{<note role="subjclass">}\par\ShowPar}
3002 {\ifvmode \IgnorePar \fi\EndP\HCode{</note><!--subjclass-->}}
3003 \Configure{keywords}
3004 {\par\IgnorePar\EndP \HCode{<note role="keywords">}\par\ShowPar}
3005 {\ifvmode \IgnorePar \fi\EndP\HCode{</note>}}
3006 >>>
3007
3008
3009
3010 \<ams book\><<<
3011 \Configure{translators}
3012 {\par\IgnorePar\EndP \HCode{<note role="translators">}\par\ShowPar}
3013 {\ifvmode \IgnorePar \fi\EndP \HCode{</note>}}
3014 {\HCode{<note role="translator"><para>}}
3015 {\HCode{</para></note>}}
3016 >>>
3017
3018 \<ams art,proc\><<<
3019 \Configure{translators}
3020 {\par\IgnorePar\EndP \HCode{<para role="translators">}\par\ShowPar}
3021 {\ifvmode \IgnorePar \fi\EndP \HCode{</para>}}
3022 {\HCode{<note role="translator"><para>}}
3023 {\HCode{</para></note>}}
3024 >>>
3025
3026 %%%%%%%%%%%%%%%%%%
3027 \section{Sections}
3028 %%%%%%%%%%%%%%%%%%
3029
3030
3031
3032
3033
3034 \<configure docbook amsart\><<<
3035 |<amsart + article sec|>
3036 >>>
3037
3038 \<configure docbook amsbook\><<<
3039 |<amsart + article sec|>
3040 >>>
3041
3042
3043 \<configure docbook amsproc\><<<
3044 |<amsart + article sec|>
3045 >>>
3046
3047
3048
3049
3050 \<amsart + article sec\><<<
3051 \Configure{part}
3052 {\OpenDiv{part}} {\CloseDiv{part}}
3053 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3054 \Configure{section}
3055 {\OpenDiv{section}} {\CloseDiv{section}}
3056 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3057 \Configure{subsection}
3058 {\OpenDiv{subsection}} {\CloseDiv{subsection}}
3059 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3060 \Configure{subsubsection}
3061 {\OpenDiv{subsubsection}} {\CloseDiv{subsubsection}}
3062 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3063 \Configure{paragraph}
3064 {\OpenDiv{paragraph}} {\CloseDiv{paragraph}}
3065 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3066 \Configure{subparagraph}
3067 {\OpenDiv{subparagraph}} {\CloseDiv{subparagraph}}
3068 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3069 |<sectioning utilities|>
3070 >>>
3071
3072
3073 \<amsart + article sec\><<<
3074 \ConfigureMark{section}
3075 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
3076 \else \HCode{<abbrev role="title-mark">}\thesection
3077 \HCode{</abbrev>}\fi }
3078 \ConfigureMark{subsection}
3079 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
3080 \else \HCode{<abbrev role="title-mark">}\thesubsection
3081 \HCode{</abbrev>}\fi }
3082 \ConfigureMark{subsubsection}
3083 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
3084 \else \HCode{<abbrev role="title-mark">}\thesubsubsection
3085 \HCode{</abbrev>}\fi }
3086 >>>
3087
3088 %%%%%%%%%%%%%%%%%%%%%%%%%
3089 \subsection{End Points}
3090 %%%%%%%%%%%%%%%%%%%%%%%%%
3091
3092
3093
3094 \<amsart + article sec\><<<
3095 \Configure{endsection}
3096 {likesection,chapter,likechapter,appendix,part,likepart}
3097 \Configure{endsubsection}
3098 {likesubsection,section,likesection,chapter,%
3099 likechapter,appendix,part,likpart}
3100 \Configure{endsubsubsection}
3101 {likesubsubsection,subsection,likesubsection,section,%
3102 likesection,chapter,likechapter,appendix,part,likpart}
3103 \Configure{endparagraph}
3104 {likeparagraph,subsubsection,likesubsubsection,subsection,%
3105 likesubsection,section,%
3106 likesection,chapter,likechapter,appendix,part,likpart}
3107 \Configure{endsubparagraph}
3108 {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
3109 subsection,likesubsection,section,%
3110 likesection,chapter,likechapter,appendix,part,likpart}
3111 \ifx \part\:UnDef \else
3112 \Configure{endpart}{likepart}
3113 \fi
3114 >>>
3115
3116 %%%%%%%%%%%%%%%%%%%%
3117 \section{amsmath}
3118 %%%%%%%%%%%%%%%%%%%%
3119
3120
3121
3122 \<configure docbook-mml amsmath\><<<
3123 \Configure{equation}
3124 {\ifvmode \IgnorePar\fi \EndP
3125 \HCode{<blockquote role="equation">}%
3126 \Configure{gather}
3127 {\HCode{<mtable\Hnewline
3128 class="equation"><mtr><mtd>}\IgnorePar }
3129 {\HCode{</mtd></mtr></mtable>}}
3130 {}
3131 {}
3132 {\ifnum\HCol=2 \IgnorePar
3133 \HCode{</mtd><mtd>}\fi }
3134 {}
3135 }
3136 {\ifvmode \IgnorePar\fi\EndP \HCode{<note role="equation"><para>}}
3137 {\ifvmode \IgnorePar\fi\EndP \HCode{</para></note></blockquote>}\par
3138 \ShowPar}
3139
3140 % Mar 18, 2013 at 9:28 PM, Matteo Gamboz <[email protected]>
3141 % wrote that starred equation caused an forgotten endgroup error, hence
3142 % the following fix. CVR Mar 22, 2013.
3143
3144 \Configure{equation*}
3145 {\ifvmode \IgnorePar\fi \EndP
3146 \HCode{<blockquote role="equation">}%
3147 \Configure{gather}
3148 {\HCode{<mtable\Hnewline
3149 class="equation"><mtr><mtd>}\IgnorePar }
3150 {\HCode{</mtd></mtr></mtable>}}
3151 {}
3152 {}
3153 {}
3154 {}
3155 }
3156 {\ifvmode \IgnorePar\fi\EndP \HCode{</blockquote>}\par
3157 \ShowPar}
3158 >>>
3159
3160
3161 \<configure docbook-mml amsmath\><<<
3162 \ConfigureEnv{align*}
3163 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3164 {\ifmmode\else \par\ShowPar\fi} {}{}
3165 \ConfigureEnv{alignat*}
3166 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3167 {\ifmmode\else \par\ShowPar\fi}{}{}
3168 \ConfigureEnv{alignat}
3169 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3170 {\ifmmode\else \par\ShowPar\fi}{}{}
3171 \ConfigureEnv{align}
3172 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3173 {\ifmmode\else \par\ShowPar\fi}{}{}
3174 \ConfigureEnv{eqxample}
3175 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3176 {\ifmmode\else \par\ShowPar\fi}{}{}
3177 \ConfigureEnv{flalign*}
3178 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3179 {\ifmmode\else \par\ShowPar\fi}{}{}
3180 \ConfigureEnv{flalign}
3181 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3182 {\ifmmode\else \par\ShowPar\fi}{}{}
3183 \ConfigureEnv{gather}
3184 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3185 {\ifmmode\else \par\ShowPar\fi}{}{}
3186 \ConfigureEnv{gather*}
3187 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3188 {\ifmmode\else \par\ShowPar\fi}{}{}
3189 \ConfigureEnv{gathered}
3190 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3191 {\ifmmode\else \par\ShowPar\fi}{}{}
3192 \ConfigureEnv{matrix}
3193 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3194 {\ifmmode\else \par\ShowPar\fi}{}{}
3195 \ConfigureEnv{xalignat*}
3196 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3197 {\ifmmode\else \par\ShowPar\fi}{}{}
3198 \ConfigureEnv{xalignat}
3199 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3200 {\ifmmode\else \par\ShowPar\fi}{}{}
3201 \ConfigureEnv{xxalignat}
3202 {\ifmmode\else \ifvmode\else \IgnorePar\fi \EndP\fi}
3203 {\ifmmode\else \par\ShowPar\fi}{}{}
3204 >>>
3205
3206
3207
3208
3209 \<configure docbook amsmath\><<<
3210 \ConfigureEnv{subequations}
3211 {\ifvmode \IgnorePar\fi \EndP
3212 \HCode{<blockquote role="subequations">}%
3213 }
3214 {\ifvmode \IgnorePar\fi\EndP \HCode{</blockquote>}\par
3215 \ShowPar}
3216 {}{}
3217 >>>
3218
3219 \<configure docbook-math amsmath\><<<
3220 \Configure{equation}
3221 {\ifmmode\else\par \IgnorePar\fi \EndP
3222 \HCode{<blockquote role="equation">}\IgnorePar
3223 }
3224 {\ifvmode \IgnorePar\fi\EndP\HCode{<note role="equation"><para>}}
3225 {\HCode{</para></note></blockquote>}}
3226 \Configure{equation*}
3227 {\ifmmode\else\par \IgnorePar\fi \EndP
3228 \HCode{<blockquote role="equation-star">}\IgnorePar
3229 }
3230 {\ifmmode\else\par \IgnorePar\fi \EndP
3231 \HCode{</blockquote>}}
3232 >>>
3233
3234
3235 \<configure docbook-math amsmath\><<<
3236 \def\:tempc#1#2{%
3237 \ConfigureEnv{#1}
3238 {\par\IgnorePar\EndP\HCode{<equation
3239 role="#1"><mathphrase>}\Picture*[]{}}
3240 {\EndPicture\EndP\HCode{</mathphrase></equation>}\par}
3241 {} {}}
3242 \:tempc{align}{align}
3243 \:tempc{alignat}{alignat}
3244 \:tempc{xalignat}{xalignat}
3245 \:tempc{xxalignat}{xxalignat}
3246 \:tempc{flalign}{flalign}
3247 \:tempc{align*}{align-star}
3248 \:tempc{alignat*}{alignat-star}
3249 \:tempc{xalignat*}{xalignat-star}
3250 \:tempc{flalign*}{flalign-star}
3251 >>>
3252
3253 %%%%%%%%%%%%%%%%%
3254 \chapter{Plain}
3255 %%%%%%%%%%%%%%%%%
3256
3257
3258 \<latex, plain\><<<
3259 \Configure{centerline}
3260 {\IgnorePar\EndP\HCode{<blockquote
3261 role="centerline"><title></title>}\ShowPar\par}
3262 {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
3263 \Configure{leftline}
3264 {\IgnorePar\EndP\HCode{<blockquote
3265 role="leftline"><title></title>}\ShowPar\par}
3266 {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
3267 \Configure{rightline}
3268 {\ifvmode \IgnorePar \fi \EndP \HCode{<blockquote
3269 role="rightline"><title></title>}\ShowPar\par}
3270 {\ifvmode \IgnorePar \fi \EndP \HCode{</blockquote>}\ShowPar\par}
3271 >>>
3272
3273
3274 %%%%%%%%%%%%%%%%%
3275 \chapter{TeXinfo}
3276 %%%%%%%%%%%%%%%%%
3277
3278
3279
3280
3281 \<configure docbook texinfo\><<<
3282 |<sectioning utilities|>
3283 \Configure{pdfurl}
3284 {\let\sv:Link=\Link \let\sv:EndLink=\EndLink
3285 \let\Link=\U:Link
3286 \def\EndLink{\EndU:Link\let\Link=\sv:Link \let\EndLink=\sv:EndLink}}
3287 %\LinkCommand\U:Link{ulink, url,,,,}
3288 \LinkCommand\U:Link{link, xlink:href,,,,}
3289 >>>
3290
3291
3292
3293
3294 \<configure docbook texinfo\><<<
3295 \Configure{group}
3296 {\IgnorePar\EndP\HCode{<blockquote
3297 role="group"><title></title>}\ShowPar\par}
3298 {\IgnorePar\EndP\HCode{</blockquote>}\ShowPar\par}
3299 \Configure{multitable}
3300 {\IgnorePar \EndP\HCode{<informaltable\Hnewline
3301 role="multitable">}\IgnorePar }
3302 {\HCode{</tbody></tgroup></informaltable>}}
3303 {\HCode{\ifnum \HRow=1 <tgroup cols="\HCols"><tbody>\fi
3304 <row><!-- cols="\HRow"-->}}
3305 {\HCode{</row>}}
3306 {\HCode{<entry\Hnewline><!-- cols="\the\colcount"--><para>}}
3307 {\IgnorePar \EndP\HCode{</para></entry>}}
3308 >>>
3309
3310
3311 \<configure docbook texinfo\><<<
3312 \Configure{example}
3313 {\IgnorePar\EndP\HCode{<example
3314 role="example"><title></title><para>}\bgroup
3315 \Configure{obeylines}{}{}{\hbox{\HCode{</para><para>}}}}
3316 {\egroup\IgnorePar\EndP\HCode{</para></example>}\ShowPar\par}
3317 \Configure{smallexample}
3318 {\IgnorePar\EndP\HCode{<example
3319 role="smallexample"><title></title><para>}\bgroup
3320 \Configure{obeylines}{}{}{\hbox{\HCode{</para><para>}}}}
3321 {\egroup\IgnorePar\EndP\HCode{</para></example>}\ShowPar\par}
3322 >>>
3323
3324
3325
3326
3327
3328 \<configure docbook texinfo\><<<
3329 \ConfigureMark{chapter}{\the\chapno}
3330 \Configure{chapter}
3331 {\OpenDiv{chapter}} {\CloseDiv{chapter}}
3332 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3333 \ConfigureMark{appendix}{\appendixletter}
3334 \Configure{appendix}
3335 {\AppOpenDiv{appendix}} {\AppCloseDiv{appendix}}
3336 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3337 \Configure{unnumbered}
3338 {\OpenDiv{unnumbered}} {\CloseDiv{unnumbered}}
3339 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
3340 \ConfigureMark{numberedsec}{\the\chapno.\the\secno}
3341 \Configure{numberedsec}
3342 {\OpenDiv{numberedsec}} {\CloseDiv{numberedsec}}
3343 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3344 \ConfigureMark{appendixsec}{\appendixletter.\the\secno}
3345 \Configure{appendixsec}
3346 {\OpenDiv{appendixsec}} {\CloseDiv{appendixsec}}
3347 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3348 \Configure{unnumberedsec}
3349 {\OpenDiv{unnumberedsec}} {\CloseDiv{unnumberedsec}}
3350 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
3351 \ConfigureMark{numberedsubsec}{\the\chapno.\the\secno .\the\subsecno}
3352 \Configure{numberedsubsec}
3353 {\OpenDiv{numberedsubsec}} {\CloseDiv{numberedsubsec}}
3354 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3355 \ConfigureMark{appendixsubsec}{\appendixletter .\the\secno.\the\subsecno}
3356 \Configure{appendixsubsec}
3357 {\OpenDiv{appendixsubsec}} {\CloseDiv{appendixsubsec}}
3358 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3359 \ConfigureMark{appendixsubsec}{\appendixletter.\the\secno
3360 .\the\subsecno}
3361 \Configure{appendixsubsec}
3362 {\OpenDiv{appendixsubsec}} {\CloseDiv{appendixsubsec}}
3363 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3364 \Configure{unnumberedsubsec}
3365 {\OpenDiv{unnumberedsubsec}} {\CloseDiv{unnumberedsubsec}}
3366 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
3367 \ConfigureMark{numberedsubsubsec}{\the\chapno.\the\secno
3368 .\the\subsecno.\the\subsubsecno}
3369 \Configure{numberedsubsubsec}
3370 {\OpenDiv{numberedsubsubsec}} {\CloseDiv{numberedsubsubsec}}
3371 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3372 \ConfigureMark{appendixsubsubsec}{\appendixletter
3373 .\the\secno.\the\subsecno.\the\subsubsecno}
3374 \Configure{appendixsubsubsec}
3375 {\OpenDiv{appendixsubsubsec}} {\CloseDiv{appendixsubsubsec}}
3376 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3377 \ConfigureMark{appendixsubsubsec}{\appendixletter.\the\secno
3378 .\the\subsecno.\the\subsubsecno}
3379 \Configure{appendixsubsubsec}
3380 {\OpenDiv{appendixsubsubsec}} {\CloseDiv{appendixsubsubsec}}
3381 {\HCode{<title>}|<TitleMark|>} {\HCode{</title>}\par\ShowPar}
3382 \Configure{unnumberedsubsubsec}
3383 {\OpenDiv{unnumberedsubsubsec}} {\CloseDiv{unnumberedsubsubsec}}
3384 {\HCode{<title>}} {\HCode{</title>}\par\ShowPar}
3385 >>>
3386
3387
3388
3389
3390
3391
3392
3393
3394 \<configure docbook texinfo\><<<
3395 \Configure{enumerate}%
3396 {\ifvmode\IgnorePar\fi \EndP \HCode{<orderedlist\Hnewline>}}
3397 {\EndP\HCode{</listitem></orderedlist>}\ShowPar}
3398 {\ifnum \itemno>1
3399 \ifvmode\IgnorePar\fi \EndP \Tg</listitem>\fi \DeleteMark}
3400 {\ifvmode\IgnorePar\fi \EndP \HCode{<listitem>}\par\ShowPar}
3401 \Configure{itemize}%
3402 {\ifvmode\IgnorePar\fi \EndP \HCode{<itemizedlist>}}
3403 {\EndP\HCode{</listitem></itemizedlist>}\ShowPar}
3404 {\ifnum \itemno>1 \ifvmode\IgnorePar\fi \EndP
3405 \Tg</listitem>\fi \DeleteMark}
3406 {\ifvmode\IgnorePar\fi \EndP \HCode{<listitem>}\par\ShowPar}
3407 \Configure{table}%
3408 {\EndP\HCode{<glosslist>}\let\end:itm=\empty}
3409 {\EndP\HCode{</glossdef></glossentry></glosslist>}\ShowPar}
3410 {\end:itm\def\end:itm{\EndP\HCode{</glossdef></glossentry>}}%
3411 \HCode{<glossentry><glossterm><remark>}\bgroup \bf}
3412 {\egroup\HCode{</remark></glossterm><glossdef\Hnewline>}\par\ShowPar}
3413 >>>
3414
3415 \<configure docbook texinfo\><<<
3416 \Configure{titlepage}
3417 {\ifvmode \IgnorePar \fi \EndP \HCode{<articleinfo>}\bgroup
3418 \Configure{flushleft}
3419 {\ifvmode \IgnorePar \fi \EndP \HCode{<abstract>}\bgroup
3420 \Configure{obeylines}{}{}{\hbox{\HCode{<!--br /-->}}}\ShowPar\par
3421 \leavevmode }
3422 {\ifvmode \IgnorePar \fi \EndP \egroup\HCode{</abstract>}}
3423 }
3424 {\egroup\ifvmode \IgnorePar \fi \EndP \HCode{</articleinfo>}}
3425 \Configure{title}
3426 {\ifvmode \IgnorePar \fi \EndP \HCode{<title>}\bgroup
3427 \Configure{leftline}{}{}}
3428 {\egroup\ifvmode \IgnorePar \fi \EndP \HCode{</title>}}
3429 \Configure{subtitle}
3430 {\IgnorePar\EndP\HCode{<subtitle \Hnewline>}\bgroup
3431 \Configure{rightline}{}{}}
3432 {\egroup \IgnorePar\EndP\HCode{</subtitle>}}
3433 \Configure{author}
3434 {\ifvmode \IgnorePar \fi \EndP \HCode{<author><othername>}\bgroup
3435 \Configure{leftline}{}{}}
3436 {\egroup \ifvmode \IgnorePar \fi \EndP \HCode{</othername></author>}}
3437 >>>
3438
3439
3440
3441
3442 \<configure docbook texinfo\><<<
3443 |<unicode space|>
3444 >>>
3445
3446
3447
3448
3449 % \HCode{\string&\#x00A0;}}
3450
3451
3452 \<configure docbook texinfo\><<<
3453 \Configure{contents}
3454 {\b:titlepage \let\b:titlepage=\empty
3455 \ifvmode \IgnorePar \fi \EndP \HCode{<tocchap>}}
3456 {\ifvmode \IgnorePar \fi \EndP \HCode{</tocchap>}}
3457 >>>
3458
3459
3460
3461
3462 \<configure docbook texinfo\><<<
3463 \Configure{endchapter}{appendix}
3464 \Configure{endappendix}{chapter}
3465 \Configure{endnumberedsec}
3466 {chapter,appendix,appendixsec,unnumberedsec,unnumbered}
3467 \Configure{endappendixsec}
3468 {chapter,appendix,umberedsec,unnumberedsec,unnumbered}
3469 \Configure{endunnumberedsec}
3470 {chapter,appendix,umberedsec,appendixsec,unnumbered}
3471 \Configure{endunnumbered}
3472 {chapter,appendix,umberedsec,appendixsec,unnumberedsec}
3473 \Configure{endnumberedsubsec}
3474 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3475 unnumbered,appendixsubsec,appendixsubsec,unnumberedsubsec}
3476 \Configure{endappendixsubsec}
3477 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3478 unnumbered,numberedsubsec,appendixsubsec,unnumberedsubsec}
3479 \Configure{endappendixsubsec}
3480 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3481 unnumbered,numberedsubsec,appendixsubsec,unnumberedsubsec}
3482 \Configure{endunnumberedsubsec}
3483 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3484 unnumbered,numberedsubsec,appendixsubsec,appendixsubsec}
3485 \Configure{endnumberedsubsubsec}{chapter,appendix,umberedsec,%
3486 appendixsec,unnumberedsec,unnumbered,numberedsubsec,%
3487 appendixsubsec,appendixsubsec,unnumberedsubsec,appendixsubsubsec,%
3488 appendixsubsubsec,unnumberedsubsubsec}
3489 \Configure{endappendixsubsubsec}
3490 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3491 unnumbered,numberedsubsec,appendixsubsec,appendixsubsec,%
3492 unnumberedsubsec,numberedsubsubsec,appendixsubsubsec,%
3493 unnumberedsubsubsec}
3494 \Configure{endappendixsubsubsec}
3495 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3496 unnumbered,numberedsubsec,appendixsubsec,appendixsubsec,%
3497 unnumberedsubsec,numberedsubsubsec,appendixsubsubsec,%
3498 unnumberedsubsubsec}
3499 \Configure{endunnumberedsubsubsec}
3500 {chapter,appendix,umberedsec,appendixsec,unnumberedsec,%
3501 unnumbered,numberedsubsec,appendixsubsec,appendixsubsec,%
3502 unnumberedsubsec,numberedsubsubsec,appendixsubsubsec,appendixsubsubsec}
3503 >>>
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513 \<configure docbook texinfo\><<<
3514 \Configure{index}
3515 {\IgnorePar\leavevmode\EndP\Tg<div class="index">}
3516 {\IgnorePar\EndP\Tg</div>}
3517 {\leavevmode\Tg<span class="entry">}
3518 {\Tg</span>\Tg<br />\IgnorePar}
3519 >>>
3520
3521
3522 %%%%%%%%%%%%%%%%%
3523 \chapter{Packages}
3524 %%%%%%%%%%%%%%%%%
3525
3526
3527
3528
3529
3530
3531 %%%%%%%%%%%%%%%%%%%
3532 \section{Verbatim}
3533 %%%%%%%%%%%%%%%%%%%
3534
3535 %%%%%%%%%%%%%%%%%%%%%%%%
3536 \subsection{fancyvrb}
3537 %%%%%%%%%%%%%%%%%%%%%%%%
3538
3539 \<configure docbook fancyvrb\><<<
3540 \Configure{fancyvrb}
3541 {\ifvmode \IgnorePar \fi \EndP
3542 \HCode{<literallayout role="fancyvrb" >}}
3543 {\EndP\HCode{</literallayout>}}
3544 {\HCode{<literal>}} {\HCode{</literal>}}
3545 {\HCode{<literal>}} {\HCode{</literal>}}
3546 >>>
3547
3548
3549 \<fancyvrb.sty config 4.0t\><<<
3550 \Configure{fancyvrbcolor}
3551 {\Css{div\#fancyvrb\fancyvrbNo { color: \HColor; }}}
3552 {\Css{div\#fancyvrb\fancyvrbNo { background-color: \HColor;}}}
3553 {\Css{div\#fancyvrb\fancyvrbNo { border-color: \HColor;}}}
3554 >>>
3555
3556 \<fancyvrb.sty config 4.0t\><<<
3557 \Configure{fancyvrbframe}
3558 {\Css{div\#fancyvrb\fancyvrbNo { border-top: solid \HSize; }}}
3559 {\Css{div\#fancyvrb\fancyvrbNo { border-left: solid \HSize; }}}
3560 {\Css{div\#fancyvrb\fancyvrbNo { border-bottom: solid \HSize; }}}
3561 {\Css{div\#fancyvrb\fancyvrbNo { border-right: solid \HSize; }}}
3562 {\Css{div\#fancyvrb\fancyvrbNo {border-width:\HSize;}}}
3563 {\Css{div\#fancyvrb\fancyvrbNo {padding:\HSize;}}}
3564 >>>
3565
3566 \<fancyvrb.sty config 4.0t\><<<
3567 \Configure{BVerbatimInput}
3568 {\ifvmode \IgnorePar \fi \EndP
3569 \gHAssign\HRow=0
3570 \HCode{<div class="BVerbatimInput">}}
3571 {\ifvmode \IgnorePar \fi \EndP \HCode{</div>}}
3572 {\gHAdvance\HRow by 1 \ifnum \HRow>1 \HCode{<br />}\fi}{}
3573 >>>
3574
3575
3576
3577
3578 %%%%%%%%%%%%%%%%%%%
3579 \section{Drawing Utilitis}
3580 %%%%%%%%%%%%%%%%%%%
3581
3582
3583 %%%%%%%%%%%%%%%%%%%
3584 \subsection{pgf}
3585 %%%%%%%%%%%%%%%%%%%
3586
3587
3588 %%%%%%%%%%%%%%%%%%%
3589 \subsection{pgf}
3590 %%%%%%%%%%%%%%%%%%%
3591
3592 \<configure docbook pgf\><<<
3593 \ConfigureEnv{pgfpicture}
3594 {\hbox\bgroup\Picture+[ ]{}}
3595 {\EndPicture\egroup}
3596 {}{}
3597 >>>
3598
3599
3600
3601 %%%%%%%%%%%%%%%%%%%
3602 \section{beamer}
3603 %%%%%%%%%%%%%%%%%%%
3604
3605
3606
3607
3608 \<configure docbook beamer\><<<
3609 |<article prologue|>
3610 |<beamer title page|>
3611 |<beamer toc|>
3612 |<beamer sections|>
3613 |<beamer slides|>
3614 |<beamer slide titles|>
3615 |<beamer environments|>
3616 |<beamer bib|>
3617 |<beamer other|>
3618 >>>
3619
3620 \<beamer titlepage par\><<<
3621 \Configure{HtmlPar}
3622 {\EndP\HCode{<!--l. \the\inputlineno--><note><para>}}
3623 {\EndP\HCode{<!--l. \the\inputlineno--><note><para>}}
3624 {\HCode{</para></note>}} {\HCode{</para></note>}}
3625 >>>
3626
3627 \<beamer title page\><<<
3628 \Configure{titlepage}
3629 {\ifvmode \IgnorePar\fi \EndP \HCode{<para role="titlepage">}%
3630 \bgroup |<beamer titlepage par|>}
3631 {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</para>}}
3632 \Configure{title}
3633 {\ifvmode \IgnorePar\fi \EndP \HCode{<note role="title"><para>}}
3634 {\ifvmode \IgnorePar\fi \EndP \HCode{</para></note>}}
3635 \Configure{author}
3636 {\ifvmode \IgnorePar\fi \EndP \HCode{<note role="author"><para><personname><othername>}}
3637 {\ifvmode \IgnorePar\fi \EndP \HCode{</othername></personname></para></note>}}
3638 \Configure{institute}
3639 {\ifvmode \IgnorePar\fi \EndP \HCode{<note role="institute"><para>}}
3640 {\ifvmode \IgnorePar\fi \EndP \HCode{</para></note>}}
3641 \Configure{date}
3642 {\ifvmode \IgnorePar\fi \EndP \HCode{<note role="date"><para>}}
3643 {\ifvmode \IgnorePar\fi \EndP \HCode{</para></note>}}
3644 \Configure{inst}
3645 {\HCode{<superscript role="inst">}\bgroup \everymath{}\let\sp=\empty}
3646 {\egroup\HCode{</superscript>}}
3647 \Configure{andtitle}{\HCode{<remark role="and"/>}}
3648 >>>
3649
3650
3651
3652 \<beamer toc\><<<
3653 \Configure{tableofcontents}
3654 {\ifvmode \IgnorePar\fi \EndP \HCode{<toc><tocpart>}}
3655 {\ifvmode \IgnorePar\fi \EndP\HCode{</tocpart></toc>}}
3656 {}{}{}
3657 \ConfigureToc{toc}
3658 {} {\HCode{\Hnewline<tocentry>}}
3659 {} {\HCode{</tocentry>}}
3660 \Configure{sectionshadedintoc}
3661 {\HCode{<phrase role="sectionshaded">}}
3662 {\ifvmode \IgnorePar\fi \HCode{</phrase>}}
3663 \Configure{sectionintoc}
3664 {\HCode{<phrase role="section">}}
3665 {\ifvmode \IgnorePar\fi \HCode{</phrase>}}
3666 \Configure{subsectionshadedintoc}
3667 {\HCode{<phrase role="subsectionshaded">}}
3668 {\ifvmode \IgnorePar\fi \HCode{</phrase>}}
3669 \Configure{subsectionintoc}
3670 {\HCode{<phrase role="subsection">}}
3671 {\ifvmode \IgnorePar\fi \HCode{</phrase>}}
3672 >>>
3673
3674
3675 \<beamer slides\><<<
3676 \ConfigureEnv{slide}
3677 {\ifvmode \IgnorePar\fi \EndP
3678 \HCode{<section role="slide"><title></title>}\par
3679 }
3680 {\ifvmode \IgnorePar\fi \EndP \HCode{</section>}}
3681 {} {}
3682 >>>
3683
3684
3685
3686 \<beamer sections\><<<
3687 \let\no:section\section
3688 \Def:Section\section{\thesection}{#1}
3689 \let\no::section\section
3690 \let\section\no:section
3691 \let\no:section\@section
3692 \def\@section[#1]#2{\no::section{#2}%
3693 \ifvmode \IgnorePar\fi \EndP
3694 \HCode{<subtitle>}#1%
3695 \ifvmode \IgnorePar\fi \EndP \HCode{</subtitle>}%
3696 \no:section[#1]{#2}}
3697
3698 \let\no:subsection\subsection
3699 \Def:Section\subsection{\thesubsection}{#1}
3700 \let\no::subsection\subsection
3701 \def\subsection#1{\no::subsection{#1}\no:subsection{#1}}
3702
3703 \Configure{section}
3704 {\IgnorePar\EndP \HCode{<!--l.
3705 \the\inputlineno--><section\Hnewline role="section">}}
3706 {\IgnorePar\EndP\HCode{</section><!--end section-->}}
3707 {\HCode{<title>}\TitleMark}
3708 {\HCode{</title>}\par\ShowPar}
3709 \Configure{subsection}
3710 {\IgnorePar\EndP \HCode{<!--l.
3711 \the\inputlineno--><section\Hnewline role="subsection">}}
3712 {\IgnorePar\EndP\HCode{</section><!--end subsection-->}}
3713 {\HCode{<title>}\TitleMark}
3714 {\HCode{</title>}\par\ShowPar}
3715 \Configure{endsubsection}{section}
3716 >>>
3717
3718
3719
3720
3721 \<beamer environments\><<<
3722 \let\block:Name=\empty
3723 \ConfigureEnv{block}
3724 {\par\IgnorePar\EndP
3725 \ifx \block:Name\empty \def\block:Name{block}\fi
3726 \HCode{<blockquote
3727 role="\block:Name">}\global\let\block:Name=\empty}
3728 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}}
3729 {} {}
3730 \ConfigureEnv{alertblock}
3731 {\par\IgnorePar\EndP
3732 \ifx \block:Name\empty \def\block:Name{alertblock}\fi
3733 \HCode{<blockquote
3734 role="\block:Name">}\global\let\block:Name=\empty}
3735 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}}
3736 {} {}
3737 \ConfigureEnv{exampleblock}
3738 {\par\IgnorePar\EndP
3739 \ifx \block:Name\empty \def\block:Name{exampleblock}\fi
3740 \HCode{<blockquote
3741 role="\block:Name">}\global\let\block:Name=\empty}
3742 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}}
3743 {} {}
3744 \Configure{blocktitle}
3745 {\ifvmode \IgnorePar\fi \EndP \HCode{<title>}\par\IgnorePar}
3746 {\ifvmode \IgnorePar\fi \EndP \HCode{</title>}\par}
3747 >>>
3748
3749 \<beamer environments\><<<
3750 \ConfigureEnv{Problem}
3751 {\def\block:Name{Problem}} {} {} {}
3752 \ConfigureEnv{Loesung}
3753 {\def\block:Name{Loesung}} {} {} {}
3754 \ConfigureEnv{Definition}
3755 {\def\block:Name{Definition}} {} {} {}
3756 \ConfigureEnv{Satz}
3757 {\def\block:Name{Satz}} {} {} {}
3758 \ConfigureEnv{Beweis}
3759 {\def\block:Name{Beweis}} {} {} {}
3760 \ConfigureEnv{Folgerung}
3761 {\def\block:Name{Folgerung}} {} {} {}
3762 \ConfigureEnv{Lemma}
3763 {\def\block:Name{Lemma}} {} {} {}
3764 \ConfigureEnv{Fakt}
3765 {\def\block:Name{Fakt}} {} {} {}
3766 \ConfigureEnv{Theorem}
3767 {\def\block:Name{Theorem}} {} {} {}
3768 \ConfigureEnv{Proof}
3769 {\def\block:Name{Proof}} {} {} {}
3770 \ConfigureEnv{Corollary}
3771 {\def\block:Name{Corollary}} {} {} {}
3772 \ConfigureEnv{Fact}
3773 {\def\block:Name{Fact}} {} {} {}
3774 \ConfigureEnv{definition}
3775 {\def\block:Name{definition}} {} {} {}
3776 \ConfigureEnv{definitions}
3777 {\def\block:Name{definitions}} {} {} {}
3778 \ConfigureEnv{theorem}
3779 {\def\block:Name{theorem}} {} {} {}
3780 \ConfigureEnv{proof}
3781 {\def\block:Name{proof}} {} {} {}
3782 \ConfigureEnv{corollary}
3783 {\def\block:Name{corollary}} {} {} {}
3784 \ConfigureEnv{fact}
3785 {\def\block:Name{fact}} {} {} {}
3786 \ConfigureEnv{Beispiel}
3787 {\def\block:Name{Beispiel}} {} {} {}
3788 \ConfigureEnv{Beispiele}
3789 {\def\block:Name{Beispiele}} {} {} {}
3790 \ConfigureEnv{Example}
3791 {\def\block:Name{Example}} {} {} {}
3792 \ConfigureEnv{Examples}
3793 {\def\block:Name{Examples}} {} {} {}
3794 \ConfigureEnv{example}
3795 {\def\block:Name{example}} {} {} {}
3796 \ConfigureEnv{examples}
3797 {\def\block:Name{examples}} {} {} {}
3798 >>>
3799
3800
3801
3802 \<beamer slide titles\><<<
3803 \Configure{frametitle}
3804 {\ifvmode \IgnorePar\fi \EndP
3805 \HCode{<para role="frametitle">}\bgroup
3806 \Configure{HtmlPar}{ }{ }{}{}%
3807 }
3808 {\egroup \ifvmode \IgnorePar\fi \EndP \HCode{</para>}}
3809 >>>
3810
3811
3812 \<beamer environments\><<<
3813 \ConfigureEnv{columns}
3814 {\ifvmode \IgnorePar\fi \EndP
3815 \HCode{<blockquote role="columns">}}
3816 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}\par}
3817 {}{}
3818 \ConfigureEnv{column}
3819 {\ifvmode \IgnorePar\fi \EndP
3820 \HCode{<blockquote role="column">}}
3821 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}}
3822 {}{}
3823 >>>
3824
3825
3826 \<beamer other\><<<
3827 \Configure{alert}
3828 {\HCode{<note role="alert"><para>}\bgroup
3829 \Configure{HtmlPar}{\HCode{<!--br/-->}}{\HCode{<!--br/-->}}{}{}%
3830 }
3831 {\egroup\HCode{</para></note>}}
3832 >>>
3833
3834
3835
3836
3837
3838 \<beamer bib\><<<
3839 \ConfigureList{thebibliography}%
3840 {\IgnorePar\EndP
3841 \HCode{<simplelist role="bibliography">}\let\en:bib=\empty}
3842 {\en:bib\HCode{</simplelist>}}
3843 {\en:bib\def\en:bib{\HCode{</member>}}%
3844 \HCode{<member><!--l.
3845 \the\inputlineno--><abbrev role="biblioentry">}%
3846 |<para within bib|>}
3847 {\HCode{</abbrev>}}
3848 >>>
3849
3850
3851
3852 %%%%%%%%%%%%%%%%%%%
3853 \section{prosper}
3854 %%%%%%%%%%%%%%%%%%%
3855
3856
3857
3858 \<configure docbook prosper\><<<
3859 \ConfigureEnv{slide}
3860 {\ifvmode \IgnorePar\fi \EndP
3861 \HCode{<blockquote role="slide">}\par}
3862 {\HCode{</blockquote>}}
3863 {}{}
3864 \Configure{slidetitle}
3865 {\HCode{<note role="title"><para>}}
3866 {\HCode{</para></note>}}
3867 >>>
3868
3869
3870 %%%%%%%%%%%%%%%%%%%
3871 \section{algorithmic}
3872 %%%%%%%%%%%%%%%%%%%
3873
3874
3875
3876 \<configure docbook algorithmic\><<<
3877 \ConfigureEnv{algorithmic}
3878 {\ifvmode\IgnorePar\fi \EndP
3879 \HCode{<blockquote role="algorithmic"><para>}%
3880 \bgroup
3881 \Configure{HtmlPar}{}{}{}{}}
3882 {\egroup \ifvmode \IgnorePar\fi
3883 \HCode{</para></blockquote>}\par\ShowPar}
3884 {}{}
3885 \Configure{ALCitem}
3886 {\HCode{\ifnum \c@ALC@line>1 </para><para>\fi
3887 <remark role="line-number">}}
3888 {\HCode{</remark>}}
3889 \Configure{algorithmiccomment}
3890 {\HCode{<blockquote role="comment"><para>}}
3891 {\HCode{</para></blockquote>}}
3892 {}{}
3893 >>>
3894
3895 %%%%%%%%%%%%%%%%%%%
3896 \section{llncs}
3897 %%%%%%%%%%%%%%%%%%%
3898
3899
3900
3901 \<configure docbook llncs\><<<
3902 \Configure{email}
3903 {\HCode{<email>}}
3904 {\HCode{</email>}}
3905 \Configure{institute}
3906 {\HCode{<note><para role="institute">}}
3907 {\HCode{</para></note>}}
3908 >>>
3909
3910 \<configure docbook llncs\><<<
3911 \ConfigureEnv{abstract}
3912 {\ifvmode \IgnorePar\fi \EndP}
3913 {\ifvmode \IgnorePar\fi \EndP}
3914 {}{}
3915 \ConfigureList{abstract}
3916 {\ifvmode \IgnorePar\fi \EndP
3917 \HCode{<abstract>}\IgnorePar}
3918 {\ifvmode \IgnorePar\fi \EndP
3919 \HCode{</abstract>}\ShowPar}
3920 {\IgnorePar\par\HCode{<title>}}
3921 {\HCode{</title>}\ShowPar\par}
3922 >>>
3923
3924
3925 %%%%%%%%%%%%%%%%%%
3926 \section{array}
3927 %%%%%%%%%%%%%%%%%%
3928
3929
3930
3931 \<configure docbook array\><<<
3932 |<html latex array/tabular Config 4.0t|>
3933 |<latex tables|>
3934 >>>
3935
3936
3937 \<configure html4-math array\><<<
3938 |<math html latex array/tabular|>
3939 >>>
3940
3941
3942
3943
3944
3945 %%%%%%%%%%%%%
3946 \subsection{subeqnarray}
3947 %%%%%%%%%%%%%
3948
3949
3950 \<configure docbook subeqnarray\><<<
3951 \ConfigureEnv{subeqnarray}
3952 {\ifvmode \IgnorePar\fi \EndP
3953 \HCode{<blockquote role="subeqnarray">}}
3954 {\ifvmode \IgnorePar\fi \EndP \HCode{</blockquote>}}
3955 {}{}
3956 >>>
3957
3958 \begin{thebibliography}{9}
3959 \bibitem{home}
3960 \url{http://www.docbook.org/}
3961 \bibitem{specs}
3962 Norman Walsh
3963 (With contributions from Leonard Muellner),
3964 DocBook 5.0: The Definitive Guide,
3965 3 March 2008,
3966 O'Reilly,
3967 \url{http://www.docbook.org/tdg5/en/html/}
3968 (\Link[http://www.docbook.org/tdg5/en/html/pt02.html]{}{}element references\EndLink, \Link[http://docbook.org/schemas/5x]{}{}relax ng\EndLink
3969
3970 \bibitem{wiki}
3971 \url{http://en.wikipedia.org/wiki/DocBook}
3972 \end{thebibliography}
3973
3974
3975 %%%%%%%%%%%%%%%%%%
3976 \section{Bitmaps}
3977 %%%%%%%%%%%%%%%%%%
3978
3979
3980
3981 \<configure docbook graphics\><<<
3982 \Configure{graphics*}
3983 {gif}
3984 {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
3985 \Picture[\a:GraphicsAlt]{\[email protected] |<graphics dim|>}}
3986 \Configure{graphics*}
3987 {png}
3988 {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
3989 \Picture[\a:GraphicsAlt]{\[email protected] |<graphics dim|>}}
3990 \Configure{graphics*}
3991 {jpg}
3992 {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
3993 \Picture[\a:GraphicsAlt]{\[email protected] |<graphics dim|>}}
3994 \Configure{graphics*}
3995 {jpeg}
3996 {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
3997 \Picture[\a:GraphicsAlt]{\[email protected] |<graphics dim|>}}
3998 >>>
3999
4000 \<graphics dim\><<<
4001 \csname a:Gin-dim\endcsname
4002 >>>
4003
4004 \<includegraphics dim\><<<
4005 \NewConfigure{Gin-dim}{1}
4006 >>>
4007
4008 \<configure docbook tex4ht\><<<
4009 \:CheckOption{jpg} \if:Option
4010 \Configure{Picture}{.jpg}
4011 \else
4012 \Log:Note{for jpg bitmaps of pictures, use the `jpg'
4013 command line option. |<ch bitmaps|>}
4014 \fi
4015 \:CheckOption{gif} \if:Option
4016 \Configure{Picture}{.gif}
4017 \else
4018 \Log:Note{for gif bitmaps of pictures, use the `gif'
4019 command line option. |<ch bitmaps|>}
4020 \fi
4021 >>>
4022
4023 \<ch bitmaps\><<<
4024 (Character bitmaps are controled only by `g' records of tex4ht.env and `-g'
4025 switches of tex4ht.c)
4026 >>>
4027
4028 \endinput