Debian Codegraph @

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

raw
1 % $Id: tex4ht-info.tex 1564 2024-09-29 14:56:20Z karl $
2 % Compile with the command `ht latex tex4ht-info'
3 % or
4 % compile 3 times: latex tex4ht-info
5 % or xhlatex tex4ht-info "html,3,sections+"
6 % Copyright 2009-2021 TeX Users Group
7 % Copyright 2000-2009 Eitan M. Gurari
8 % Released under LPPL 1.3c+.
9 % See tex4ht-cpright.tex for license text.
10
11 \ifx \HTML\UnDef
12 \def\HTML{info4ht}
13 \def\CONFIG{\jobname}
14 \def\MAKETITLE{\author{Eitan M. Gurari}}
15 \def\next{\input mktex4ht.4ht \endinput}
16 \expandafter\next
17 \fi
18
19
20 \input{common-info}
21 \input{common}
22 \expandafter\ifx \csname YES\HTML\endcsname\relax
23 \else
24 \def\CleanComment#1tex4ht-info#2#3#4.#5>#6//{[#4% <--jobname
25 \if,\ifnum \FIRST=#6 .\else ,0\fi\fi]#6//}
26 \fi
27
28
29 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30 \chapter{INFO}
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32
33
34 \<info4ht\><<<
35 % info4ht.4ht (|version), generated from |jobname.tex
36 % Copyright 2009-2024 TeX Users Group
37 % Copyright |CopyYear.2000. Eitan M. Gurari
38 %
39 % This work may be distributed and/or modified under the
40 % conditions of the LaTeX Project Public License, either
41 % version 1.3c of this license or (at your option) any
42 % later version. The latest version of this license is in
43 % http://www.latex-project.org/lppl.txt
44 % and version 1.3c or later is part of all distributions
45 % of LaTeX version 2005/12/01 or later.
46 %
47 % This work has the LPPL maintenance status "maintained".
48 %
49 % The Current Maintainer of this work
50 % is the TeX4ht Project <http://tug.org/tex4ht>.
51 %
52 % If you modify this program, changing the
53 % version identification would be appreciated.
54 \immediate\write-1{version |version}
55 { \catcode`\@=0 \catcode`\\=11 @relax
56 @gdef@infoIVht[#1]#2//{%
57 @ifnum #1>1
58 @def@infoIVht[##1]##2//{%
59 @ifnum ##1>1 @ifnum ##1<#1
60 @bgroup
61 @no:catcodes0{255}{11}%
62 @no:catcodes{91}{91}{12}% [
63 @no:catcodes{47}{47}{12}% /
64 @newlinechar13 %
65 @long@def@infoIVht####1\ifx\infoIVht####2infoIVht[####3//{%
66 @def@infoIVht{******************************************}%
67 @immediate@write-1{@infoIVht}%
68 @immediate@write-1{****** @csname :[email protected]}%
69 @immediate@write-1{@infoIVht}%
70 @bgroup
71 @def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
72 @let~=@space @immediate@write-1{@infoIVht}%
73 @egroup
74 @immediate@write-1{####1}%
75 @bgroup
76 @def@infoIVht{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*}%
77 @let~=@space @immediate@write-1{@infoIVht}%
78 @egroup
79 @immediate@write-1{@infoIVht}%
80 @egroup}%
81 @expandafter@expandafter@expandafter@infoIVht
82 @fi@fi }%
83 @fi }
84 }
85 >>>
86
87
88
89
90
91
92
93
94
95
96
97 \chapter{The Code}
98
99
100 \section{tex4ht}
101
102 \<configure info4ht Preamble\><<<
103 \Configure{PROLOG}.........1
104
105 #1 Comma separated list of hooks to appear before HTML.
106
107 Each hook E is declared to be configurable by an
108 instruction of the form \NewConfigure{E}{1}
109
110 A star '*' prefix calls for accumulative configurations
111
112 Example:
113
114 \Configure{PROLOG}{VERSION,DOCTYPE,*XML-STYLESHEET}
115 \Configure{VERSION}
116 {\HCode{<?xml version="1.0"?>}}
117
118 \Configure{ext}............1
119
120 #1: default extension name for target files (recorded in \:html)
121
122 Can also be requested through a command line option ext=...
123
124 \Preamble...................0
125
126 Records the list of the requested options. Defined upon entering
127 the environment \Preamble{...}....\EndPreamble, to replace the
128 earlier version of \Preamble.
129
130 \ifOption ................. 3
131
132 #1 Argument to be checked wheteher it is a given option.
133 #2 True part
134 #3 False part
135 >>>
136
137
138
139 \<configure info4ht tex4ht\><<<
140 Wrapper for the Document
141 ------------------------
142
143 \Configure{DOCTYPE}.........1
144 \Configure{HTML}............2
145 \Configure{HEAD}............2
146 \Configure{@HEAD}...........1
147 \Configure{BODY}............2
148 \Configure{TITLE+}..........1
149 \Configure{TITLE}...........2
150 \Configure{@TITLE}..........1
151 \Configure{Preamble}........2
152
153 <DOCTYPE>
154 <HTML 1>
155 <HEAD 1>
156 <TITLE 1>
157 <@TITLE>
158 <TITLE+>
159 <TITLE 2>
160 <@HEAD>
161 <HEAD 2>
162 <BODY 1>
163 ......
164 <BODY 2>
165 <HTML 2>
166
167 The \Configure{@HEAD}{...} command is additive, concatenating the
168 content of all of its appearances. An empty parameter requests
169 the cancellation of the earlier contributions.
170
171 For instance,
172
173 \Configure{@HEAD}{A}
174 \Configure{@HEAD}{}
175 \Configure{@HEAD}{B}
176 \Configure{@HEAD}{C}
177
178 contributes `BC'.
179
180 The \Configure{TITLE+} provides the content for the title,
181 \Configure{TITLE} sets the envelop, and \Configure{@TITLE} acts as a
182 hook for introducing localized configurations. As is the case for
183 \Configure{@HEAD}, the contribution of \Configure{@TITLE} is also
184 additive.
185
186 These configurations should be introduced early enough in the
187 compilation. For instance, in the case of LaTeX, between \Preamble
188 and \begin{document} of a local configuration file.
189
190 \Preamble
191 %%% here %%%
192 \begin{document}
193 ...
194 \EndPreamble
195
196
197 \Configure{@BODY}...........1
198 \Configure{@/BODY}..........1
199
200 Variants of \Configure{@HEAD} which contribute their content,
201 respectively, after <body> and before </body>.
202
203 \Configure{CutAtTITLE+}.....1
204 \Configure{HPageTITLE+}.....1
205
206 #1 an insertion just before the content of <TITLE>;
207
208 If #1 is a one parametric macro, it gets the title content for
209 an argument.
210
211
212 Support for Sectioning Commands
213 -------------------------------
214
215 \Configure{unit-name} ......................4
216
217 #1 start
218 #2 end
219 #3 before title
220 #4 after title
221
222 Example:
223
224 \Configure{section}
225 {\HCode{<section>}} {\HCode{</section>}}
226 {\HCode{<title>}} {\HCode{</title>}}
227
228
229 \ConfigureMark{unit-name}...................1
230
231 Defines a macro \<<unit-name>>HMark to hold the given argument.
232 Upon entering the unit, \TitleMark gets the content of this macro.
233
234 Some built-in configurations of TeX4ht require an argument for the
235 \<<unit-name>>HMark commands. For safety, these commands should
236 always be followed by a, possiblely empty, argument. The argument
237 should be a separator between the title mark and its content.
238
239 Example:
240
241 \Configure{section}
242 {}{}
243 {\HCode{<h3>}\TitleMark\space} {\HCode{</h3>}}
244 \ConfigureMark{section}{\thesection}
245
246
247 \Configure{toTocLink}.......................2
248
249 Each unit title contains a \Link{...}{...}...\EndLink command.
250 The first argument of \Link points to the first table of contents
251 referencing the title. The second argument provides an anchor
252 for references to the title (mainly from tables of contents).
253
254 The package option `section+' requests the inclusion of the
255 title within the anchor. Without this option, the link command
256 resides between the title mark and its content.
257
258 The \Configure{toTocLink} command is provided for configuring
259 the \Link and \EndLink instructions. In the default setting,
260 when the `sections+' option is not activated, the \Link
261 command is altered to replace its first argument with an empty
262 argument.
263
264 Example:
265
266 \Configure{toTocLink}
267 {\Link}
268 {\ifx \TitleMark\sectionHMark
269 \Picture[\up]{haut.jpg align="right"}%
270 \EndLink
271 \TitleMark\space
272 \else \EndLink \fi
273 }
274 \def\up{[up]}
275
276 \Configure{toToc}...........................2
277
278 #1 unit type
279 #2 desired contents type (if empty, `unit type' is assumed)
280
281 Example: \Configure{toToc}{chapter}{likechapter}
282 Introduces chapter as likechapter into toc
283
284 #1 empty: stop adding entries of `unit type' to toc
285 @: add entries of `unit type' to toc
286 ?: resume mode in effect before the last stop
287 #2 unit type
288
289 Example: \Configure{toToc}{}{chapter}
290 \chapter{...}
291 \Configure{toToc}{@}{chapter}
292
293 \Configure{writetoc}.........................1
294
295 #1 Configuration material for the insertion instruction.
296 New configurations are added to those request earlier
297 by the command. An empty argument cancels the earlier
298 contributions.
299
300 \NoLink.......................1
301
302 Ignore option `section+' for sections of type #1
303
304 \TitleCount
305
306 Count of entries submitted to the toc file
307
308 \Configure{NoSection}.........2
309
310 Insertions around the parameters of sectioning commands, applied when
311 the parameters are not used to create titles for the divisions.
312
313
314 \CutAt{#1,#2,#3,...}
315
316 #1 section type to be placed in a separate web page
317 #2,#3,... end delimiting section types, other than #1, for
318 the web pages
319 A `+' before #1 requests hypertext buttons for the web pages
320
321 Examples:
322
323 \CutAt{mychapter,myappendix,mypart}
324 \CutAt{+myappendix,mychapter,mypart}
325
326 Cut points at arbitrary points can be introduced by introducing section-like
327 commands in a manner similar to
328
329 \NewSection\mysection{}
330 \CutAt{mysection}
331
332
333 \Configure{+CutAt}.................................3
334
335 #1 sectioning type
336 #2 before
337 #3 after
338
339 Requests delimiters for the \CutAt buttons of the specified
340 sectioning type
341
342 Example: \Configure{+CutAt}{mysection}{[}{]}
343
344 \PauseCutAt{#1}
345 \ContCutAt{#1}
346
347 #1 section type
348
349 \Configure{CutAt-filename} ........................1
350
351 A 2-parameter hook for tailoring section-based filenames.
352 The section type is available through #1. The section title
353 is accessible through #2.
354
355 Example: \Configure{CutAt-filename}{\NextFile{#1-#2.html}}
356
357
358 Tables of Contents
359 ------------------
360
361 Created from the entries collected in the previous compilation within
362 a jobname.4tc file.
363
364 \ConfigureToc{unit-name} ......................4
365
366 #1 before unit number
367 #2 before content
368 #3 before page number
369 #4 at end
370
371 * Empty arguments request the omission of the corresponding field.
372
373 * \TocCount Specifies the entry count withing the jobname.4tc file.
374
375 * \TitleCount Count of entries submitted to the toc file
376
377 * An alternative to \ConfigureToc{unit-name}:
378
379 \def\toc<unit-name>#1#2#3{<before unit number>#1<before content>#2%
380 <before page number>#3<at end>}
381
382
383 Example:
384
385 \ConfigureToc{section}
386 {}
387 {\Picture[*]{pic.jpg width="13" height="13"}~}
388 {}
389 {\HCode{<br />}}
390
391
392 \Configure{TocLink}..................4
393
394 Configures the link offered in the third arguments of \ConfigureToc
395
396 Example: \Configure{TocLink}{\Link{#2}{#3}#4\EndLink}
397
398 \TocAt{#1,#2,#3,...}
399
400 #1 section type for which local tables of contents
401 \Toc#1 are requested
402 #2,#3,... sectioning types to be included in the tables of
403 contents
404
405 The non-leading arguments may be preceded by slashes '/', in
406 which cases the arguments specify end points for the tables.
407
408 The default setting requests automatic insertion of the local
409 tables immediately after the sectioning heads.
410
411 A star `*' character may be introduced, between the \TocAt and
412 the left brace, to request the appearances of the tables of
413 contents at the end of the units' prefaces.
414
415 A hyphen `-' character, on the other hand, disables the automatic
416 insertions of the local tables.
417
418 In case of a single argument, the command removes the
419 existing definition of \Toc#1.
420
421 Example:
422 \TocAt{mychapter,mysection,mysubsection,/myappendix,/mypart}
423 \TocAt-{mysection,mysubsection,/mylikesection}
424 \section{...}...\Tocmysection
425
426 The definition of the local table of contents can be redefined
427 within \csname Toc#1\endcsname.
428
429 Example:
430
431 \TocAt{section}
432 \def\Tocsection{\TableOfContents[section]}
433
434 \Css{div.sectionTOCS {
435 width : 30\%;
436 float : right;
437 text-align : left;
438 vertical-align : top;
439 margin-left : 1em;
440 font-size : 85\%;
441 background-color : \#DDDDDD;
442 }}
443
444 Example: Table of content before the section title.
445
446 \Configure{section}{}{}
447 {\Tocsection \let\saveTocsection=\Tocsection
448 \def\Tocsection{\let\Tocsection=\saveTocsection}%
449 \ifvmode \IgnorePar\fi \EndP\IgnorePar
450 \HCode{<h3 class="sectionHead">}\TitleMark\space\HtmlParOff}
451 {\HCode{</h3>}\HtmlParOn\ShowPar \IgnoreIndent \par}
452
453
454 \Configure{TocAt}......................2
455 \Configure{TocAt*}.....................2
456
457 #1 before the tables of contents
458 #2 after the tables of contents
459
460
461 Navigation Links for Sectioning Divisions
462 -----------------------------------------
463
464 \Configure{crosslinks}.....................8
465
466 #1 left delimiter
467 #2 right delimiter
468 #3 next
469 #4 previous
470 #5 previous-tail
471 #6 front
472 #7 tail
473 #8 up
474
475 The content to be displayed in the pointers
476
477 \Configure{crosslinks*}.................1--7
478
479 Links to be included and their order. Available
480 options: next, prev, prevtail, tail, front, up.
481 The last argument must be empty.
482
483 Default:
484
485 \Configure{crosslinks*}
486 {next}
487 {prev}
488 {prevtail}
489 {tail} {front}
490 {up}
491 {}
492
493 \Configure{crosslinks+}.....................4
494
495 #1 before top menu
496 #2 after top menu
497 #3 before bottom menu
498 #4 after bottom menu
499
500 The top cross links are omitted, if both #1 and #2 are empty.
501 The bottom cross links are omitted, if both #3 and #4 are empty.
502
503 \Configure{next}.....................1
504 #1 the anchor of the next button of the front page.
505
506 Default: The value provided in \Configure{crosslinks}
507
508 \Configure{next+}.............................2
509
510 #1 before the next button of the front page, when the `next'
511 option is active.
512 #2 after the button
513
514 Default: The values provided in \Configure{crosslinks}
515
516 \Configure{crosslinks:next}..................1
517 \Configure{crosslinks:prev}..................1
518 \Configure{crosslinks:prevtail}..............1
519 \Configure{crosslinks:tail}..................1
520 \Configure{crosslinks:front}.................1
521 \Configure{crosslinks:up}....................1
522
523 #1 local configurations for the delimiters and hooks
524
525 \Configure{crosslinks-}.....................2
526
527 Asks to show linkless buttons with the following insertions.
528
529 #1 before
530 #2 after
531
532 The default values are used, if both #1 and #2 are empty
533
534 Examples:
535
536 \Configure{crosslinks-}{}{}
537
538 \Configure{crosslinks-}
539 {\HCode{<span class="hidden">}[}
540 {]\HCode{</span>} }
541 \Css{span.hidden {visibility:hidden;}}
542
543 Paragraphs
544 ----------
545
546 \Configure{HtmlPar}..........4
547
548 #1 content at the start non-indented paragraphs
549 #2 content at the start indented paragraphs
550 #3 insertion into \EndP, at the start of non-indented paragraphs
551 #4 insertion into \EndP, at the start of indented paragraphs
552
553 \HtmlParOff
554 \HtmlParOn
555
556 \IgnorePar Asks to ignore the next paragraph
557 \ShowPar Asks to take into account the following paragraphs
558
559 \IgnoreIndent asks to ignore indentation in the next paragraph
560 \ShowIndent asks to check indentation in the following paragraphs
561
562 \SaveEndP Saves the content of \EndP, and sets it to empty content
563 \RecallEndP
564
565 \SaveHtmlPar
566 \RecallHtmlPar
567
568
569 Example:
570 \Configure{@BODY}
571 {\ifvmode \IgnorePar\fi \EndP
572 \HCode{<div>}\par\ShowPar}
573 \Configure{@/BODY}
574 {\ifvmode \IgnorePar\fi \EndP
575 \HCode{</div>}}
576
577
578 Cross-Linking
579 -------------
580
581 \Link[@1 @2]{@3}{@4}...\EndLink
582
583 Creates
584
585 <a href="@1#@3" name="@4" @2>...</a>
586
587 * When @1 is empty, tex4ht will derive its value automatically.
588 The derived value will be the file name containing the target @3.
589
590 * \Link may be followed by `-', if tex4ht needs not automatically
591 determine (for other \link commands) the file containing @4.
592 In the present of such a flag, tex4ht can spare a definition of
593 one macro.
594
595 * The component [@1 @2] is optional. If omitted, @1 and @2 are
596 assumed to be empty
597
598 * The href attribute is omitted when @1 and @3 are empty
599
600 * The name attribute is omitted when @4 is empty
601
602 Examples:
603
604 \Link{a}{}...\Endlink ..... \Link{}{b}...\EndLink
605 \Link[http://foo id="fooo"]{a}{b}...\EndLink
606
607 \Configure{Link}..............4
608
609 Configures \Link...\EndLink so that
610
611 #1 replaces `a'
612 #2 replaces `href='
613 #3 replaces `name='
614 #4 replaces `#'. If empty, the older value remains in effect.
615
616 Examples:
617
618 \Configure{Link}{a}{href=}{name=}{}
619 \Configure{Link}{ref}{target=}{id=}{\empty}
620
621 \Configure{?Link}..............1
622
623 #1 insertion before broken links
624
625 To help with debugging
626
627 \LinkCommand...................1 <= i <= 6
628
629 Creates a \Link-like command
630
631 #1 tag name
632 #2 href-like attribute
633 #3 name-like attribute
634 #4 insertion
635 #5 /, if empty element
636 #6 replacement for # (ignored if absent)
637
638 Example:
639
640 \LinkCommand\JSLink{a,\noexpand\jsref,name}
641 \def\jsref="#1"{href="javascript:window.open('#1')"}
642
643 \JSLink{a}{}xx\EndJSLink
644 \Link{}{a}\EndLink % or \JSLink{}{a}\EndJSLink
645
646 \Configure{XrefFile}.....................1
647
648 #1 names cross-references of files (appends #1 to `)F' and `)Q'
649 entries of the .xref files). Applicable mainly implicitly
650 within \Link commands
651
652 \Tag.....................................2
653
654 #1 label
655 #2 content
656
657 \XRef.....................................1
658 \LikeRef.................................1
659
660 #1 label
661
662 \Tag and \XRef are tex4ht.sty commands introduced cross-referencing
663 content through .xref auxiliary files.
664
665 \LikeRef is a variant of \XRef which doesn't verify whether the
666 labels exit. It is mainly used in \Link and \edef environments.
667
668 \ifTag ..................................3
669
670 #1 quetioned tag
671 #2 true part
672 #3 false part
673
674 \LoadRef-[prefix]+{filename.ext}{pattern}
675
676 Load the named xref-type file
677
678 .xref optional--`.xref' is assume for a default
679 + optional-- asks \XRef and \LikeRef commands
680 to use expanded tags `filename::tag', instead of just `tag'
681 [prefix] optional--asks just for tags starting with the
682 specified prefix.
683 - optional--deletes the prefixes from the loaded tags
684 {pattern} to be included only when `[prefix]' or `+' are included.
685 States how tags are to be addressed, with the parameter
686 symbol `#1' specifying the loaded part.
687
688 Example:
689
690 % a.tex
691 \LoadRef-[to:]{b}{from:#1} \XRef{from:filename}
692 \LikeRef{from:filename}
693
694 % b.tex
695 \Tag{to:filename}{\FileName}
696
697 Example:
698
699 \LoadRef-[)F]{file}{)Ffoo##1}
700 \LoadRef-[)Q]{file}{)Qfoo##1}
701 \Configure{XrefFile}{foo} \Link...\EndLink
702
703 \LoadRef{another-file}
704
705
706 Files
707 -----
708
709 \FileName Holds the name of the current hypertext file
710 \FileNumber Holds the internal number of the current hypertext file
711 \RefFileNumber...........................1
712 #1 File number
713
714 Provides the file name
715
716 \NextFile.................................1
717 #1 Requested name for the next file
718
719 \Hinput{#1}
720
721 The command asks to load the configuration files associated
722 with mark #1.
723
724 \Hinclude[#1]{#2}
725
726 The command associates configuration file #2 with mark #1. If
727 the mark is the star character `*', the configuration files is
728 associated to all marks. The command is applicable until the
729 \Preamble command is processed
730
731 For instance, \Hinclude[*]{html4.4ht}....\Hinput{latex}
732
733 \Hinclude{#1}{#2}
734
735 The command is applicable while the \Preamble command is
736 processed. Its purpose is to load *4ht hook files within
737 the fragments of code specified in #1.
738
739 For instance, \Hinclude{\input plain.4ht}{plain}
740
741
742 Fonts
743 -----
744
745 \Configure{htf}...............................9
746
747 #1 label (integer 0--255)
748 #2 delimiter (a character not appearing in #3,...,#9)
749 even label odd label
750 #3 start opening tag start empty tag
751 #4 name alt
752 #5 size name
753 #6 mag size
754 #7 mag
755 #8 end the tag ord
756 #9 closing tag end the tag
757
758 The htf fonts assign a content and a label to each symbol (possibly
759 followed by a comment). For instance,
760
761 'e' '1' epsilon
762 'z' '3' zeta
763
764 An even label asks that the content itself will be used for the
765 symbol, and an odd label asks that the symbol will be represented by a
766 bitmap. In the later case, the content serves as a substitution for
767 browsers which don't exhibit bitmaps.
768
769 The \Configure{htf}... command provides label-dependent wrappers to
770 chosen representations.
771
772 If they are not empty, `mag' and `ord' must be c-type
773 patterns for integer arguments, and `name' and `size'
774 should be a patterns for strings. The `mag' entry is
775 ignored for fonts of the default dimension. Together
776 they specify a attribute-value format, mainly for references
777 in the css code.
778
779 Examples:
780
781 \Configure{htf}{0}{+}{<span\Hnewline
782 class="}{\%s}{-\%s}{x-x-\%d}{}{">}{</span>}
783 \Configure{htf}{1}{+}{<img\Hnewline
784 src="}{" alt="}{" class="}{\%s}{-\%d}{x-x-\%x}{" />}
785
786 \Configure{htf-attr}....................... 2
787
788 #1 c-pattern for the font name and size
789 #2 c-pattern for font magnification
790
791 Specify the format of the selectors within the css files.
792
793 Example:
794 \Configure{htf-attr}{.\%s-%s}{--\%s}
795
796 \Configure{htf-css}....................... 2
797
798 #1 font name or label
799 #2 css entry
800
801 A variant of the \Css command. If #1 is a font name,
802 the contribution replaces the one given within the
803 htf font definition. If #1 is a label for an entry
804 of a htf font, the contribution is added to the css
805 file. The contribution is offered, only when the
806 font is in use.
807
808 Example:
809
810 \Configure{htf-css}{4}{.small-caps{font-variant: small-caps;}}
811
812
813 Bitmaps
814 -------
815
816 \Configure{Picture}....................... #1
817
818 #1 Extension name for bitmap files of dvi pictures,
819 stored in \PictExt
820
821 Default: \Configure{Picture}{.png}
822
823 The extension names of bitmap files of glyphs of htf fonts may be
824 determined within a g-entry in the environment file tex4ht.env, or a
825 g-flag of the tex4ht.c utility.
826
827 \Configure{Picture-alt}......................1
828
829 #1 alt value for \Picture+{...} and \Picture*{...}
830
831 \Configure{Picture+}.........................2
832 \Configure{Picture*}.........................2
833
834 #1 before the dvi picture code
835 #2 after the dvi picture code
836
837 Typically, the plus `+' variant is introduced as an inline
838 contribution into paragraphs, and the star `*' variant as an
839 independent block between paragraphs.
840
841 \Configure{PictureAlt}........................2
842 \Configure{PictureAlt*+}......................2
843 \Configure{PictureAlt*+[]}....................2
844
845 #1 definitions before alt
846 #2 definitions after alt
847
848 Apply to \Picture{...}, \Picture*+{...}, and \Picture*+[...]{...}
849
850 \Configure{PictureAlt}........................1
851 \Configure{PictureAlt*+}......................1
852 \Configure{PictureAlt*+[]}....................1
853
854 #1 definition for attributes (introduced through
855 a parameter named `#1')
856
857 Apply to \Picture{...}, \Picture*+{...}, and \Picture*+[...]{...}
858
859 \Configure{IMG}...............................5
860
861 #1 before file name
862 #2 between file name and alt
863 #3 close alt for \Picture without * or +
864 #4 close alt for \Picture with * and +
865 #5 right delimiter
866
867 Example:
868
869 \Configure{IMG}
870 {\ht:special{t4ht=<img src="}}
871 {\ht:special{t4ht=" alt="}}
872 {" }
873 {\ht:special{t4ht=" }}
874 {\ht:special{t4ht=/>}}
875
876 \NextPictureFile.............................1
877
878 Requests a file name for the next created picture.
879
880 \PictureFile.............................0
881
882 Records the filename of the most recent created picture.
883
884 Math
885 ----
886
887 \Configure{$}................................2
888 \Configure{$$}...............................2
889 \Configure{DviMath}..........................2
890
891 \DviMath ... \EndDviMath
892 \MathClass ... \EndMathClass
893 \PicMath ... \EndPicMath
894 \DisplayMath ... \EndDispalyMath
895
896 Example:
897
898 \Configure{$} {\Tg<math>\DviMath} {\EndDviMath\Tg</math>} {}
899
900
901
902 \Configure{PicMath}..........................4
903
904 Example:
905
906 \Configure{PicMath}{}{}{}{ class="math" }
907
908 \Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
909
910 \Configure{SUB}..............................2
911 \Configure{SUP}..............................2
912 \Configure{SUBSUP}...........................3
913 \Configure{SUPSUB}...........................3
914 \Configure{SUB/SUP}..........................6
915
916 \Configure{putSUB}...........................1
917 \Configure{putSUP}...........................1
918
919 #1 the code to be used for realizing subscripts and postcripts
920
921 \Configure{afterSUB}.........................2
922
923 #1 look ahead token after subscript
924 #2 the code to be used for realizing subscripts having #1 for
925 lookahead token
926
927 \Configure{over}.............................2
928 \Configure{atop}.............................2
929 \Configure{above}............................2
930 \Configure{overwithdelims}...................2
931 \Configure{atopwithdelims}...................2
932 \Configure{abovewithdelims}..................2
933
934 #1 before \over, \atop, \above
935 \overwithdelims, \atopwithdelims, \abovewithdelims
936 #2 after \over, \atop, \above <dimension>
937 \overwithdelims <del1> <del2>
938 \atopwithdelims <del1> <del2>
939 \abovewithdelims <del1> <del2> <dimension>
940
941 Example:
942
943 \Configure{over}
944 {\Send{GROUP}{0}{[before]}[before-rule]}
945 {[before-argument]\Send{EndGROUP}{0}{[after]}}
946
947
948 \Configure{MathClass}........................5
949
950 #1 class number
951 0: mathord, 1: mathop, 2: mathbin, 3: mathrel,
952 4: mathopen, 5: mathclose, 6: mathpunc
953 #2 delimiter
954 #3 before
955 #4 after
956 #5 characters
957
958 Extra support:
959
960 \PauseMathClass
961 \EndPauseMathClass
962 \NewMathClass<new control sequence> (7, 8, ...)
963
964 \Configure{FormulaClass}.....................4
965
966 #1 class number
967 0: mathord, 1: mathop, 2: mathbin, 3: mathrel,
968 4: mathopen, 5: mathclose, 6: mathpunc
969 #2 a character not in #3 and #4
970 #3 before
971 #4 after
972
973 If #2 is empty, the formula gets the same marking as a
974 single character of the specified type
975
976 \Configure{FormulaClass*}....................4
977
978 Like the previous case, but allow marking in the
979 nested content.
980
981 \Configure{MathDelimiters}...................2
982
983 #1 left
984 #2 right
985
986 \Configure{mathbin*}.........................4
987 \Configure{mathclose*}.......................4
988 \Configure{mathop*}..........................4
989 \Configure{mathopen*}........................4
990 \Configure{mathord*}.........................4
991 \Configure{mathpunct*}.......................4
992 \Configure{mathrel*}.........................4
993
994 #1 a character not presented in #2#3#4
995 #2 code before
996 #3 code after
997 #4 possible definitions for successive cases
998
999 Example:
1000 \Configure{mathop*}{*}{}{}
1001 {\Configure{mathop}{*}{<mo>}{</mo>}{}}
1002 \mathop{\overline{x \mathop{op} y}} \limits^{a=3}
1003
1004 \Configure{mathbin}..........................4
1005 \Configure{mathclose}........................4
1006 \Configure{mathopen}.........................4
1007 \Configure{mathop}...........................4
1008 \Configure{mathord}..........................4
1009 \Configure{mathpunct}........................4
1010 \Configure{mathrel}..........................4
1011
1012 Variants of the above group, requesting to supress nested marks.
1013
1014 \Configure{nolimits}.........................1
1015
1016 \MathSymbol
1017
1018 AtBeginDocument
1019 ---------------
1020
1021 \Configure{AtBeginDocument}..................2
1022
1023 #1 before the corresponding hook of latex
1024 #2 after
1025
1026 Insertions are accumulative, and can be erased by providing
1027 two empty arguments
1028
1029 Other Hooks
1030 -----------
1031
1032 \Configure{HChar}...................1
1033
1034 #1 a character
1035
1036 The \HChar{i} instruction inserts the character code i with the
1037 font information of character #1, when i is positive. If i is
1038 negative, the font info is not included.
1039
1040
1041 \Configure{Canvas}
1042 \Configure{ExitHPage}
1043 \Configure{LinkHPage}......................1
1044 \Configure{FontCss}
1045 \Configure{HVerbatim+}
1046 \Configure{MiniHalign}
1047 \Configure{Needs-}
1048 \Configure{Needs}
1049
1050
1051 \Configure{TraceTables}
1052 \Configure{edit}
1053 \Configure{halignTB}
1054 \Configure{halignTD}
1055 \Configure{halign}
1056 \Configure{hooks}
1057 \Configure{moveright}
1058
1059 \Configure{noalign-}
1060 \Configure{pic-halign}
1061
1062 \Configure{accent}
1063 \Configure{mathaccent}
1064 \Configure{accented}
1065 \Configure{accenting}
1066
1067
1068 Back-end Specials
1069 -----------------
1070 insertions
1071 ----------
1072 = \special{t4ht=...content...}
1073 Insert the specified content to the html output, under
1074 edef mode of processing, and without using the mapping
1075 of the htf fonts. Used in \HCode{...}.
1076 @ \special{[email protected]...}
1077 Insert the absolute value as character code to the output.
1078 Positve values ask the insertion to be included in place
1079 of the next chracter, together with the font information
1080 of that character.
1081 files
1082 -----
1083 > \special{t4ht>...file-name...}
1084 Open a new file, if needed, and direct future output
1085 to the specified file. Used in \File{...}.
1086 < \special{t4ht<...file-name...}
1087 Close the specified file. If it is the current file,
1088 activate the youngest file. Used in \EndFile{...}.
1089 >* \special{t4ht*>...file-name...}
1090 Declare the file to be the oldest.
1091 \special{t4ht*>}
1092 Reactivate the file that activated the current file.
1093 *< \special{t4ht*<file}
1094 Input file (with no processing)
1095 + \special{t4ht++file-name}...dvi...\special{t4ht+}
1096 Pipe the dvi code into a dvi page in the secondary dvi file
1097 `jobname.idv'. Used by \Picture{...}, e.g., for requesting
1098 gif's.
1099 + \special{t4ht+embeded-specials within idv}
1100 . \special{t4ht.ext}
1101 Change default ext of root file
1102 @D \special{t4ht@D....} Writes the content, augmented with a
1103 loc stamp, to the .lg file. The locations stamp consists
1104 a byte-address in a named output file.
1105
1106 character maps
1107 --------------
1108 ! \special{t4ht!...optional-parameters....}...dvi...\special{t4ht!}
1109 Create an approximated character map for the dvi code.
1110 Used in \Picture{...}, e.g., for ALT of IMG
1111 || \special{t4ht||}...\special{t4ht||}
1112 Use the non-pictorial characters of the htf fonts.
1113 Used for character maps of \Picture{....}
1114 @ \special{t4ht@-}....\special{t4ht@-}
1115 Remove left margin from character map. Used in \Picture{...}.
1116
1117 character settings
1118 ------------------
1119 @ \special{t4ht@@}....\special{t4ht@@}
1120 Insert the character codes, instead of their mappings through
1121 the htf fonts. Used in \JavaScript...
1122 @ \special{[email protected]...}, \special{[email protected]...}
1123 Introduce the character code into the output.
1124 Used by \HChar{...} and \HChar{-...}. The earlier one
1125 also inherites the current font info.
1126 @ \special{t4ht@+...string...}
1127 Replace the character code introduced by the next character
1128 with the specified string. The decoration of the character
1129 code is inherited, when the string is not empty. The string
1130 might include character codes by enclosing them between braces.
1131 @ \special{t4ht@*...string...}
1132 A variant \special{t4ht@+...string...} that inserts the content
1133 after the character instead of replacing it.
1134 @ \special{t4ht@(}
1135 Ignore spaces
1136 @ \special{t4ht@)}
1137 End ignore spaces
1138 @ \special{t4ht@[}
1139 Ignore chs and spaces
1140 @ \special{t4ht@]}
1141 End ignore chs and spaces
1142 @ \special{t4ht@[...}...\special{t4ht@]...}\special{t4ht@?...}
1143 Ignore chs and spaces, if the specials have the above
1144 syntax on identical strings.
1145 @ \special{t4ht@!}
1146 Get the last ignored spaces (none, if from previous lines).
1147 @ \special{t4ht@_....}
1148 Output character for rulers. Empty string is also allowed.
1149 @ \special{t4ht@.''''}
1150 Output for line break characters (empty
1151 content resets the default).
1152 @ \special{t4ht@,''''}
1153 Output for space characters (empty content resets the default).
1154
1155 dvi tracing
1156 -----------
1157 @ \special{t4ht@%X}...\special{t4ht@%x}
1158 Request dvi tracing.
1159
1160 X x
1161 P p groups
1162 C c characters
1163 H h horizontal spaces
1164 V v vertical spaces
1165 R r rulers
1166
1167 \special{t4ht@%%X*...open-del....*...close-del....}
1168 \special{t4ht@%%x*...open-del....*...close-del....}
1169 Tailor dvi tracing
1170
1171 @ \special{t4ht@/}
1172 On/off tracing of specials.
1173 @ \special{t4ht@e...}
1174 String for tracing errors into the output.
1175 ; \special{t4ht;....}
1176 Decorations for htf characters (e.g., css)
1177 8 pause
1178 9 end pause
1179 |... pattern
1180 =... show font name of char
1181 %... show font size of char
1182 , don't report next htf class to lg
1183 - set default font info
1184 + unset default font info
1185 ^ \special{t4ht^i}$symbols$\special{t4ht^}}'
1186 Requests math class i for the listed math symbols.
1187
1188 Tex assignes class numbers 0--7 to the atoms of math
1189 formulas: 0--ordinary symbol, 1--large operator, 2--binary
1190 operation, 3--relational operation, 4--math delimiter,
1191 5--right delimiter, 6--punctuation mark, and 7--adjustable.
1192 TeX4ht adds classes 8 and 9, while using
1193 class 7 independently
1194 \special{t4ht^}
1195 on/off processing delimiters
1196 \special{t4ht^-}
1197 pause processing delimeters
1198 \special{t4ht^+}
1199 continue processing delimeters
1200 \special{t4ht^i}
1201 on/off processing delimiters of class i
1202 \special{t4ht^i*...*...}
1203 configure delimiters for class i. * can be any
1204 character distinguished for the group.
1205 \special{t4ht^i(}
1206 put delimiters of class i on next group
1207 \special{t4ht^i)}
1208 As before, but ignore the delimeters within the sub-group.
1209 \special{t4ht^)*...*...}
1210 put the specified delimiters on next group.
1211 Ignore delimeters within the group.
1212 \special{t4ht^<*...*...}
1213 put the specified delimiters on the next group.
1214 Don't ignore delimeters within the group.
1215 dvi arithmetic
1216 --------------
1217 : \special{t4ht:....}
1218 Dvi-mode arithmetics.
1219 :+... increment by 1( define, if not defined)
1220 :-... decrement by 1
1221 :>... push current value
1222 :<... pop current value
1223 :!... display current value
1224 :|... display top value
1225
1226 messages to lg file
1227 -------------------
1228 + \special{[email protected]...}
1229 Send message to the lg file. Used in the \Needs{...} command.
1230 @ \special{t4ht@D....}
1231 Send message to the lg file, together with location and file
1232 stamp.
1233
1234 positional code
1235 -------------------
1236 " \special{t4ht"}
1237 Start/end positional env
1238 \special{t4ht"* before-all * after-all ...** before-char
1239 * after-char * rect
1240 *%A*%B*%C*%D*%E
1241 * optional
1242 Configure positioned code
1243 * before-all
1244 * after-all %...
1245 ** before-char %x %y
1246 * after-char
1247 * rect %x1 %y1 ...
1248 * x,x1-coefficients %A(x) + %B
1249 * y1-coefficients %C(y1 - %E(height)) + %D
1250 * y-coefficients %C(y) + %D
1251 * optional: 1, 2
1252
1253 %x1 %y1 %length %thickness default
1254 %x1 %y1 %x1+length %y1+thickness 1
1255 %x1 %y1 %x1+length %y1 %thickness 2
1256
1257 A-magnification, B-displacement
1258 C-magnification, D-displacement,
1259 E- origin (0: top, 0.5: mid, 1: bot)
1260
1261 The %...'s should be c-type templates (e.g., "%.2f"; "%.0f"
1262 gives an integer)
1263
1264 Multiple after-all templates are allowed. The leading
1265 character is a code specifying the dimension type.
1266 x min x
1267 X max x
1268 y min y
1269 Y max y
1270 d dx
1271 D dy
1272 otherwise a string with no values
1273 The delimiter `*' can be substitued by another character.
1274
1275
1276 ~ \special{t4ht~...}
1277 Grouped-base two-way delivery for content created by
1278 inline commands like \over.
1279
1280 \special{t4ht~}...\special{t4ht~} on/off
1281
1282 ~<i... send forward to the start of the group nested
1283 at relative level i.
1284 ~>i... send forward to the end of the group nested
1285 at relative level i.
1286 i=0, current group
1287
1288
1289 ~<*... send back to start of previous token / group.
1290 \special{t4ht~<)}...\special{t4ht~<(}
1291 activate / deactivate back token / group submissions
1292 \special{~<[}...\special{t4ht~<]}'
1293 hide region from back submissions over token / group
1294 \special{t4ht~<-} ... \special{t4ht~<+}
1295 latex back token / group
1296
1297 \special{t4ht\string~!...path...<...content}
1298 insertion at the start of the group reached by the path
1299 \special{t4ht\string~!...path...>...content}
1300 insertion at the end of the group reached by the path
1301 \special{t4ht\string~!...path.../}
1302 ignore content within the group reached by the path
1303 \special{t4ht\string~!...path...-}
1304 ignore rulers from the group reached by the path
1305 until the start of the next group
1306 A path may consist only of `e' and `s' characters for,
1307 respectively, entering and skipping groups
1308
1309 *! \special{t4ht*! system command}
1310 System call
1311 *^ accent specials
1312 t text accent #1#2#1#3#1#4#1#5#1#6 pattern
1313 empty insertion point
1314 m math accent #1#2#1#3#1#4#1#5#1 pattern
1315 empty insertion point
1316 a accented #1#2#1#3#1#4#1#5#1#6
1317 i #1#2#1#3#1#1
1318 *@ halign specials
1319
1320 \HCode...............................1
1321
1322 A wrapper for \special{t4ht=...}.
1323
1324 The sharp symbol # may be accessed indirectly through the command.
1325
1326 \Hnewline............................0
1327
1328 Requests new lines within specials
1329 >>>
1330
1331 %%%%%%%%%%%%%%%
1332 \section{latex}
1333 %%%%%%%%%%%%%%%
1334
1335
1336
1337
1338
1339 \>>>VBorder<<<
1340 \Configure{VBorder}...................4
1341
1342 Break points, when scanning the pattern of column desriptions, at
1343
1344 #1 at start of pattern
1345 #2 at |
1346 #3 at a non-@ entry
1347 #4 at a @ entry
1348
1349 Applies to \begin{tabular / array}{...pattern...}
1350
1351 \ar:cnt index of entry in pattern
1352 \ch:class records the current alignment type: -,<,>,p,...
1353 \HColAlign produces the \Configure{halignTD} contribution
1354 for the current alignment type
1355 \HColWidth holds the width of the current p column
1356
1357 \Configure{HBorder}..................10
1358
1359 hline:
1360 #1 insert at start of row (e.g., <tr>)
1361 #2 insert at each cell (e.g., <td><hr/></td>)
1362 #3 insert at end of row (e.g., </tr>)
1363
1364 cline:
1365 #4 insert at start of row (e.g., <tr>)
1366 #5 insert at each `extra' cell (e.g., <td></td>)
1367 #6 insert at each cell (e.g., <td><hr/></td>)
1368 #7 insert at end of row (e.g., </tr>)
1369
1370 vspace:
1371 #8 insert at start of row (e.g., <tr>)
1372 #9 insert at each cell (e.g., <td>&nbsp;</td>)
1373 #10 insert at end of row (e.g., </tr>)
1374
1375 The contributions are collected into \HBorder. (The \InitHBorder
1376 clears \HBorder.)
1377
1378 \Configure{putHBorder}...............1
1379 #1 Specifies how \HBorder is to be used.
1380
1381 Example: \Configure{putHBorder}{\HCode{\HBorder}}
1382
1383 >>>
1384
1385 \<configure info4ht latex\><<<
1386 Sectioning
1387 ----------
1388
1389 \Configure{@sec @ssect}
1390
1391
1392 Tables of Contents
1393 ------------------
1394
1395
1396 \Configure{tableofcontents}........................5
1397
1398 #1 before
1399 #2 at end
1400 #3 after
1401 #4 at indented paragraph break
1402 #5 at non-indented paragraph break
1403
1404 The \tableofcontents command may be followed by a comma separated
1405 list of sectioning unit names to be included in the table of
1406 contents. The list should be enclosed within square brackets.
1407 Alternatively, a command of the form \TableOfContents[...] might
1408 be used.
1409
1410 Lists
1411 -----
1412
1413 \ConfigureList.....................5
1414
1415 #1 type of list (e.g., itemize, description, enumerate,
1416 list, trivlist)
1417 #2 before list
1418 #3 after list
1419 #4 before label
1420 #5 after label
1421
1422 \DeleteMark removes latex's label; to be placed at the end of #4
1423 \AnchorLabel defines an anchor for \label in current item; to
1424 be placed in #5
1425
1426
1427 Tables
1428 ------
1429
1430 \Configure{tabular}...................6
1431 \Configure{array}.....................6
1432
1433 #1 before table #2 after table
1434 #3 before row #4 after row
1435 #5 before cell #6 after cell
1436
1437 \HRow current row number
1438 \HCol current column number
1439 \HMultispan number of cells covered by the current cell
1440 \ar:cnt number of columns in the table
1441
1442 NOTE: Table require a number of compilations that depends
1443 on the number of columns.
1444
1445 Example
1446
1447 \Configure{tabular}
1448 {\HCode{<table>}}
1449 {\HCode{</table>}}
1450 {\HCode{<tr class="row-\HRow">}}
1451 {\HCode{</tr>}}
1452 {\HCode{<td
1453 \ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}
1454 {\HCode{</td>}}
1455
1456 |VBorder
1457
1458 \Configure{halignTD}..................2 + 2i + {}
1459
1460 interpretation for character codes referenced in \HAlign
1461
1462 e.g.,
1463
1464 \Configure{halignTD}
1465 {}{}
1466 {<}{\HCode{style="text-align:left"}}
1467 {-}{\HCode{style="text-align:center"}}
1468 {>}{\HCode{style="text-align:right"}}
1469 {^}{\HCode{style="vertical-align:top"}}
1470 {=}{\HCode{style="vertical-align:baseline"}}
1471 {||}{\HCode{style="vertical-align:middle"}}
1472 {_}{\HCode{style="vertical-align:bottom"}}
1473 {p}{\HCode{style="text-align:left"}}
1474 {}
1475
1476 \halignTD can be used in td elements to extract the alignment.
1477 It recieves information from \halignTB.
1478
1479 \Configure{halignTB}..................2
1480
1481 delimiters for \halignTB{tabular}
1482
1483 Example
1484 \Configure{halignTB}{\HCode{<table }}{\HCode{>}}
1485
1486 \Configure{tabbing}[mag]..................4
1487
1488 #1 before each line
1489 #2 after each line
1490 #3 before each entry
1491 #4 after each entry
1492
1493 [mag] optional parameter specifying the magnification desired
1494 for the dimensions. When offered, the other parameters
1495 have no effect if all of them are assigned empty arguments
1496
1497 \TabType \` or \relax
1498 \TabWidth Provides the entry width; 0 at trailing entry that is
1499 not flushed rightward
1500
1501
1502 Cross References
1503 ----------------
1504
1505 \Configure{ref}.......................3
1506
1507 #1 \Link-type command
1508 #2 \EndLink-type command
1509 #3 anchor (the system anchor is
1510 reachable through the parameter name #1)
1511 \RefArg Holds the argument of \ref
1512
1513 If #1 is empty, the hyper links are ignored
1514 If #3 is empty, the anchor is the one provided by the system
1515
1516 Example:
1517
1518 \Configure{ref}{\Link}{\EndLink}{{\bf #1}}
1519
1520 \Configure{pageref}...................3
1521
1522 #1 before
1523 #2 after
1524 #3 anchor (system anchor, if parameter is empty)
1525
1526 \Configure{newlabel}..................2
1527
1528 #1 address for hyperlink (\cur:th \:currentlabel, if empty)
1529 #2 anchor (the system anchor is
1530 reachable through the parameter name #1)
1531
1532 \Configure{@newlabel}.................1
1533
1534 #1 modifications to the newlabel environment
1535
1536 \Configure{newlabel-ref}..............1
1537
1538 #1 an intermediate link command for the aux file
1539 (Configured by \Configure{ref}...)
1540
1541 The default for #1 is \rEfLiNK
1542
1543 \Configure{cite}......................4
1544
1545 #1 before
1546 #2 after
1547 #3 \Link-type command
1548 #4 \EndLink-type command
1549
1550 If #3 is empty, the hyper links are ignored.
1551
1552 \Configure{bibitem}...................2
1553
1554 #1 \Link-type command
1555 #2 \EndLink-type command
1556
1557 \Configure{bibcite}...................1
1558
1559 #1 configurations for content transfered by bibitem to the aux file
1560
1561 Example:
1562 \Configure{bibcite}
1563 {\def\hookrightarrow{\string\hookrightarrow}}
1564 \bibitem[$\hookrightarrow$...]{...}
1565
1566
1567 \LoadLabels[#1]{#2}....................
1568
1569 [#1] optional group name
1570 #2 aux file name, without the extension
1571
1572 Loads labels of another file, under the specified group name
1573
1574 \RefLabel.............................2
1575
1576 #1 group name (for separating files and labels from
1577 different sources)
1578 #2 label
1579
1580 A variant of \ref for loading labels produced for other files
1581
1582 Example:
1583 file1.tex: \label{foo}
1584
1585 file2.tex: \LoadLabels[x]{file1}
1586 \RefLabel{x}{foo}
1587
1588 \SkipRefstepAnchor.....................0
1589
1590 No \Link anchor for next \refstepcounter
1591
1592 \ShowRefstepAnchor.....................0
1593 \AutoRefstepAnchor.....................0
1594
1595
1596 Bibliography on bibtex2 option:
1597
1598 \Configure{bibliography2}........................ 4
1599
1600 #1 before anchor
1601 #2 anchor
1602 #3 after anchor
1603 #4 link attributes
1604
1605 Example:
1606
1607 \Configure{bibliography2}
1608 {\bgroup ~~[\Configure{Link}{a}{target="x" href=}{ name=}{}}
1609 {more} {]\egroup}
1610
1611 \Configure{bibitem2}..............................3
1612
1613 #1 at start of bibitem
1614 #2 at end of bibitem
1615 #3 separator after label
1616
1617 \Configure{bibliographystyle2}....................1
1618
1619 #1 an empty argument asks for the same style as the
1620 normal aux file (still bibtex may produce different
1621 output).
1622
1623 Note: Option `bibtex2' requires compilation
1624 of `\jobname j.aux' with bibtex.
1625
1626 Captions
1627 --------
1628
1629 refcaption
1630
1631 An option for \Preamble, requesting anchors at \caption. The default
1632 setting sends them back to the start of the floating environment.
1633
1634
1635 Theorems
1636 --------
1637
1638 \Configure{newtheorem} ......................3
1639
1640 #1 before theorem
1641 #2 between title and body
1642 #3 after theorem
1643
1644 Math
1645 ----
1646 \Configure{()}...............................2
1647 \Configure{[]}...............................2
1648
1649 Example:
1650
1651 \Configure{()}{\protect\PicMath$}{$\protect\EndPicMath}
1652 \Configure{[]} {\Tg<display>\DviMath$$} {$$\EndDviMath\Tg</display>}
1653
1654 \Configure{equation}.........................3
1655
1656 #1 at start
1657 #2 between the equation and its numbering
1658 #3 at end
1659
1660 Examples:
1661
1662 \Configure{equation}
1663 {\IgnorePar\EndP\bgroup \Configure{HtmlPar}{}{}{}{}%
1664 \HCode{<table class="equation"><tr><td>}\IgnorePar
1665 }
1666 {\HCode{</td><td class="eq-number">}}
1667 {\HCode{</td></tr></table>}\egroup}
1668
1669 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1670
1671 \Configure{equation}
1672 {\IgnorePar\EndP \bgroup \Configure{$$}{}{}{}%
1673 \Configure{@math}{display="inline"}\DviMath
1674 \HCode{<mtable class="equation"><mtr><mtd>}\IgnorePar
1675 }
1676 {\IgnorePar\HCode{</mtd><mtd class="eq-number">}}
1677 {\HCode{</mtd></mtr></mtable>}\EndDviMath\egroup}
1678
1679
1680 \Configure{frac}.............................4
1681 \Configure{sqrtsign}.........................2
1682
1683 \Configure{mbox}.............................2
1684
1685 Environments of latex
1686 ---------------------
1687
1688 \ConfigureEnv{...}.........................4
1689
1690 #1 environment name
1691 #2 before env
1692 #3 after env
1693 #4 before underlying list
1694 #5 after underlying list
1695
1696 #2 and #3 are ignore when they are both empty as well as
1697 when there is no underlying list
1698
1699
1700 array
1701 center
1702 flushleft
1703 flushright
1704 minipage
1705 tabbing
1706 tabular
1707 verbatim*
1708 verbatim
1709
1710
1711 \Configure{@begin}........................2
1712
1713 #1 environment name
1714 #2 insertion before the environment
1715
1716 Example:
1717 \Configure{@begin}{theindex}{\section*{\indexname}}
1718
1719
1720 Verbatim
1721 --------
1722
1723 \Configure{verbatim}......................2
1724
1725 #1 at start of line
1726 #2 space character
1727
1728 \Configure{verb}..........................2
1729
1730 #1 before
1731 #2 after
1732
1733 \Configure{obeylines}.....................3
1734
1735 #1 before
1736 #2 at start of line
1737 #3 after
1738
1739 \ScriptEnv................................3
1740
1741 Introduces a verbatim environent
1742
1743 #1 name
1744 #2 before
1745 #3 after
1746
1747 A `-' immediately after \begin{...} designate as an escape symbol
1748 the character following the dash
1749
1750 Example:
1751
1752 \ScriptEnv{foo}
1753 {\HCode{<myscript>}\NoFonts\hfill\break }
1754 {\EndNoFonts \HCode{</myscript>}}
1755
1756 \begin{foo}
1757 ....
1758 ....
1759 \end{foo}
1760
1761 \begin{foo}-|
1762 ....
1763 ....
1764 \end{foo}
1765
1766
1767 Fonts
1768 -----
1769
1770 \Configure{texttt}........................2
1771 \Configure{textit}........................2
1772 \Configure{textrm}........................2
1773 \Configure{textup}........................2
1774 \Configure{textsl}........................2
1775 \Configure{textsf}........................2
1776 \Configure{textbf}........................2
1777 \Configure{textsc}........................2
1778 \Configure{emph}..........................2
1779
1780 #1 before content
1781 #2 after content
1782
1783
1784 Footnotes
1785 ---------
1786
1787 \Configure{footnotetext}..................3
1788
1789 #1 before footnote
1790 #2 between mark and content
1791 #3 after footnote
1792
1793 \FNnum footnote number
1794
1795 \Configure{footnotemark}..................2
1796
1797 #1 before
1798 #2 after
1799
1800 Pictures
1801 --------
1802
1803 \Configure{picture}.......................2
1804
1805 #1 before
1806 #2 after
1807
1808 Other Hooks
1809 -----------
1810
1811 \Configure{ }.........................1
1812
1813 #1 representation for non-breaking space ch
1814
1815 \Configure{hline}.....................1
1816
1817 \Configure{hspace} ...................3
1818
1819 \tmp:dim register holding the size
1820 #1 before the space
1821 #2 after the space
1822 #3 after #1 (\tmp:dim mod 6em copies)
1823
1824 \Configure{vspace} ...................1
1825
1826 #1 the size of space is prvided in a parameter nmaed `#1'
1827
1828 Example:
1829
1830 \Configure{vspace}
1831 {\ifhmode
1832 \HCode{<br />}%
1833 \ifdim #1>1ex \HCode{<br />}\fi
1834 \fi
1835 }
1836
1837 \Configure{fbox} .................................. 2
1838
1839 Examples:
1840
1841 \Configure{fbox}
1842 {\HCode{<div class="fbox">}\bgroup \fboxrule=0pt}
1843 {\egroup\HCode{</div>}}
1844 \Css{div.fbox {border: 1pt solid black;}}
1845
1846 \Configure{fbox}
1847 {\HCode{<table cellspacing="0pt"
1848 border="1"><tr><td>}\bgroup \fboxrule=0pt}
1849 {\egroup\HCode{</td></tr></table>}}
1850
1851 \Configure{'} ..................................... 3
1852
1853 #1 at entry to math prime environment
1854 #2 at exit
1855 #3 content of \prime
1856
1857 \Configure{float}....................................
1858 #1 optional, to appear within brakects [ and ]. An anchor for
1859 the links preceeding the float, when option refcaption is
1860 not active
1861 #2 Insertion before the links
1862 #3 at start
1863 #4 at end
1864
1865 \Configure{textcircled}.............................2n+1
1866 2i'th replaced i=1,...,n
1867 2i+1'st replacement
1868 2n+'nd empty (terminator)
1869
1870
1871 \Configure{add accent}{#1:#2}{#3}{#4}...{}{}
1872 #1 encoding
1873 #2 font number
1874 #3 character under font
1875 #4 replacement
1876
1877 Applies to accents that reach \add@accent
1878
1879 Example:
1880
1881 \Configure{add accent}{OT4:18}
1882 {E}{\add:acc{00C8}}
1883 {e}{\add:acc{00E8}}
1884 {}{}
1885
1886
1887
1888
1889 \Configure{//[]}
1890 \Configure{AfterTitle}
1891 \Configure{HAccent}
1892 \Configure{InsertTitle}
1893 \Configure{accents}
1894 \Configure{accent}
1895 \Configure{centercr}
1896 \Configure{centerline}
1897
1898 \Configure{displaylines}
1899 \Configure{framebox}
1900
1901 \Configure{leftline}
1902 \Configure{marginpar}
1903 \Configure{mathaccent}
1904 \Configure{newline}
1905 \Configure{oalign}
1906
1907 \Configure{overline}
1908
1909 \Configure{rightline}
1910 \Configure{stackrel}
1911 \Configure{tt}
1912 \Configure{underline}
1913 \Configure{thanks}....................2
1914
1915 >>>
1916
1917
1918 %%%%%%%%%%%%%%%
1919 \section{book}
1920 %%%%%%%%%%%%%%
1921
1922
1923 \>>>maketitleInfo<<<
1924 Title Page
1925 ----------
1926 \Configure{maketitle}.....................4
1927
1928 #1 start of maketitle
1929 #2 end of maketitle
1930 #3 before title
1931 #4 after title
1932
1933 \Configure{thanks author date and}........8
1934
1935 #1 before thanks
1936 #2 after thanks
1937 #3 before author
1938 #4 after author
1939 #5 before date
1940 #6 after date
1941 #7 representation of `and'
1942 #8 line breaks (= end of rows, for an embedded tabular environment)
1943 >>>
1944
1945 \>>>thebibliographyInfo<<<
1946 Bibliography
1947 ------------
1948
1949 \ConfigureList{thebibliography}......4
1950
1951 #1 before list
1952 #2 after list
1953 #3 before label
1954 #4 after label
1955
1956 \DeleteMark removes latex's label; to be placed at the end of #3
1957 \AnchorLabel defines an anchor for \label in current item; to
1958 be placed in #4
1959
1960 \Configure{cite} see the
1961 \Configure{bibitem} latex section
1962 >>>
1963
1964
1965
1966
1967
1968 \>>>tableofcontentsStr<<<
1969 \Configure{tableofcontents*}.......................1
1970
1971 #1 A non-empty parameter asks to implicitly introduce
1972 a \tableofcontents upon reaching the first sectioning
1973 command, if no \tableofcontents command is encountered
1974 earlier. The parameter assumes a colon-separated list
1975 of sectioning types to be included in the output
1976 of \tableofcontents. Starred variants of sectioning
1977 types should be referenced with the `like' prefix.
1978
1979 An empty parameter cancels earlier requests for implicit
1980 calls to \tableofcontents (e.g., embedded within requests
1981 to package options 1, 2, 3, 4)
1982
1983 Example:
1984
1985 \Configure{tableofcontents*}{part,likepart,%
1986 section,likesection,subsection,likesubsection}
1987
1988 \contentsname
1989
1990 A LaTeX macro stating the title for a table of contents division.
1991 >>>
1992
1993 \>>>theindex<<<
1994 \Configure{theindex} ..........................9
1995
1996 #1 before-env
1997 #2 after-env
1998 #3 before-item
1999 #4 after-item
2000 #5 before-subitem
2001 #6 after-subitem
2002 #7 before-subsubitem
2003 #8 after-subsubitem
2004 #9 at-indexspace
2005
2006 Example:
2007
2008 \Configure{theindex}
2009 {\HCode{<ul class="theindex">}\global\let\IndexSpace=\empty}
2010 {\HCode{</ul>}}
2011 {\HCode{<li \IndexSpace>}\global\let\IndexSpace=\empty}
2012 {\HCode{</li>\Hnewline}}
2013 {\HCode{<li>}\ \ \ \ } {\HCode{</li>\Hnewline}}
2014 {\HCode{<li>}\ \ \ \ \ \ \ \ } {\HCode{</li>\Hnewline}}
2015 {\global\def\IndexSpace{class="indexspace"}}
2016
2017 \Css{.indexspace{margin-top:1em;}}
2018
2019 The links are indirectly requested in the idx files within
2020 \beforeentry macros. For instance, a file try.tex
2021
2022 \documentclass{article}
2023 \makeindex
2024 \begin{document}
2025
2026 \section{xx}
2027
2028 \index{a1} x
2029 \index{a2} x
2030 \index{a2} x
2031 \index{b1} x
2032 \index{b2} x
2033 \index{b3} x
2034
2035 \input \jobname.ind
2036
2037 \end{document}
2038
2039 produces a file try.idx of the form
2040
2041 \beforeentry{try.html}{dx1-1001}{}
2042 \indexentry{a1}{1}
2043 \beforeentry{try.html}{dx1-1002}{}
2044 \indexentry{a2}{1}
2045 \beforeentry{try.html}{dx1-1003}{}
2046 \indexentry{a2}{1}
2047 \beforeentry{try.html}{dx1-1004}{}
2048 \indexentry{b1}{1}
2049 \beforeentry{try.html}{dx1-1005}{}
2050 \indexentry{b2}{1}
2051 \beforeentry{try.html}{dx1-1006}{}
2052 \indexentry{b3}{1}
2053
2054 where each pair
2055
2056 \beforeentry{A}{B}{}\indexetry{C}{D}
2057
2058 represents an entry of the form
2059
2060 \indexentry{\Link[A]{B}{}C\EndLink}{D}
2061
2062 The makeindex utility ignores the \beforeentry records. To compensate
2063 for that, one needs to pre-process the idx file which is introduced to
2064 the makeindex utility and/or post-process the output of the utility.
2065
2066 A script consisting of two instructions similar to
2067
2068 tex '\def\filename{{try}{idx}{4dx}{ind}} \input idxmake.4ht'
2069 makeindex -o try.ind try.4dx
2070
2071 instead of
2072
2073 makeindex -o try.ind try.idx
2074
2075 should do the job.
2076
2077 On some platforms, the quotation marks ' should be
2078 replaced by double quotation marks " or eliminated.
2079
2080 \Configure{makeindex} ..........................1
2081
2082 The default setting, requests consecutive numbers for the
2083 pointers in the indexes. The current command provides the
2084 means to configure the pointers to other values.
2085
2086 Example: \Configure{makeindex}{Sec \arabic{section}}
2087 >>>
2088
2089
2090
2091
2092 \<configure info4ht book\><<<
2093 |maketitleInfo
2094
2095 Sectioning
2096 ----------
2097
2098 \Configure{part}
2099 \Configure{section}
2100 \Configure{subsection}
2101 \Configure{subsubsection}
2102 \Configure{paragraph}
2103 \Configure{subparagraph}
2104
2105 \Configure{likepart}
2106 \Configure{likechapter}
2107 \Configure{likesection}
2108 \Configure{likesubsection}
2109 \Configure{likesubsubsection}
2110 \Configure{likeparagraph}
2111 \Configure{likesubparagraph}
2112 |thebibliographyInfo
2113
2114
2115 \ConfigureToc
2116
2117 lof, lot, appendix, chapter, likechapter, likeparagraph, likepart,
2118 likesection, likesubparagraph, likesubsection, likesubsubsection,
2119 paragraph, part, section, subparagraph, subsection, subsubsection
2120
2121
2122 \Configure{appendixTITLE+}........1
2123 \Configure{chapterTITLE+}.........1
2124 \Configure{partTITLE+}............1
2125 \Configure{sectionTITLE+}.........1
2126 \Configure{subsectionTITLE+}......1
2127 \Configure{subsubsectionTITLE+}...1
2128
2129 #1 the content of <TITLE>
2130
2131 The insertion overrides the one offered by \Configure{CutAtTITLE+}
2132 for the given section type (the `like' counterparts acn also be
2133 configured).
2134
2135 The sectioning title content can be accessed through the parameter #1.
2136
2137 Example:
2138
2139 \Configure{chapterTITLE+}{Synodos - #1}
2140
2141 \Configure{endpart}................1
2142 \Configure{endchapter}.............1
2143 \Configure{endsection}.............1
2144 \Configure{endsubsection}..........1
2145 \Configure{endsubsubsection}.......1
2146 \Configure{endparagraph}...........1
2147 \Configure{endsubparagraph}........1
2148 \Configure{endappendix}............1
2149 \Configure{endlikepart}............1
2150 \Configure{endlikechapter}.........1
2151 \Configure{endlikesection}.........1
2152 \Configure{endlikesubsection}......1
2153 \Configure{endlikesubsubsection}...1
2154 \Configure{endlikeparagraph}.......1
2155 \Configure{endlikesubparagraph}....1
2156
2157 #1 a comma separated list specifying the end
2158 points for the configured logical unit
2159
2160 e.g., \Configure{endsection}
2161 {likesection,chapter,likechapter,appendix,part,likepart}
2162
2163
2164
2165 |tableofcontentsStr
2166
2167
2168 Index (\theindex)
2169 -----------------
2170
2171 |theindex
2172
2173
2174 Environments of book:
2175 ---------------------
2176
2177 \ConfigureEnv{...}.........................4
2178
2179 description
2180 figure
2181 figure*
2182 quotation
2183 quote
2184 table
2185 table*
2186 thebibliography
2187 titlepage
2188 verse
2189
2190 \Configure{listof}
2191
2192 \Configure{appendix}
2193 \Configure{caption}
2194 \Configure{chapter}
2195 >>>
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205 \section{report}
2206
2207 \<configure info4ht report\><<<
2208 |maketitleInfo
2209 |thebibliographyInfo
2210
2211
2212 \ConfigureList{description}%
2213
2214 \ConfigureToc
2215
2216 lof, lot, appendix, chapter, likechapter, likeparagraph, likepart,
2217 likesection, likesubparagraph, likesubsection, likesubsubsection,
2218 paragraph, part, section, subparagraph, subsection, subsubsection
2219
2220
2221 \Configure{appendixTITLE+}
2222 \Configure{chapterTITLE+}
2223 \Configure{partTITLE+}
2224 \Configure{sectionTITLE+}
2225 \Configure{subsectionTITLE+}
2226 \Configure{subsubsectionTITLE+}
2227
2228 #1 an insertion just before the content of <TITLE>;
2229
2230 The insertion overrides the one offered by \Configure{CutAtTITLE+}
2231 for the given section type (the `like' counterparts acn also be
2232 configured).
2233
2234 If #1 is a one parametric macro, it gets the title content for
2235 an argument.
2236
2237
2238 \Configure{endpart}................1
2239 \Configure{endchapter}.............1
2240 \Configure{endsection}.............1
2241 \Configure{endsubsection}..........1
2242 \Configure{endsubsubsection}.......1
2243 \Configure{endparagraph}...........1
2244 \Configure{endsubparagraph}........1
2245 \Configure{endappendix}............1
2246 \Configure{endlikepart}............1
2247 \Configure{endlikechapter}.........1
2248 \Configure{endlikesection}.........1
2249 \Configure{endlikesubsection}......1
2250 \Configure{endlikesubsubsection}...1
2251 \Configure{endlikeparagraph}.......1
2252 \Configure{endlikesubparagraph}....1
2253
2254 #1 a comma separated list specifying the end
2255 points for the configured logical unit
2256
2257 e.g., \Configure{endsection}
2258 {likesection,chapter,likechapter,appendix,part,likepart}
2259
2260
2261 |tableofcontentsStr
2262
2263
2264 \Configure{appendix}................4
2265 \Configure{chapter}
2266 \Configure{likechapter}
2267 \Configure{likeparagraph}
2268 \Configure{likepart}
2269 \Configure{likesection}
2270 \Configure{likesubparagraph}
2271 \Configure{likesubsection}
2272 \Configure{likesubsubsection}
2273 \Configure{paragraph}
2274 \Configure{part}
2275 \Configure{section}
2276 \Configure{subparagraph}
2277 \Configure{subsection}
2278 \Configure{subsubsection}
2279
2280
2281 |theindex
2282
2283 Environments of report:
2284 ----------------------
2285
2286 \ConfigureEnv{...}.........................4
2287
2288 abstract
2289 description
2290 figure
2291 figure*
2292 quotation
2293 quote
2294 table
2295 table*
2296 thebibliography
2297 titlepage
2298 verse
2299
2300 \Configure{listof}
2301 \Configure{thanks author date and}
2302 \Configure{caption}
2303 >>>
2304
2305 \section{article}
2306
2307 \<configure info4ht article\><<<
2308 |maketitleInfo
2309
2310 Sectioning Commands
2311 -------------------
2312 \Configure{part}...................4
2313 \Configure{section}................4
2314 \Configure{subsection}.............4
2315 \Configure{subsubsection}..........4
2316 \Configure{paragraph}..............4
2317 \Configure{subparagraph}...........4
2318
2319 #1 before division
2320 #2 after division
2321 #3 before title
2322 #4 after title
2323
2324 \Configure{likepart}...............4
2325 \Configure{likesection}............4
2326 \Configure{likesubsection}.........4
2327 \Configure{likesubsubsection}......4
2328 \Configure{likeparagraph}..........4
2329 \Configure{likesubparagraph}.......4
2330
2331 starred versions of the sectioning commands
2332
2333 \Configure{endpart}................1
2334 \Configure{endsection}.............1
2335 \Configure{endsubsection}..........1
2336 \Configure{endsubsubsection}.......1
2337 \Configure{endparagraph}...........1
2338 \Configure{endsubparagraph}........1
2339 \Configure{endlikepart}............1
2340 \Configure{endlikesection}.........1
2341 \Configure{endlikesubsection}......1
2342 \Configure{endlikesubsubsection}...1
2343 \Configure{endlikeparagraph}.......1
2344 \Configure{endlikesubparagraph}....1
2345
2346 #1 a comma separated list specifying the end
2347 points for the configured logical unit
2348
2349 e.g., \Configure{endsection}
2350 {likesection,chapter,likechapter,appendix,part,likepart}
2351
2352 \Configure{partTITLE+}
2353 \Configure{sectionTITLE+}
2354 \Configure{subsectionTITLE+}
2355 \Configure{subsubsectionTITLE+}
2356
2357
2358 #1 an insertion just before the content of <TITLE>;
2359
2360 The insertion overrides the one offered by \Configure{CutAtTITLE+}
2361 for the given section type (the `like' counterparts acn also be
2362 configured).
2363
2364 If #1 is a one parametric macro, it gets the title content for
2365 an argument.
2366
2367
2368 |thebibliographyInfo
2369
2370 Tables of Content
2371 -----------------
2372 \ConfigureToc
2373
2374 lof, lot, appendix, chapter, likechapter, likeparagraph, likepart,
2375 likesection, likesubparagraph, likesubsection, likesubsubsection,
2376 paragraph, part, section, subparagraph, subsection, subsubsection,
2377
2378 |tableofcontentsStr
2379
2380
2381 Captions
2382 --------
2383
2384 \Configure{caption}...............4
2385
2386 #1 before number #2 after number
2387 #3 before title #4 after title
2388
2389 Indexes
2390 -------
2391
2392 |theindex
2393
2394 Environments of article:
2395 ------------------------
2396
2397 \ConfigureEnv{...}.........................4
2398
2399 abstract
2400 description
2401 figure
2402 figure*
2403 quotation
2404 quote
2405 table
2406 table*
2407 thebibliography
2408 titlepage
2409 verse
2410
2411 Other Hooks
2412 -----------
2413 \Configure{listof}
2414 >>>
2415
2416 \section{fontmath}
2417
2418 \<configure info4ht fontmath\><<<
2419 \Configure{mathbf}........................2
2420 \Configure{mathit}........................2
2421 \Configure{mathrm}........................2
2422 \Configure{mathsf}........................2
2423 \Configure{mathtt}........................2
2424
2425 #1 before content
2426 #2 after content
2427
2428 \Configure{overbrace}.................3
2429 \Configure{underbrace}................3
2430 >>>
2431
2432
2433 \section{graphics}
2434
2435 \<configure info4ht graphics\><<<
2436 \Configure{graphics}...............2
2437
2438 #1 before \includegraphics
2439 #2 after \includegraphics
2440
2441
2442 Examples:
2443
2444 \Configure{graphics}
2445 {\Picture+[PIC]{ class="graphics"}}
2446 {\EndPicture }
2447
2448 \Configure{graphics}
2449 {\bgroup
2450 \Configure{IMG}
2451 {\ht:special{t4ht=<img src="}}
2452 {\ht:special{t4ht=" alt="}}
2453 {" }
2454 {\ht:special{t4ht=" }}
2455 {}%
2456 \Picture+[PIC]{}}
2457 {\EndPicture
2458 \def\temp{.pstex}\expandafter\ifx
2459 \csname Gin@ext\endcsname\temp
2460 \HCode{ width="75\%" }\fi
2461 \HCode{ />}%
2462 \egroup}
2463
2464
2465 \Configure{graphics*}..............2
2466
2467 #1 extension name
2468 #2 insertion
2469
2470 \Gin@base (file name), \Gin@ext, \Gin@req@width, \Gin@req@height,
2471 \noBoundingBox (defined iff bounding box is unknown)
2472
2473 Allows to configure tex4ht for graphics files named in
2474 the \includegraphics macro, based on the type of the files.
2475
2476 An empty insertion #2 cancels previous requests for the
2477 specified extension.
2478
2479 Example:
2480
2481 \Configure{graphics*}
2482 {jpg}
2483 {\Picture[pict]{\csname Gin@base\endcsname.jpg}}
2484
2485 \Configure{graphics*}
2486 {wmf}
2487 {\Needs{"convert \csname Gin@base\endcsname.wmf
2488 \csname Gin@base\endcsname.gif"}%
2489 \Picture[pict]{\csname Gin@base\endcsname.gif
2490 width="\expandafter\the\csname
2491 Gin@req@width\endcsname"
2492 height="\expandafter\the\csname
2493 Gin@req@height\endcsname"}%
2494 }
2495
2496 \Configure{graphics*}
2497 {eps}
2498 {\openin15=\csname Gin@base\endcsname\PictExt\relax
2499 \ifeof15
2500 \Needs{"convert \csname Gin@base\endcsname.eps
2501 \csname Gin@base\endcsname\PictExt"}%
2502 \fi
2503 \closein15
2504 \Picture[pict]{\csname Gin@base\endcsname\PictExt}%
2505 }
2506
2507 Note: Arguments of the \includegraphics command such as angle and
2508 scale in
2509
2510 \includegraphics[angle=-90,scale=0.5]{fig.eps}
2511
2512 are not known to the given figure (e.g., to fig.eps). To be
2513 taken into account, the scripts should handle the transformations
2514 they request (e.g., in \csname Grot@angle\endcsname,
2515 \csname Gscale@x\endcsname, \csname Gscale@y\endcsname)
2516 >>>
2517
2518
2519
2520
2521 \section{babel}
2522
2523 \<configure info4ht babel\><<<
2524 \Configure{accent}
2525 \Configure{quotedblbase}
2526 \Configure{quotesinglbase}
2527
2528 >>>
2529
2530 \section{plain}
2531
2532 \<configure info4ht plain\><<<
2533
2534 \Configure{ }
2535 \Configure{HAccent}
2536 \Configure{TableOfContents}
2537 \Configure{accents}
2538 \Configure{accent}
2539 \Configure{beginsection}
2540 \Configure{centerline}
2541 \Configure{displaylines}
2542 \Configure{eqalignno}
2543 \Configure{eqalign}
2544 \Configure{insert}
2545 \Configure{item}
2546 \Configure{leftline}
2547 \Configure{leqalignno}
2548 \Configure{line}
2549 \Configure{mathaccent}
2550 \Configure{narrower}
2551 \Configure{noalign}
2552 \Configure{obeylines}
2553 \Configure{overline}
2554 \Configure{proclaim}
2555 \Configure{rightline}
2556 \Configure{settabs}
2557 \Configure{underline}
2558 \Configure{vfootnote}
2559 >>>
2560
2561
2562
2563 \section{amsfonts}
2564
2565
2566 \<configure info4ht amsfonts\><<<
2567 \Configure{mathbb}........................2
2568 \Configure{mathfrak}......................2
2569
2570 #1 before content
2571 #2 after content
2572
2573 >>>
2574
2575
2576
2577 \section{amsmath}
2578
2579 % \Configure{dbinom}..................4
2580 % \Configure{dfrac}..................4
2581 % \Configure{frac}..................4
2582 % \Configure{binom}..................4
2583
2584 \<configure info4ht amsmath\><<<
2585 \Configure{tmspace}...................1
2586
2587 \mathglue amount of space in math units
2588 \textspace amount of space in points
2589
2590 Example:
2591 \Configure{tmspace}{\mskip\mathglue}
2592
2593
2594 \Configure{boxed}.....................2
2595 \Configure{equations}.................2
2596 \Configure{equation}..................3
2597 \Configure{gather*}...................6
2598 \Configure{gather}....................6
2599 \Configure{genfrac}...................6
2600 \Configure{measure@}..................1
2601 \Configure{multline*}.................4
2602 \Configure{multline}..................6
2603
2604 #5 before the label
2605 #6 after the label
2606 \Configure{overset}...................2
2607 \Configure{smallmatrix}...............6
2608 \Configure{split}.....................6
2609 \Configure{subarray}..................4
2610 \Configure{substack}..................2
2611 \Configure{underset}..................2
2612 \Configure{xleftarrow}................2
2613 \Configure{xrightarrow}...............2
2614 >>>
2615
2616
2617
2618
2619 \section{amstex1}
2620
2621 \<configure info4ht amstex1\><<<
2622 \Configure{eqn}
2623 \Configure{gather}
2624
2625
2626 Environments of amstex1:
2627
2628 Vmatrix
2629 align*
2630 alignat*
2631 alignat
2632 alignedat
2633 aligned
2634 aligned
2635 align
2636 bmatrix
2637 equation*
2638 equation
2639 gather*
2640 gathered
2641 gather
2642 matrix
2643 multline*
2644 multline
2645 pmatrix
2646 vmatrix
2647 xalignat*
2648 xalignat
2649 xxalignat
2650
2651 >>>
2652
2653 \section{amsart}
2654
2655 \<configure info4ht amsart\><<<
2656 |tableofcontentsStr
2657 |maketitleInfo
2658
2659 \ConfigureList{thebibliography}%
2660 \Configure{HtmlPar}
2661 \Configure{HtmlPar}
2662 \Configure{Needs}
2663 \Configure{abstract}
2664 \Configure{authors}
2665 \Configure{caption}
2666 \Configure{date}
2667 \Configure{endlikeparagraph}
2668 \Configure{endlikepart}
2669 \Configure{endlikesection}
2670 \Configure{endlikesubparagraph}
2671 \Configure{endlikesubsection}
2672 \Configure{endlikesubsubsection}
2673 \Configure{endparagraph}
2674 \Configure{endpart}
2675 \Configure{endsection}
2676 \Configure{endsubparagraph}
2677 \Configure{endsubsection}
2678 \Configure{endsubsubsection}
2679 \Configure{keywords}
2680 \Configure{likeparagraph}
2681 \Configure{likepart}
2682 \Configure{likesection}
2683 \Configure{likesubparagraph}
2684 \Configure{likesubsection}
2685 \Configure{likesubsubsection}
2686 \Configure{paragraph}
2687 \Configure{partTITLE+}
2688 \Configure{part}
2689 \Configure{sectionTITLE+}
2690 \Configure{section}
2691 \Configure{setdate}
2692 \Configure{subjclass}
2693 \Configure{submaketitle}
2694 \Configure{subparagraph}
2695 \Configure{subsectionTITLE+}
2696 \Configure{subsection}
2697 \Configure{subsubsectionTITLE+}
2698 \Configure{subsubsection}
2699 \Configure{thanks author date and}
2700 \Configure{thanks}
2701 \Configure{title}
2702
2703 Environments of amsart:
2704
2705 abstract
2706 abstract
2707 picture
2708 picture
2709 thebibliography
2710
2711 \ConfigureToc
2712
2713 likeparagraph likepart, likesection, likesubparagraph,
2714 likesubsection, likesubsubsection, paragraph, part, section,
2715 subparagraph, subsection, subsubsection,
2716
2717 >>>
2718
2719
2720 \section{amsbook}
2721
2722 \<configure info4ht amsbook\><<<
2723 |tableofcontentsStr
2724 |maketitleInfo
2725
2726 \ConfigureList{thebibliography}%
2727 \Configure{HtmlPar}
2728 \Configure{Needs}
2729 \Configure{abstract}
2730 \Configure{addresses}
2731 \Configure{authors}
2732 \Configure{caption}
2733 \Configure{date}
2734 \Configure{endlikeparagraph}
2735 \Configure{endlikepart}
2736 \Configure{endlikesection}
2737 \Configure{endlikesubparagraph}
2738 \Configure{endlikesubsection}
2739 \Configure{endlikesubsubsection}
2740 \Configure{endparagraph}
2741 \Configure{endpart}
2742 \Configure{endsection}
2743 \Configure{endsubparagraph}
2744 \Configure{endsubsection}
2745 \Configure{endsubsubsection}
2746 \Configure{keywords}
2747 \Configure{likeparagraph}
2748 \Configure{likepart}
2749 \Configure{likesection}
2750 \Configure{likesubparagraph}
2751 \Configure{likesubsection}
2752 \Configure{likesubsubsection}
2753 \Configure{paragraph}
2754 \Configure{partTITLE+}
2755 \Configure{part}
2756 \Configure{sectionTITLE+}
2757 \Configure{section}
2758 \Configure{subjclass}
2759 \Configure{subparagraph}
2760 \Configure{subsectionTITLE+}
2761 \Configure{subsection}
2762 \Configure{subsubsectionTITLE+}
2763 \Configure{subsubsection}
2764 \Configure{thanks author date and}
2765 \Configure{thanks}
2766 \Configure{title}
2767 \Configure{translators}
2768
2769 Environments of amsbook:
2770
2771 abstract
2772 picture
2773 thebibliography
2774
2775 \ConfigureToc
2776
2777 appendix, chapter, likechapter, likeparagraph, likepart,
2778 likesection, likesubparagraph, likesubsection, likesubsubsection,
2779 paragraph, part, section, subparagraph, subsection, subsubsection
2780
2781 >>>
2782
2783 \section{amsproc}
2784
2785 \<configure info4ht amsproc\><<<
2786 |tableofcontentsStr
2787 |maketitleInfo
2788
2789 \ConfigureList{thebibliography}%
2790 \Configure{HtmlPar}
2791 \Configure{Needs}
2792 \Configure{abstract}
2793 \Configure{authors}
2794 \Configure{caption}
2795 \Configure{date}
2796 \Configure{endlikeparagraph}
2797 \Configure{endlikepart}
2798 \Configure{endlikesection}
2799 \Configure{endlikesubparagraph}
2800 \Configure{endlikesubsection}
2801 \Configure{endlikesubsubsection}
2802 \Configure{endparagraph}
2803 \Configure{endpart}
2804 \Configure{endsection}
2805 \Configure{endsubparagraph}
2806 \Configure{endsubsection}
2807 \Configure{endsubsubsection}
2808 \Configure{keywords}
2809 \Configure{likeparagraph}
2810 \Configure{likepart}
2811 \Configure{likesection}
2812 \Configure{likesubparagraph}
2813 \Configure{likesubsection}
2814 \Configure{likesubsubsection}
2815 \Configure{paragraph}
2816 \Configure{partTITLE+}
2817 \Configure{part}
2818 \Configure{sectionTITLE+}
2819 \Configure{section}
2820 \Configure{subparagraph}
2821 \Configure{subsectionTITLE+}
2822 \Configure{subsection}
2823 \Configure{subsubsectionTITLE+}
2824 \Configure{subsubsection}
2825 \Configure{thanks author date and}
2826 \Configure{thanks}
2827 \Configure{title}
2828
2829 Environments of amsproc:
2830
2831 abstract
2832 picture
2833 thebibliography
2834
2835 \ConfigureToc
2836
2837 likeparagraph, likepart, likesection, likesubparagraph,
2838 likesubsection, likesubsubsection, paragraph, part, section,
2839 subparagraph, subsection, subsubsection
2840 >>>
2841
2842
2843 \section{amsthm}
2844
2845 \<configure info4ht amsthm\><<<
2846 Environments of amsthm:
2847
2848 proof
2849 >>>
2850
2851
2852
2853
2854 \section{amsppt}
2855
2856 \<configure info4ht amsppt\><<<
2857 \ConfigureToc
2858
2859 head, specialhead, subhead, subsubhead
2860
2861 \Configure{HtmlPar}
2862 \Configure{Refs}
2863 \Configure{abstract}
2864 \Configure{affil}
2865 \Configure{author}
2866 \Configure{block}
2867 \Configure{book}
2868 \Configure{caption}
2869 \Configure{date}
2870 \Configure{footnote}
2871 \Configure{head}
2872 \Configure{itemitem}
2873 \Configure{keyformat}
2874 \Configure{keywords}
2875 \Configure{paper}
2876 \Configure{ref}
2877 \Configure{roster}
2878 \Configure{specialhead}
2879 \Configure{subhead}
2880 \Configure{subjclass}
2881 \Configure{subsubhead}
2882 \Configure{thanks}
2883 \Configure{title}
2884 \Configure{vol}
2885
2886 >>>
2887
2888 %%%%%%%%%%%%%%%%%%%%%%%%%
2889 \section{listings}
2890 %%%%%%%%%%%%%%%%%%%%%%%%%
2891
2892 \<configure info4ht listings\><<<
2893 \Configure{lst@Kerm}...........................2
2894
2895 #1 width of character
2896 #2 width of inter character space
2897
2898 In LaTeX, Default: \Configure{lst@Kern}{0.499em}{0.1em}
2899
2900 \Configure{listings}...........................4
2901
2902 #1 start environment
2903 #2 end environment
2904 #3 before line label
2905 #4 between line label and content
2906
2907 \Configure{lstinputlisting}....................2
2908 \Configure{lstinline}..........................2
2909
2910 #1 start environment
2911 #2 end environment
2912 >>>
2913
2914
2915
2916
2917
2918 \section{psfig}
2919
2920 \<configure info4ht psfig\><<<
2921 \Configure{psfig}
2922
2923 >>>
2924
2925 \section{epsfig}
2926
2927 \<configure info4ht epsfig\><<<
2928 \Configure{epsfig}...........................#1
2929
2930 #1 before
2931 #2 after
2932
2933 In LaTeX, epsfig reduces to graphicsx
2934
2935 Example:
2936
2937 \Configure{epsfig}
2938 {\Configure{graphics}
2939 {} {\xdef\foo{width="\the\Gin@req@width"
2940 height="\the\Gin@req@height"}}%
2941 \Picture+[epsfig]{}}
2942 {\EndPicture\writesixteen{..... \foo}}
2943 >>>
2944
2945 \section{xy}
2946
2947 \<configure info4ht xy\><<<
2948 \Configure{xypic}
2949 \Configure{Xy}
2950 >>>
2951
2952 \section{amscd}
2953
2954 \<configure info4ht amscd\><<<
2955
2956 Environments of amscd:
2957
2958 CD
2959 >>>
2960
2961
2962 \section{array}
2963
2964 \<configure info4ht array\><<<
2965 \Configure{tabular}
2966 \Configure{array}
2967
2968 |VBorder
2969
2970 \Configure{@{}}{}
2971
2972
2973 Environments of array:
2974
2975 array
2976 tabular
2977 >>>
2978
2979 \section{minitoc}
2980
2981 \<configure info4ht minitoc\><<<
2982 \Configure{minilof}
2983 \Configure{minilot}
2984 \Configure{minitoc}
2985 \Configure{partlof}
2986 \Configure{partlot}
2987 \Configure{parttoc}
2988 \Configure{sectlof}
2989 \Configure{sectlot}
2990 \Configure{secttoc}
2991 \Configure{tableofcontents}
2992
2993 >>>
2994
2995
2996 \section{index}
2997
2998 \<configure info4ht index\><<<
2999 \Configure{NoSection}
3000
3001 >>>
3002
3003
3004
3005
3006
3007 \section{ntheorem}
3008
3009 \<configure info4ht ntheorem\><<<
3010 Environments of ntheorem:
3011
3012 Anmerkung
3013 Beispiel
3014 Bemerkung
3015 Beweis
3016 Corollary
3017 Definition
3018 Example
3019 Korollar
3020 Lemma
3021 Proof
3022 Proposition
3023 Remark
3024 Satz
3025 Theorem
3026 anmerkung
3027 beispiel
3028 bemerkung
3029 beweis
3030 corollary
3031 definition
3032 example
3033 korollar
3034 lemma
3035 proof
3036 proposition
3037 remark
3038 satz
3039 theorem
3040
3041
3042 >>>
3043
3044
3045 \section{longtable}
3046
3047 \<configure info4ht longtable\><<<
3048 \Configure{longtable}.............................6
3049
3050 #1 before table #2 after table
3051 #3 before row #4 after row
3052 #5 before cell #6 after cell
3053 >>>
3054
3055 \section{fancyvrb}
3056
3057 \<configure info4ht fancyvrb\><<<
3058 \Configure{fancyvrbcolor}
3059 \Configure{fancyvrbframe}
3060 \Configure{fancyvrb}
3061
3062 Environments of fancyvrb:
3063
3064 verbatim*
3065 verbatim
3066
3067 >>>
3068
3069 \section{moreverb}
3070
3071
3072 \<configure info4ht moreverb\><<<
3073 \Configure{verbatimtab}......................2
3074
3075 #1 at start of line
3076 #2 space character
3077
3078 Environments of moreverb:
3079
3080 boxedverbatim*
3081 boxedverbatim*
3082 boxedverbatim
3083 boxedverbatim
3084 verbatimtab
3085 >>>
3086
3087
3088 \section{fancybox}
3089
3090 \<configure info4ht fancybox\><<<
3091 \Configure{Ovalbox}
3092 \Configure{doublebox}
3093 \Configure{ovalbox}
3094 \Configure{shadowbox}
3095
3096 >>>
3097
3098 \section{color}
3099
3100 \<configure info4ht color\><<<
3101 \Configure{HColor}......................2
3102
3103 #1 color name
3104 #2 color value
3105
3106 Examples: \Configure{HColor}{blue}{\#0000FF}
3107 \Configure{HColor}{light}{rgb(122,251,255)}
3108
3109 \Configure{colorbox}
3110 \Configure{color}
3111 \Configure{textcolor}
3112
3113 >>>
3114
3115 \section{colortbl}
3116
3117 \<configure info4ht colortbl\><<<
3118 \Configure{@classz}
3119 \Configure{rowcolor}
3120
3121 >>>
3122
3123 \section{alltt}
3124
3125 \<configure info4ht alltt\><<<
3126 Environments of alltt:
3127
3128 alltt
3129 >>>
3130
3131
3132
3133
3134 \section{url}
3135
3136 \<configure info4ht url\><<<
3137 \Configure{url}
3138
3139 >>>
3140
3141 \section{hyperref}
3142
3143 \<configure info4ht hyperref\><<<
3144 A trick like the following one allows a compilation to choose
3145 between a pdf and a html mode automatically.
3146
3147 \ifx \HCode\UnDef \usepackage[pdf]{hyperref}
3148 \else \usepackage[tex4ht]{hyperref} \fi
3149
3150 The trick assumes the compilations for html are invoked by
3151 htlatex-like commands.
3152
3153 \Configure{::#1}
3154 \Configure{::action}
3155 \Configure{::default}
3156 \Configure{::menulength}
3157 \Configure{::method}
3158 \Configure{::name}
3159 \Configure{::value}
3160 \Configure{CheckBox::checked}
3161 \Configure{CheckBox::}
3162 \Configure{ChoiceMenu::combo}
3163 \Configure{ChoiceMenu::popdown}
3164 \Configure{ChoiceMenu::radio}
3165 \Configure{ChoiceMenu::}
3166 \Configure{Form}
3167 \Configure{PushButton::}
3168 \Configure{Reset::}
3169 \Configure{Submit::}
3170 \Configure{TextField::default}
3171 \Configure{TextField::multiline}
3172 \Configure{TextField::password}
3173 \Configure{TextField::width}
3174 \Configure{TextField::}
3175 \Configure{combo::default}
3176 \Configure{multiline::value}
3177 \Configure{multiline::width}
3178 \Configure{radio::default}
3179
3180 >>>
3181
3182
3183 \section{CJK}
3184
3185 \<configure info4ht CJK\><<<
3186 \Configure{charset}
3187
3188 >>>
3189
3190 \section{vanilla}
3191
3192 \<configure info4ht vanilla\><<<
3193 \ConfigureToc
3194
3195 heading, subheading
3196
3197 \Configure{aligned}
3198 \Configure{align}
3199 \Configure{author}
3200 \Configure{demo}
3201 \Configure{heading}
3202 \Configure{matrix}
3203 \Configure{subheading}
3204 \Configure{title}
3205
3206 >>>
3207
3208
3209
3210
3211
3212
3213 \section{emulateapj}
3214
3215 \<configure info4ht emulateapj\><<<
3216 \Configure{affil}
3217 \Configure{author}
3218 \Configure{keywords}
3219 \Configure{section}
3220 \Configure{slugcomment}
3221 \Configure{subjectheadings}
3222 \Configure{submitted}
3223 \Configure{subsection}
3224 \Configure{subtitle}
3225 \Configure{title}
3226
3227 Environments of emulateapj:
3228
3229 references
3230 >>>
3231
3232 \section{aa}
3233
3234 \<configure info4ht aa\><<<
3235 |maketitleInfo
3236
3237 \Configure{HtmlPar}
3238 \Configure{caption}
3239 \Configure{endlikeparagraph}
3240 \Configure{endlikepart}
3241 \Configure{endlikesection}
3242 \Configure{endlikesubparagraph}
3243 \Configure{endlikesubsection}
3244 \Configure{endlikesubsubsection}
3245 \Configure{endparagraph}
3246 \Configure{endpart}
3247 \Configure{endsection}
3248 \Configure{endsubparagraph}
3249 \Configure{endsubsection}
3250 \Configure{endsubsubsection}
3251 \Configure{likeparagraph}
3252 \Configure{likepart}
3253 \Configure{likesection}
3254 \Configure{likesubparagraph}
3255 \Configure{likesubsection}
3256 \Configure{likesubsubsection}
3257 \Configure{makeheadbox}
3258 \Configure{paragraph}
3259 \Configure{partTITLE+}
3260 \Configure{part}
3261 \Configure{sectionTITLE+}
3262 \Configure{section}
3263 \Configure{subparagraph}
3264 \Configure{subsectionTITLE+}
3265 \Configure{subsection}
3266 \Configure{subsubsectionTITLE+}
3267 \Configure{subsubsection}
3268 \Configure{subsubsection}
3269 \Configure{subtitle institute}
3270 \Configure{thanks author date and}
3271
3272 Environments of aa:
3273
3274 abstract
3275 picture
3276 thebibliography
3277 >>>
3278
3279 \section{pictex}
3280
3281 \<configure info4ht pictex\><<<
3282 \Configure{pictex}
3283
3284 >>>
3285
3286
3287
3288
3289 \section{diagram}
3290
3291 \<configure info4ht pb-diagram\><<<
3292 Environments of pb-diagram:
3293
3294 diagram
3295 >>>
3296
3297
3298
3299 \section{ltugboat}
3300
3301 \<configure info4ht ltugboat\><<<
3302 Environments of ltugboat:
3303
3304 quote
3305 >>>
3306
3307
3308 \section{doc}
3309
3310 \<configure info4ht doc\><<<
3311 Environments of doc:
3312
3313 macrocode
3314 >>>
3315
3316
3317
3318
3319
3320 \section{lineno}
3321
3322 \<configure info4ht doc\><<<
3323 \Configure{lineno}...................2
3324
3325 Asks lineno.sty to introduce #1\LineNumber #2, instead of \LineNumber,
3326 into the output
3327 >>>
3328
3329
3330
3331
3332
3333
3334 \section{elsart}
3335
3336 \<configure info4ht elsart\><<<
3337 \Configure{abstract}
3338 \Configure{keyword}
3339
3340 Environments of elsart:
3341
3342 frontmatter
3343 >>>
3344
3345
3346 %%%%%%%%%%%%%%%%%%
3347 \section{ProTex}
3348 %%%%%%%%%%%%%%%%%%
3349
3350 \<configure info4ht ProTex\><<<
3351 \Configure{ShowCode}...................6
3352
3353 #1 start body
3354 #2 end body
3355 #3 everypar
3356 #4 open comment
3357 #5 close comment
3358 #6 space character
3359 >>>
3360
3361
3362 \section{seminar}
3363
3364 \<configure info4ht seminar\><<<
3365
3366 Environments of seminar:
3367
3368 slide
3369 >>>
3370
3371
3372 \section{slides}
3373
3374 \<configure info4ht slides\><<<
3375 \Configure{slidename}....................................1
3376 \CutAt{slide}.............................................0
3377
3378 \ConfigureList{description}%
3379
3380 Environments of slides:
3381
3382 note
3383 quotation
3384 quote
3385 slide
3386 titlepage
3387 verse
3388 >>>
3389
3390
3391 \section{slidesec}
3392
3393 \<configure info4ht slidesec\><<<
3394 \ConfigureToc
3395
3396 slidesection
3397 >>>
3398
3399 \section{web}
3400
3401 \<configure info4ht web\><<<
3402 \Configure{maketitle}
3403 \Configure{webuniversity}
3404 \Configure{webversion}
3405
3406 >>>
3407
3408 \section{exerquiz}
3409
3410 \<configure info4ht exerquiz\><<<
3411 \ConfigureList{questions}%
3412 \Configure{@HEAD}
3413 \Configure{Form}
3414 \Configure{ReturnTo}
3415 \Configure{TextField::}
3416 \Configure{javascript}
3417 \Configure{quiz*}
3418 \Configure{quiz}
3419 \Configure{shortquiz}
3420
3421 Environments of exerquiz:
3422
3423 shortquiz
3424 >>>
3425
3426 \section{foils}
3427
3428 \<configure info4ht foils\><<<
3429 \ConfigureToc
3430
3431 foilheads
3432
3433 \Configure{foilheads}
3434
3435 |tableofcontentsStr
3436
3437 Environments of foils:
3438
3439 Corollary*
3440 Corollary
3441 Definition
3442 Lemma
3443 Proof
3444 Proposition
3445 Theorem
3446 thebibliography
3447
3448 >>>
3449
3450
3451
3452 \section{th4}
3453
3454 \<configure info4ht th4\><<<
3455 \Configure{JavaScript}............2
3456
3457 Configures the environments
3458
3459 \JavaScript
3460 ....
3461 \EndJavaScript
3462
3463 and
3464
3465 \javascript{...}
3466
3467 These environments are activated by the `javascript' option.
3468
3469 Default:
3470
3471 \Configure{JavaScript}
3472 {\HCode{<script type="text/JavaScript" ><!--\Hnewline}}
3473 {\HCode{//-->\Hnewline </script>}}
3474
3475
3476
3477 \ConfigureToc
3478
3479 Chapter, LikeSection, Section, SubSection
3480
3481 \Configure{Appendix}
3482 \Configure{Chapter}
3483 \Configure{Columns}
3484 \Configure{Columns}
3485 \Configure{DList}
3486 \Configure{HTable}
3487 \Configure{Item}
3488 \Configure{LikeChapter}
3489 \Configure{LikeSection}
3490 \Configure{OList}
3491 \Configure{Part}
3492 \Configure{Section}
3493 \Configure{SubSection}
3494 \Configure{UList}
3495 \Configure{Verbatim}
3496 \Configure{buttonList+}
3497 \Configure{buttonList}
3498 \Configure{centerline}
3499 \Configure{index}
3500
3501 Frames
3502 ------
3503
3504 When the package option `frames-' or `frames' is up,
3505 TeX4ht introduces the following commands for defining frames.
3506
3507 \Frame[#1]{#2}
3508
3509 A variant of the \Link[#1]{#2} portion of the
3510 \Link[#1]{#2}{#3}#4\EndLink, for specifying a frame.
3511
3512 \HorFrames[#1]{#2}, \VerFrames[#1]{#2}
3513
3514 #1 attributes ([#1] is optional)
3515 #2 list of dimensions
3516
3517 A container partitioned, respectively, horizontally or
3518 vertically. Each partition may hold a sub-container or
3519 a frame.
3520
3521 The list of dimensions determine the cardinality of the
3522 partition, and the dimension of each partition. A dimension
3523 can be specified absolutely by pixels (\HorFrames{80,130,50}),
3524 relatively by percentage (\HorFrames{20\%,30\%,50\%}), and
3525 relatively through ratio (\HorFrames{2*,3*,5*}).
3526
3527 \EndFrames
3528
3529 An end delimiter for a container
3530
3531 \NoFrames
3532
3533 When used, it should be placed before the outer-most
3534 \EndFrames command. The region \NoFrames...\EndNoFrames
3535 provides the content for browsers which do not support frames.
3536
3537 Tailoring configurations for frames is a little tricky, but the
3538 job is simpler when the configurations don't deal with the root
3539 file.
3540
3541 Example 1:
3542 ..........
3543
3544 % Requires the command line option `frames-'
3545 \documentclass{article}
3546
3547 \begin{document}
3548
3549 \begingroup
3550 \Configure{@HEAD}{}
3551 \Configure{BODY}{}{}
3552 \Configure{DOCTYPE}
3553 {\HCode{<!DOCTYPE html
3554 PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
3555 "http://www.w3.org/TR/html4/frameset.dtd">}}
3556 \Configure{HEAD}{}{}
3557 \Configure{HTML}
3558 {\HCode{<html><head><title></title></head>}}
3559 {\HCode{</html>}}
3560 \Configure{HtmlPar}{}{}{}{}
3561 \Configure{TITLE}{}{}
3562
3563 \FileStream+{\jobname f.html}
3564 \HorFrames{*,*}
3565 \Frame[\jobname.html]{}
3566 \VerFrames{3*,*,*}
3567 \Frame[http://www.tug.org]{}
3568 \Frame[\RefFile{z} ]{}
3569 \Frame[ name="y"]{w}
3570 \EndFrames
3571 \EndPreamble
3572 \NoFrames
3573 a comment
3574 \EndFrames
3575 \EndFileStream{\jobname f.html}
3576 \endgroup
3577
3578
3579 \HPage[z]{}
3580 \bgroup
3581 \Configure{Link}{a}{target="y" href=}{ name=}{}
3582 \let\contentsname=\empty \tableofcontents
3583 \egroup
3584 \EndHPage{z}
3585
3586 \tableofcontents
3587
3588 \section{First} Is first.
3589
3590 \Link{}{w}\EndLink
3591 \section{Second} Is Second.
3592
3593 \end{document}
3594
3595 Example 1a (allows also compilations for non-html output):
3596 ..........................................................
3597 % src.tex
3598 \documentclass{article}
3599 \begin{document}
3600
3601 \tableofcontents
3602
3603 \section{First} Is first.
3604
3605 \ifx \Link\undefined \else
3606 \Link{}{w}\EndLink
3607 \fi
3608 \section{Second} Is Second.
3609
3610 \end{document}
3611
3612 % src.cfg
3613 \Preamble{html,frames-}
3614 \begin{document}
3615 \EndPreamble
3616 \begingroup
3617 \Configure{@HEAD}{}
3618 \Configure{BODY}{}{}
3619 \Configure{DOCTYPE}{}
3620 \Configure{HEAD}{}{}
3621 \Configure{HTML}{}{}
3622 \Configure{HtmlPar}{}{}{}{}
3623 \Configure{TITLE}{}{}
3624
3625 \FileStream+{\jobname f.html}
3626 \HorFrames{*,*}
3627 \Frame[\jobname.html]{}
3628 \VerFrames{3*,*,*}
3629 \Frame[http://www.tug.org]{}
3630 \Frame[\RefFile{z} ]{}
3631 \Frame[ name="y"]{w}
3632 \EndFrames
3633 \EndPreamble
3634 \NoFrames
3635 a comment
3636 \EndFrames
3637 \EndFileStream{\jobname f.html}
3638 \endgroup
3639
3640 \HPage[z]{}
3641 \bgroup
3642 \Configure{Link}{a}{target="y" href=}{ name=}{}
3643 \let\contentsname=\empty \tableofcontents
3644 \egroup
3645 \EndHPage{z}
3646 \endinput
3647
3648 Example 2:
3649 ..........
3650
3651 % Source .tex file
3652
3653 \documentclass{article}
3654 \usepackage{verbatim}
3655 \begin{document}
3656
3657 \section{The Main File: \jobname.tex}
3658 \verbatiminput{\jobname.tex}
3659 \section{The Configurations File: \jobname.cfg}
3660 \verbatiminput{\jobname.cfg}
3661 \section{The Command Line}
3662 htlatex \jobname\space "\jobname"
3663
3664 \NextFile{page.html}\HPage{}
3665 Hello!
3666 \EndHPage{}
3667
3668 \HPage{}\Link{}{anchor}\EndLink
3669 \Link[http://www.ctan.org]{}{}ctan\EndLink
3670 \EndHPage{}
3671
3672 \end{document}
3673
3674 % configurations .cfg file
3675
3676 \Preamble{frames}
3677
3678 \Configure{frames}
3679 {\VerFrames{*,5*}
3680 \Frame[ name="tex4ht-menu" ]{tex4ht-toc}
3681 \HorFrames{*,3*}
3682 \VerFrames{6*,*,*}
3683 \Frame[http://www.tug.org]{}
3684 \Frame[page.html]{}
3685 \Frame{anchor}
3686 \EndFrames
3687 \Frame[ name="tex4ht-main" ]{tex4ht-body}
3688 \EndFrames
3689 }
3690 {\let\contentsname=\empty \tableofcontents}
3691
3692 \begin{document}
3693 \EndPreamble
3694
3695 Example 3:
3696 ..........
3697
3698 % file.tex
3699 \documentclass{book}
3700 \begin{document}
3701 \chapter{Title}
3702 Body.
3703 \chapter{Another Title}
3704 \Link{}{init-body}\EndLink
3705 Another body.
3706 \end{document}
3707
3708 % file.cfg
3709 \Preamble{html,frames,3,info}
3710 \begin{document}
3711 \Configure{frames}
3712 {\HorFrames[rows="*"]{3*,*}
3713 \Frame[ name="body" frameborder="0" ]{init-body}
3714 \Frame[ name="menu" frameborder="0" ]{init-toc}
3715 }
3716 {\Configure{Link}{a}{target="body" href=}{ id=}{}
3717 \let\contentsname=\empty
3718 \tableofcontents
3719 \Link{}{init-toc}\EndLink
3720 }
3721 \EndPreamble
3722 \endinput
3723
3724
3725
3726 The arguments`init-body' and `init-toc' are labels connecting reference points
3727 \Frame[...]{label} with anchors \Link{}{label}\EndLink. Their objective
3728 is to associate initial web pages with the frames.
3729
3730 The name attribute values `body' and `menu' provide
3731 identifiers to the frames. They offer the option to dynamically load
3732 new pages into the frames through hypertext references targeting those
3733 values.
3734
3735 >>>
3736
3737
3738
3739
3740 \section{hebtex}
3741
3742 \<configure info4ht hebtex\><<<
3743 \Configure{arabtext}
3744 \Configure{chireq}
3745 \Configure{cholem}
3746 \Configure{cholem}
3747 \Configure{chpatach}
3748 \Configure{chqames}
3749 \Configure{chsegol}
3750 \Configure{dagesh}
3751 \Configure{meteg}
3752 \Configure{patachf}
3753 \Configure{patach}
3754 \Configure{qameschat}
3755 \Configure{qames}
3756 \Configure{qibbus}
3757 \Configure{rdot}
3758 \Configure{segol}
3759 \Configure{sere}
3760 \Configure{shindot}
3761 \Configure{shwa}
3762 \Configure{sindot}
3763
3764 >>>
3765
3766
3767
3768
3769 %%%%%%%%%%%%%%%%%%%%
3770 \section{endnotes}
3771 %%%%%%%%%%%%%%%%%%%%
3772
3773 \<configure info4ht endnotes\><<<
3774 \Configure{theendnotes}......................2
3775 \Configure{enoteformat}......................2
3776 \Configure{makeenmark}.......................2
3777
3778 Provide markups for the mentioned entities.
3779
3780 \endnoteN
3781
3782 A built-in counter for end notes.
3783 >>>
3784
3785
3786 %%%%%%%%%%%%%%%%%%%%
3787 \section{float}
3788 %%%%%%%%%%%%%%%%%%%%
3789
3790 \<configure info4ht float\><<<
3791 New float environments can be configured with the \ConfigureEnv
3792 instruction. For instance,
3793
3794 \newfloat{myfloat}{htb}{}[section]
3795
3796 \ConfigureEnv{myfloat}
3797 {BEFORE MYFLOAT} {AFTER MYFLOAT}
3798 {}{}
3799
3800 \begin{myfloat}
3801 body
3802 \caption{title}
3803 \end{myfloat}
3804 >>>
3805
3806
3807 %%%%%%%%%%%%%%%%%%%%
3808 \section{mktex4ht}
3809 %%%%%%%%%%%%%%%%%%%%
3810
3811
3812
3813
3814 \<configure info4ht mktex4ht\><<<
3815 Purpose
3816 -------
3817
3818 A package to help creating 4ht files for configuring seeded hooks.
3819
3820 A sample self-explanatory template file make-4ht.tex is shown at the
3821 end. The sample file can be retrieved in ascii form from the file
3822 info4ht.4ht.
3823
3824 General Information
3825 -------------------
3826
3827 To get a better understanding of the structural meaning of some of the
3828 available hooks
3829
3830 a. Compile the mktex4ht.4ht file with the `htlatex mktex4ht.4ht'
3831 command (or, `xhlatex mktex4ht.4ht' for XHTML output).
3832
3833 Visit the links in the index of the outcome `mktex4ht.html' file.
3834
3835 b. Compile your sorce file with a command similar to
3836
3837 htlatex filename "html,info" "" "-p"
3838
3839 and check the source file.
3840
3841 c. Compile your sorce file with a command similar to
3842
3843 htlatex filename "html,0.0,hooks" "" "-p"
3844
3845 and view the outcome with a html browser.
3846
3847 d. Take a look at the *.4ht configuration files mentioned in tex4ht.4ht.
3848
3849 Setting up a calling command
3850 ----------------------------
3851
3852 i. Create a tex4ht.usr file, and introduce there \Configure command(s)
3853 similar to those found in tex4ht.4ht. For instance,
3854
3855 \Configure{foo}{%
3856 \Hinclude[*]{myhtml.4ht}%
3857 \Hinclude[*]{mymath.4ht}%
3858 }
3859
3860 Choose arbitrary name in the first argument, and include *.4ht
3861 configuration files of your liking in the second argument.
3862
3863 You might want to temporarily include also the file html0.4ht, as a
3864 first entry, while constructing new *.4ht configuration files. For
3865 instance,
3866
3867 \Configure{foo}{%
3868 \Hinclude[*]{html0.4ht}%
3869 \Hinclude[*]{myhtml.4ht}%
3870 \Hinclude[*]{mymath.4ht}%
3871 }
3872
3873 ii. A configuration setting may be loaded by mentioning its name
3874 within the option list of the htlatex command. For instance,
3875
3876 htlatex filename "xhtml,foo" "unicode/!" "-p"
3877
3878 iii. Alternatively, a htlatex-like command can be tailored to
3879 automatically load a configuration setting. That can be done
3880 by including the name in the argument list of
3881 \csname tex4ht\endcsname, within the script of the command. For
3882 instance, replace `docbook' with `foo' in the script of dblatex.
3883
3884
3885 Defining a New Configuration File with mktex4ht.4ht
3886 ---------------------------------------------------
3887
3888 1. Define a parameter-less macro \HTML to hold a comma separeted list
3889 of the output file names. Place the definition at the top of the
3890 source document. For instance
3891
3892 \def\HTML{myhtml,mymath}
3893
3894 request the files myhtml.4ht and mymath.4ht.
3895
3896 2. Define a parameter-less macro \CONFIG to hold the name of the file
3897 containing the contributed configurations. Place the definition at
3898 the top of the source document.
3899
3900 3. The configurations contributed to output file YYYY.4ht for style
3901 XXXX should be provided within code fragments of the form
3902
3903 \<configure XXXX YYYY\><<<
3904 .......
3905 >>|empty>
3906
3907 Arbitrary valid LaTeX source code may be inserted around the code
3908 fragments.
3909
3910 Example:
3911
3912 Configurations for class book.cls:
3913
3914 \<configure myhtml book\><<<
3915 \Configure{chapter} {...}{...}{...}{...}
3916 \Configure{section} {...}{...}{...}{...}
3917 >>|empty>
3918
3919 Configurations for class article.cls:
3920
3921 \<configure mymath article\><<<
3922 \Configure{section} {...}{...}{...}{...}
3923 >>|empty>
3924
3925 The hooks are provided in book.4ht and article.4ht.
3926
3927 4. Define a parameter-less macro \MAKETITLE with contribution for
3928 the \maketitle command (e.g., \def\MAKETITLE{\title{my name}}). Place
3929 the definition at the top of the source document.
3930
3931 5. A file may reload itself, if it starts with preamble similar to
3932 the following one.
3933
3934 \ifx \HTML\UnDef
3935 \def\HTML{...}
3936 \def\CONFIG{\jobname}
3937 \def\MAKETITLE{\author{...}}
3938 \def\next{\input mktex4ht.4ht \endinput}
3939 \expandafter\next
3940 \fi
3941
3942
3943 A Template File make-4ht.tex
3944 -----------------------------
3945
3946 %--------------------- start of template -----------------
3947 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3948 %
3949 % make-4ht.4ht Eitan M. Gurari
3950 %
3951 % A sample file with instructions for creating 4ht
3952 % configuration files through literate programming.
3953 %
3954 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3955 %
3956 % * Compile this file twice with the command `latex make-4ht'
3957 % (or with `htlatex make-4ht')
3958 %
3959 % * Inspect the outcome files sample.4ht and example.4ht
3960 %
3961 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3962 %
3963 % * Change `sample,example' in (1) below to a comma-separated list
3964 % of your choice. Each entry in the list stands for a name
3965 % of a 4ht configuration file to be created. The current list
3966 % requests the configuration files `sample.4ht' and `example.4ht'.
3967 %
3968 % * Change `my title' in (2), and `my name' in (3), to a
3969 % content of your choice
3970 %
3971 % * Go to (4)
3972 %
3973 %%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%%
3974
3975 \ifx \HTML\UnDef
3976 \def\HTML{sample,example} %<------------ (1)
3977 \def\CONFIG{\jobname}
3978 \def\MAKETITLE{\title{my title}% %<------------ (2)
3979 \author{my name}} %<------------ (3)
3980 \def\next{\input mktex4ht.4ht \endinput}
3981 \expandafter\next
3982 \fi
3983
3984 %%%%%%%%%%%%%%%%%%%%% useful definitions %%%%%%%%%%%%%%%%%%%%%
3985
3986 \newcount\tmpcnt \tmpcnt\time \divide\tmpcnt 60
3987 \edef\temp{\the\tmpcnt}
3988 \multiply\tmpcnt -60 \advance\tmpcnt \time
3989
3990 \edef\version{\the\year-\ifnum \month<10 0\fi
3991 \the\month-\ifnum \day<10 0\fi\the\day
3992 -\ifnum \temp<10 0\fi \temp
3993 :\ifnum \tmpcnt<10 0\fi\the\tmpcnt}
3994
3995 \def\CopyYear.#1.{%
3996 \ifnum #1=\year #1\space\space\space\space\space\space
3997 \else #1--\the\year\fi
3998 }
3999
4000
4001 %<--------------------------------------------------------------- (4)
4002 %
4003 % * The code for the configuration files is to be written within
4004 % fragments of the form
4005 %
4006 % \<fragment name\><<<
4007 % fragment content
4008 % >>|empty>
4009 %
4010 % * References from code fragments to other code fragments should
4011 % take the form
4012 %
4013 % ||<fragment name||>
4014 %
4015 % * The character || is treated as an escape character
4016 % within the code fragments. References to the
4017 % character should take the form
4018 %
4019 % ||||
4020 %
4021 % * Insertions outside the code fragments are ignored in the
4022 % configuration files, and they should abide to the latex
4023 % conventions.
4024 %
4025 % * Change all the prose and code fragments below to meet
4026 % your needs. Make sure to follow the given instructions.
4027
4028 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4029 \chapter{Root Code}
4030 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4031
4032 %<--------------------------------------------------------------- (5)
4033 %
4034 % * For each entry in the list of (1), you may have arbitrary many
4035 % code fragments named by the entry.
4036 %
4037 % * The order of fragments is relevant only among those having
4038 % identical names.
4039 %
4040
4041
4042 \<sample\><<<
4043 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4044 % sample.4ht ||version %
4045 ||<copyright statement||>
4046 >>|empty>
4047
4048
4049 \<example\><<<
4050 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4051 % example.4ht ||version %
4052 ||<copyright statement||>
4053 >>|empty>
4054
4055
4056 \<copyright statement\><<<
4057 % Copyright (C) ||CopyYear.2000. my name %
4058 % %
4059 % My copyright statement %
4060 % %
4061 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4062 \immediate\write-1{version ||version}
4063 >>|empty>
4064
4065
4066 %<--------------------------------------------------------------- (6)
4067 %
4068 % * Each configuration of tex4ht requires a base 4ht configuration
4069 % file containing the following `Hinclude' code.
4070
4071 % * The supplied html4.4ht, html32.4ht, html0.4ht, tei.4t,
4072 % and docbook.4ht files already include such code.
4073 %
4074 % * In a compilation of a file, exactly one 4ht configuration
4075 % file should load `Hinclude' code.
4076 %
4077 % * Either remove the following three code fragments, or replace
4078 % `sample' in their titles with an entry from (1)
4079 %
4080
4081 \<configure sample tex4ht\><<<
4082 \if:latex ||<Hinclude latex||>
4083 \else ||<Hinclude plain||> \fi
4084 >>|empty>
4085
4086 \<configure sample plain\><<<
4087 ||<Hinclude plain lib||>
4088 ||<Hinclude plain + latex lib||>
4089 >>|empty>
4090
4091 \<configure sample latex\><<<
4092 ||<Hinclude latex lib||>
4093 ||<Hinclude plain + latex lib||>
4094 >>|empty>
4095
4096 \endinput
4097 %--------------------- end of template -------------------
4098 >>>
4099
4100
4101
4102 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4103 \chapter{Segment Code}
4104 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4105
4106 %<--------------------------------------------------------------- (7)
4107 %
4108 % * A 4ht configuration file is made up of segments which
4109 % correspond to classes and styles of tex, latex, amslatex,
4110 % etc. Have a look at these code segments in html4.4ht .
4111 %
4112 % * You can get additional information about the possible
4113 % configurations in the different segments by compiling
4114 % your file with the `info' switch on. For instance
4115 %
4116 % htlatex foo "html,info"
4117 %
4118 % * Code for segment `xxxx' in file `yyyy.4ht' is introduced
4119 % through fragments named `configure yyyy xxxx'. That is,
4120 % through fragments of the form
4121 %
4122 % \<configure yyyy xxxx\><<<
4123 % ..........
4124 % >>|empty>
4125 %
4126
4127
4128 \<configure sample tex4ht\><<<
4129 ....tex4ht segment in sample.4ht.....
4130 >>|empty>
4131
4132 \<configure sample latex\><<<
4133 ....latex segment in sample.4ht.....
4134 ||<more code||>
4135 >>|empty>
4136
4137
4138
4139
4140 \<configure example tex4ht\><<<
4141 ....tex4ht segment in example.4ht.....
4142 >>|empty>
4143
4144 \<configure example latex\><<<
4145 ....latex segment in example.4ht.....
4146 >>|empty>
4147
4148
4149 \<more code\><<<
4150 ....additional code....
4151 >>|empty>
4152
4153 %<--------------------------------------------------------------- (8)
4154 %
4155 % * Compile this file twice with the command `latex filename'
4156 % (or with `ht latex filename')
4157 %
4158 % * If you don't have a file named tex4ht.usr, introduce such a file
4159 %
4160 % * Insert into tex4ht.usr a file along the following lines, which
4161 % invokes *.4ht configuration files
4162 %
4163 % \Configure{my4hts}{%
4164 % \Hinclude[*]{html4.4ht}%
4165 % \Hinclude[*]{html4-math.4ht}%
4166 % \Hinclude[*]{myflavor.4ht}%
4167 % }
4168 %
4169 % For additional examples inspect, but do not change, the
4170 % tex4ht.4ht file.
4171 %
4172 % * Invoke the compilations of you latex files with commands similar to
4173 %
4174 % htlatex foo "html,my4hts"
4175 %
4176
4177
4178 \endinput
4179 >>>
4180
4181
4182
4183
4184
4185
4186 \endinput
4187
4188
4189
4190