Just noticed that Ben missed another PostScript/PDF inversion.
[sgt/halibut] / doc / output.but
1 \versionid $Id$
2
3 \C{output} Halibut output formats
4
5 This chapter describes each of Halibut's current \i{output formats}.
6 It gives some general information about the format, and also
7 describes all the \i{configuration directives} which are specific to
8 that format.
9
10 \H{output-text} Plain text
11
12 This output format generates the document as a single \i{plain text}
13 file. No table of contents or index is generated.
14
15 The precise formatting of the text file can be controlled by a
16 variety of configuration directives. They are listed in the
17 following subsections.
18
19 \S{output-text-file} Output file name
20
21 \dt \I{\cw{\\cfg\{text-filename\}}}\cw{\\cfg\{text-filename\}\{}\e{filename}\cw{\}}
22
23 \dd Sets the \i{output file name} in which to store the text file.
24 This directive is implicitly generated if you provide a file name
25 parameter after the command-line option \i\c{--text} (see
26 \k{running-options}).
27
28 \S{output-text-dimensions} Indentation and line width
29
30 This section describes the configuration directives which control
31 the \i{horizontal dimensions} of the output text file: how much
32 paragraphs are indented by and how long the lines are.
33
34 \dt \I{\cw{\\cfg\{text-width\}}}\cw{\\cfg\{text-width\}\{}\e{width}\cw{\}}
35
36 \dd Sets the \I{text width}width of the main part of the document,
37 in characters. This width will be used for wrapping paragraphs and
38 for centring titles (if you have asked for titles to be centred -
39 see \k{output-text-headings}). This width does \e{not} include the
40 left indentation set by \cw{\\cfg\{text-indent\}}; if you specify an
41 indent of 8 and a width of 64, your maximum output line length will
42 be 72.
43
44 \dt \I{\cw{\\cfg\{text-indent\}}}\cw{\\cfg\{text-indent\}\{}\e{indent}\cw{\}}
45
46 \dd Sets the left \i{indentation} for the document. If you set this
47 to zero, your document will look like an ordinary text file as
48 someone with a text editor might have written it; if you set it
49 above zero, the text file will have a \i{margin} down the left in
50 the style of some printed manuals, and you can then configure the
51 section numbers to appear in this margin (see
52 \k{output-text-headings}).
53
54 \dt \I{\cw{\\cfg\{text-indent-code\}}}\cw{\\cfg\{text-indent-code\}\{}\e{indent}\cw{\}}
55
56 \dd Specifies how many extra characters of indentation (on top of
57 the normal left indent) should be given to \I{code paragraphs,
58 indentation} code paragraphs.
59
60 \dt \I{\cw{\\cfg\{text-list-indent\}}}\cw{\\cfg\{text-list-indent\}\{}\e{indent}\cw{\}}
61
62 \dd Specifies how many extra spaces should be used to indent the
63 bullet or number in a \I{bulletted list, indentation}bulletted or
64 \I{numbered list, indentation}numbered \I{list, indentation}list.
65 The actual body of the list item will be indented by this much
66 \e{plus} the value configured by \cw{\\cfg\{text-listitem-indent\}}.
67
68 \dt \I{\cw{\\cfg\{text-listitem-indent\}}}\cw{\\cfg\{text-listitem-indent\}\{}\e{indent}\cw{\}}
69
70 \dd Specifies how many extra spaces should be used to indent the
71 body of a list item, over and above the number configured in
72 \cw{\\cfg\{text-list-indent\}}.
73
74 \dt \I{\cw{\\cfg\{text-indent-preamble\}}}\cw{\\cfg\{text-indent-preamble\}\{}\e{boolean}\cw{\}}
75
76 \dd When this is set to \c{true}, the document \i{preamble} (i.e. any
77 paragraphs appearing before the first chapter heading) will be
78 indented to the level specified by \cw{\\cfg\{text-indent\}}. If
79 this setting is \c{false}, the document preamble will not be
80 indented at all from the left margin.
81
82 \S{output-text-headings} \ii{Configuring heading display}
83
84 The directives in this section allow you to configure the appearance
85 of the title, chapter and section headings in your text file.
86
87 Several of the directives listed below specify the \i{alignment} of
88 a heading. These alignment options have three possible values:
89
90 \dt \i\c{left}
91
92 \dd Align the heading to the very left of the text file (column zero).
93
94 \dt \i\c{leftplus}
95
96 \dd Align the section title to the left of the main display region
97 (in other words, indented to the level specified by
98 \cw{\\cfg\{text-indent\}}). The section \e{number} is placed to the
99 left of that (so that it goes in the margin if there is room).
100
101 \dt \i\c{centre}
102
103 \dd Centre the heading.
104
105 Also, several of the directives below specify how a title should be
106 \I{underlining}underlined. The parameter to one of these directives
107 should be either blank (\cw{\{\}}) or a piece of text which will be
108 repeated to produce the underline. So you might want to specify, for
109 example, \cw{\\text-title-underline\{=\}} but
110 \cw{\\text-chapter-underline\{\-\}}.
111
112 You can also specify more than one underline setting, and Halibut
113 will choose the first one that the output character set supports.
114 So, for example, you could write
115 \cw{\\text-chapter-underline\{\\u203e\}\{\-\}}, and Halibut would use
116 the Unicode \q{OVERLINE} character where possible and fall back to
117 the ASCII minus sign otherwise.
118
119 \dt \I{\cw{\\cfg\{text-title-align\}}}\cw{\\cfg\{text-title-align\}\{}\e{alignment}\cw{\}}
120
121 \dd Specifies the alignment of the overall document title: \c{left},
122 \c{leftplus} or \c{centre}.
123
124 \dt \I{\cw{\\cfg\{text-title-underline\}}}\cw{\\cfg\{text-title-underline\}\{}\e{underline-text}\cw{\}}
125
126 \dd Specifies how the overall document title should be underlined.
127
128 \dt \I{\cw{\\cfg\{text-chapter-align\}}}\cw{\\cfg\{text-chapter-align\}\{}\e{alignment}\cw{\}}
129
130 \dd Specifies the alignment of chapter and appendix headings.
131
132 \dt \I{\cw{\\cfg\{text-chapter-underline\}}}\cw{\\cfg\{text-chapter-underline\}\{}\e{underline-text}\cw{\}}
133
134 \dd Specifies how chapter and appendix headings should be underlined.
135
136 \dt \I{\cw{\\cfg\{text-chapter-numeric\}}}\cw{\\cfg\{text-chapter-numeric\}\{}\e{boolean}\cw{\}}
137
138 \dd If this is set to \c{true}, then chapter headings will not
139 contain the word \q{Chapter} (or whatever other word you have
140 defined in its place - see \k{input-sections} and \k{input-config});
141 they will just contain the chapter \e{number}, followed by the
142 chapter title. If you set this to \c{false}, chapter headings will
143 be prefixed by \q{Chapter} or equivalent.
144
145 \dt \I{\cw{\\cfg\{text-chapter-suffix\}}}\cw{\\cfg\{text-chapter-suffix\}\{}\e{text}\cw{\}}
146
147 \dd This specifies the suffix text to be appended to the chapter
148 number, before displaying the chapter title. For example, if you set
149 this to \cq{:\_}, then the chapter title might look something
150 like \q{Chapter 2: Doing Things}.
151
152 \dt \I{\cw{\\cfg\{text-section-align\}}}\cw{\\cfg\{text-section-align\}\{}\e{level}\cw{\}\{}\e{alignment}\cw{\}}
153
154 \dd Specifies the alignment of section headings at a particular
155 level. The \e{level} parameter specifies which level of section
156 headings you want to affect: 0 means first-level headings (\c{\\H}),
157 1 means second-level headings (\c{\\S}), 2 means the level below
158 that (\c{\\S2}), and so on. The \e{alignment} parameter is treated
159 just like the other alignment directives listed above.
160
161 \dt \I{\cw{\\cfg\{text-section-underline\}}}\cw{\\cfg\{text-section-underline\}\{}\e{level}\cw{\}\{}\e{underline-text}\cw{\}}
162
163 \dd Specifies how to underline section headings at a particular level.
164
165 \dt \I{\cw{\\cfg\{text-section-numeric\}}}\cw{\\cfg\{text-section-numeric\}\{}\e{level}\cw{\}\{}\e{boolean}\cw{\}}
166
167 \dd Specifies whether section headings at a particular level should
168 contain the word \q{Section} or equivalent (if \c{false}), or should
169 be numeric only (if \c{true}).
170
171 \dt \I{\cw{\\cfg\{text-section-suffix\}}}\cw{\\cfg\{text-section-suffix\}\{}\e{level}\cw{\}\{}\e{text}\cw{\}}
172
173 \dd Specifies the \I{suffix text, in section titles}suffix text to
174 be appended to section numbers at a particular level, before
175 displaying the section title.
176
177 \S{output-text-characters} Configuring the characters used
178
179 \dt \I\cw{\\cfg\{text-charset\}}\cw{\\cfg\{text-charset\}\{}\e{character set name}\cw{\}}
180
181 \dd This tells Halibut what \i{character set} the output should be
182 in. Any Unicode characters representable in this set will be output
183 verbatim; any other characters will not be output and their
184 \i{fallback text} (if any) will be used instead.
185
186 \lcont{
187
188 The character set names are the same as for
189 \cw{\\cfg\{input-charset\}} (see \k{input-config}). However, unlike
190 \cw{\\cfg\{input-charset\}}, this directive affects the \e{entire}
191 output; it's not possible to switch encodings halfway through.
192
193 }
194
195 \dt \I{\cw{\\cfg\{text-bullet\}}}\cw{\\cfg\{text-bullet\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}...\cw{\}}]
196
197 \dd This specifies the text which should be used as the \i{bullet}
198 in bulletted lists. It can be one character
199 (\cw{\\cfg\{text-bullet\}\{-\}}), or more than one
200 (\cw{\\cfg\{text-bullet\}\{(*)\}}).
201
202 \lcont{
203
204 Like \cw{\\cfg\{quotes\}} (see \k{input-config}), you can specify multiple
205 possible options after this command, and Halibut will choose the first one
206 which the output character set supports. For example, you might write
207 \cw{\\cfg\{text-bullet\}\{\\u2022\}\{\\u00b7\}\{*\}}, in which case
208 Halibut would use the Unicode \q{BULLET} character where possible,
209 fall back to the ISO-8859-1 \q{MIDDLE DOT} if that wasn't available,
210 and resort to the ASCII asterisk if all else failed.
211
212 }
213
214 \dt \I{\cw{\\cfg\{text-rule\}}}\cw{\\cfg\{text-rule\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}...\cw{\}}]
215
216 \dd This specifies the text which should be used for drawing
217 \i{horizontal rules} (generated by \i\c{\\rule}; see
218 \k{input-rule}). It can be one character, or more than one. The
219 string you specify will be repeated to reach the required width, so
220 you can specify something like \cq{-=} to get a rule that looks
221 like \cw{-=-=-=}.
222
223 \lcont{
224
225 Like \cw{\\cfg\{text-bullet\}}, you can specify multiple fallback
226 options in this command.
227
228 }
229
230 \dt \I{\cw{\\cfg\{text-quotes\}}}\cw{\\cfg\{text-quotes\}\{}\e{open-quote}\cw{\}\{}\e{close-quote}\cw{\}}[\cw{\{}\e{open-quote}\cw{\}\{}\e{close-quote}...\cw{\}}]
231
232 \dd This specifies a set of quote characters for the text backend,
233 overriding any defined by \cw{\\cfg\{quotes\}}. It has the same syntax
234 (see \k{input-config}).
235
236 \lcont{
237
238 In this backend, these quotes will also be used to mark text enclosed
239 in the \c{\\c} command (see \k{input-code}).
240
241 }
242
243 \dt \I{\cw{\\cfg\{text-emphasis\}}}\cw{\\cfg\{text-emphasis\}\{}\e{start-emph}\cw{\}\{}\e{end-emph}\cw{\}}[\cw{\{}\e{start-emph}\cw{\}\{}\e{end-emph}...\cw{\}}]
244
245 \dd This specifies the characters which should be used to surround
246 emphasised text (written using the \c{\\e} command; see
247 \k{input-emph}).
248
249 \lcont{
250
251 You should separately specify the start-emphasis and end-emphasis
252 text, each of which can be more than one character if you want.
253 Also, like \cw{\\cfg\{text-quotes\}}, you can specify multiple pairs
254 of fallback options in this command, and Halibut will always use a
255 matching pair.
256
257 }
258
259 \S{output-text-misc} Miscellaneous configuration options
260
261 \dt \I{\cw{\\cfg\{text-list-suffix\}}}\cw{\\cfg\{text-list-suffix\}\{}\e{text}\cw{\}}
262
263 \dd This text is appended to the number on a \i{numbered list} item
264 (see \k{input-list-number}). So if you want to label your lists as
265 \q{1)}, \q{2)} and so on, then you would write
266 \cw{\\cfg\{text-list-suffix\}\{)\}}.
267
268 \dt \I{\cw{\\cfg\{text-versionid\}}}\cw{\\cfg\{text-versionid\}\{}\e{boolean}\cw{\}}
269
270 \dd If this is set to \c{true}, \i{version ID paragraphs} (defined
271 using the \i\c{\\versionid} command - see \k{input-blurb}) will be
272 included at the bottom of the text file. If it is set to \c{false},
273 they will be omitted completely.
274
275 \# FIXME: code indentation is configurable, therefore \quote
276 \# indentation probably ought to be as well.
277
278 \# FIXME: text-indent-* should be consistently named.
279
280 \S{output-text-defaults} Default settings
281
282 The \i{default settings} for Halibut's plain text output format are:
283
284 \c \cfg{text-filename}{output.txt}
285 \c
286 \c \cfg{text-width}{68}
287 \c \cfg{text-indent}{7}
288 \c \cfg{text-indent-code}{2}
289 \c \cfg{text-list-indent}{1}
290 \c \cfg{text-listitem-indent}{3}
291 \c \cfg{text-indent-preamble}{false}
292 \c
293 \c \cfg{text-title-align}{centre}
294 \c \cfg{text-title-underline}{\u2550}{=}
295 \c
296 \c \cfg{text-chapter-align}{left}
297 \c \cfg{text-chapter-underline}{\u203e}{-}
298 \c \cfg{text-chapter-numeric}{false}
299 \c \cfg{text-chapter-suffix}{: }
300 \c
301 \c \cfg{text-section-align}{0}{leftplus}
302 \c \cfg{text-section-underline}{0}{}
303 \c \cfg{text-section-numeric}{0}{true}
304 \c \cfg{text-section-suffix}{0}{ }
305 \c
306 \c \cfg{text-section-align}{1}{leftplus}
307 \c \cfg{text-section-underline}{1}{}
308 \c \cfg{text-section-numeric}{1}{true}
309 \c \cfg{text-section-suffix}{1}{ }
310 \c
311 \c ... and so on for all section levels below this ...
312 \e iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
313 \c
314 \c \cfg{text-charset}{ASCII}
315 \c \cfg{text-bullet}{\u2022}{-}
316 \c \cfg{text-rule}{\u2500}{-}
317 \c \cfg{text-quotes}{\u2018}{\u2019}{`}{'}
318 \c \cfg{text-emphasis}{_}{_}
319 \c
320 \c \cfg{text-list-suffix}{.}
321 \c \cfg{text-versionid}{true}
322
323 \H{output-html} HTML
324
325 This output format generates an \i{HTML} version of the document. By
326 default, this will be in multiple files, starting with
327 \c{Contents.html} and splitting the document into files by chapter
328 and/or subsection. You can configure precisely how the text is split
329 between HTML files using the configuration commands described in
330 this section. In particular, you can configure Halibut to output one
331 single HTML file instead of multiple ones.
332
333 \I{\cw{\\cfg\{xhtml-anything\}}}Configuration directives with an
334 \c{xhtml-} prefix are synonyms for those with an \c{html-} prefix.
335
336 \S{output-html-file} Controlling the output file names
337
338 \dt \I{\cw{\\cfg\{html-contents-filename\}}}\cw{\\cfg\{html-contents-filename\}\{}\e{filename}\cw{\}}
339
340 \dd Sets the \i{output file name} in which to store the top-level
341 contents page. Since this is the first page a user ought to see when
342 beginning to read the document, a good choice in many cases might be
343 \c{index.html} (although this is not the default, for historical
344 reasons).
345
346 \dt \I{\cw{\\cfg\{html-index-filename\}}}\cw{\\cfg\{html-index-filename\}\{}\e{filename}\cw{\}}
347
348 \dd Sets the file name in which to store the document's index.
349
350 \dt \I{\cw{\\cfg\{html-template-filename\}}}\cw{\\cfg\{html-template-filename\}\{}\e{template}\cw{\}}
351
352 \dd Provides a \i{template} to be used when constructing the file
353 names of each chapter or section of the document. This template
354 should contain at least one \i\e{formatting command}, in the form of
355 a per cent sign followed by a letter. (If you need a literal per
356 cent sign, you can write \c{%%}.)
357
358 \lcont{
359
360 The formatting commands used in this template are:
361
362 \dt \I{%N-upper}\c{%N}
363
364 \dd Expands to the visible title of the section, with white space
365 removed. So in a chapter declared as \cq{\\C\{fish\} Catching
366 Fish}, this formatting command would expand to
367 \cq{CatchingFish}.
368
369 \dt \i\c{%n}
370
371 \dd Expands to the type and number of the section, without white
372 space. So in chapter 1 this would expand to \cq{Chapter1}; in
373 section A.4.3 it would expand to \cq{SectionA.4.3}, and so on.
374 If the section has no number (an unnumbered chapter created using
375 \c{\\U}), this directive falls back to doing the same thing as
376 \c{%N}.
377
378 \dt \i\c{%b}
379
380 \dd Expands to the number of the section, in a format suitable for an
381 HTML fragment name. The first character of the section type is
382 prepended to the section number. So in chapter 1 this would expand to
383 \cq{C1}; in section A.4.3 it would expand to \cq{SA.4.3}, and so on.
384 If the section has no number (an unnumbered chapter created using
385 \c{\\U}), this directive falls back to doing the same thing as \c{%N}.
386
387 \dt \i\c{%k}
388
389 \dd Expands to the internal keyword specified in the section title.
390 So in a chapter declared as \cq{\\C\{fish\} Catching Fish}, this
391 formatting command would expand to \cq{fish}. If the section has
392 no keyword (an unnumbered chapter created using \c{\\U}), this
393 directive falls back to doing the same thing as \c{%N}.
394
395 These formatting directives can also be used in the
396 \cw{\\cfg\{html-template-fragment\}} configuration directive (see
397 \k{output-html-misc}).
398
399 }
400
401 \dt \I{\cw{\\cfg\{html-single-filename\}}}\cw{\\cfg\{html-single-filename\}\{}\e{filename}\cw{\}}
402
403 \dd Sets the file name in which to store the entire document, if
404 Halibut is configured (using \c{\\cfg\{html-leaf-level\}\{0\}} to
405 produce a single self-contained file. Both this directive \e{and}
406 \c{\\cfg\{html-leaf-level\}\{0\}} are implicitly generated if you
407 provide a file name parameter after the command-line option
408 \i\c{--html} (see \k{running-options}).
409
410 \S{output-html-split} Controlling the splitting into HTML files
411
412 By default, the HTML output from Halibut is split into multiple
413 files. Each file typically contains a single chapter or section and
414 everything below it, unless subsections of that chapter are
415 themselves split off into further files.
416
417 Most files also contain a contents section, giving hyperlinks to the
418 sections in the file and/or the sections below it.
419
420 The configuration directives listed below allow you to configure the
421 splitting into files, and the details of the contents sections.
422
423 \dt \I{\cw{\\cfg\{html-leaf-level\}}}\cw{\\cfg\{html-leaf-level\}\{}\e{depth}\cw{\}}
424
425 \dd This setting indicates the depth of section which should be
426 given a \I{leaf file}\q{leaf} file (a file with no sub-files). So if
427 you set it to 1, for example, then every chapter will be given its
428 own HTML file, plus a top-level \i{contents file}. If you set this
429 to 2, then each chapter \e{and} each \c{\\H} section will have a
430 file, and the chapter files will mostly just contain links to their
431 \i{sub-file}s.
432
433 \lcont{
434
435 If you set this option to zero, then the whole document will appear
436 in a single file. If you do this, Halibut will call that file
437 \i\c{Manual.html} instead of \i\c{Contents.html} by default.
438
439 This option is automatically set to zero if you provide a file name
440 parameter after the command-line option \i\c{--html} (see
441 \k{running-options}), because you have specified a single file name
442 and so Halibut assumes you want the whole document to be placed in
443 that file.
444
445 }
446
447 \dt \I{\cw{\\cfg\{html-contents-depth\}}}\cw{\\cfg\{html-contents-depth\}\{}\e{level}\cw{\}\{}\e{depth}\cw{\}}
448
449 \dd This directive allows you to specify how \I{depth of
450 contents}deep any contents section in a particular level of file
451 should go.
452
453 \lcont{
454
455 The \e{level} parameter indicates which level of contents section
456 you are dealing with. 0 denotes the main contents section in the
457 topmost file \c{Contents.html}; 1 denotes a contents section in a
458 chapter file; 2 is a contents section in a file containing a \c{\\H}
459 heading, and so on.
460
461 The \e{depth} parameter indicates the maximum depth of heading which
462 will be shown in this contents section. Again, 1 denotes a chapter,
463 2 is a \c{\\H} heading, 3 is a \c{\\S} heading, and so on.
464
465 So, for example: \cw{\\cfg\{html-contents-depth\}\{1\}\{3\}} instructs
466 Halibut to put contents links in chapter files for all sections down
467 to \c{\\S} level, but not to go into any more detail than that.
468
469 For backwards compatibility, the alternative syntax
470 \cw{\\cfg\{html-contents-depth-}\e{level}\cw{\}\{}\e{depth}\cw{\}}
471 is also supported.
472
473 }
474
475 \dt \I{\cw{\\cfg\{html-leaf-contains-contents\}}}\cw{\\cfg\{html-leaf-contains-contents\}\{}\e{boolean}\cw{\}}
476
477 \dd If you set this to \c{true}, then each leaf file will contain
478 its own contents section which summarises the text within it.
479
480 \dt \I{\cw{\\cfg\{html-leaf-smallest-contents\}}}\cw{\\cfg\{html-leaf-smallest-contents\}\{}\e{number}\cw{\}}
481
482 \dd Contents sections in leaf files are not output at all if they
483 contain very few entries (on the assumption that it just isn't worth
484 bothering). This directive configures the minimum number of entries
485 required in a leaf contents section to make Halibut bother
486 generating it at all.
487
488 \S{output-html-html} Including pieces of your own HTML
489
490 The directives in this section allow you to supply pieces of
491 \I{HTML}\i{verbatim HTML} code, which will be included in various
492 parts of the output files.
493
494 Note that none of Halibut's usual character set translation is applied
495 to this code; it is assumed to already be in a suitable encoding for
496 the target HTML files.
497
498 \dt \I{\cw{\\cfg\{html-head-end\}}}\cw{\\cfg\{html-head-end\}\{}\e{HTML text}\cw{\}}
499
500 \dd The text you provide in this directive is placed at the end of
501 the \i\cw{<HEAD>} section of each output HTML file. So this is a
502 good place to put, for example, a link to a \i{CSS} \i{stylesheet}.
503
504 \dt \I{\cw{\\cfg\{html-local-head\}}}\cw{\\cfg\{html-local-head\}\{}\e{HTML text}\cw{\}}
505
506 \dd This configuration directive is local: you specify it within a
507 document section, and it acts on that section only.
508
509 \lcont{
510
511 The text you provide in this directive is placed at the end of the
512 \i\cw{<HEAD>} section of whichever output HTML file contains the
513 section in which the directive was placed. You can specify this
514 directive multiple times in multiple sections if you like.
515
516 This directive is particularly useful for constructing \i{MacOS
517 on-line help}, which is mostly normal HTML but which requires a
518 special \i\cw{<META NAME="AppleTitle">} tag in the topmost source
519 file. You can arrange this by placing this configuration directive
520 in the preamble or the introduction section, something like this:
521
522 \c \cfg{html-local-head}{<meta name="AppleTitle"
523 \c content="MyApp Help">}
524
525 }
526
527 \dt \I{\cw{\\cfg\{html-body-tag\}}}\cw{\\cfg\{html-body-tag\}\{}\e{HTML text}\cw{\}}
528
529 \dd The text you provide in this directive is used in place of the
530 \i\cw{<BODY>} tag in each output file. So if you wanted to define a
531 \i{background colour}, for example, you could write
532 \cw{\\cfg\{html-body-tag\}\{<body bg="#123456">\}}.
533
534 \dt \I{\cw{\\cfg\{html-body-start\}}}\cw{\\cfg\{html-body-start\}\{}\e{HTML text}\cw{\}}
535
536 \dd The text you provide in this directive is placed at the
537 beginning of the \i\cw{<BODY>} section of each output HTML file. So
538 if you intend your HTML files to be part of a web site with a
539 standard \i{house style}, and the style needs a \i{header} at the
540 top of every page, this is where you can add that header.
541
542 \dt \I{\cw{\\cfg\{html-body-end\}}}\cw{\\cfg\{html-body-end\}\{}\e{HTML text}\cw{\}}
543
544 \dd The text you provide in this directive is placed at the end of
545 the \i\cw{<BODY>} section of each output HTML file, before any address
546 section. So if you intend your HTML files to be part of a web site
547 with a standard \i{house style}, and the style needs a \i{footer} at
548 the bottom of every page, this is where you can add that footer.
549
550 \dt \I{\cw{\\cfg\{html-address-start\}}}\cw{\\cfg\{html-address-start\}\{}\e{HTML text}\cw{\}}
551
552 \dd The text you provide in this directive is placed at the
553 beginning of the \i\cw{<ADDRESS>} section at the bottom of each
554 output HTML file. This might be a good place to put authors'
555 \i{contact details}, for example.
556
557 \dt \I{\cw{\\cfg\{html-address-end\}}}\cw{\\cfg\{html-address-end\}\{}\e{HTML text}\cw{\}}
558
559 \dd The text you provide in this directive is placed at the end of
560 the \i\cw{<ADDRESS>} section at the bottom of each output HTML file,
561 after the version IDs (if present).
562
563 \dt \I{\cw{\\cfg\{html-navigation-attributes\}}}\cw{\\cfg\{html-navigation-attributes\}\{}\e{HTML attributes}\cw{\}}
564
565 \dd The text you provide in this directive is included inside the
566 \cw{<P>} tag containing the \i{navigation links} at the top of each
567 page (\i{\q{Previous}} / \i{\q{Contents}} / \i{\q{Next}}). So if you
568 wanted the navigation links to have a particular CSS style, you
569 could write
570 \cw{\\cfg\{html-navigation-attributes\}\{class="foo"\}}, and the
571 navigation-links paragraph would then begin with the tag \cw{<p
572 class="foo">}.
573
574 \S{output-html-headings} \ii{Configuring heading display}
575
576 \dt \I{\cw{\\cfg\{html-chapter-numeric\}}}\cw{\\cfg\{html-chapter-numeric\}\{}\e{boolean}\cw{\}}
577
578 \dd If this is set to \c{true}, then chapter headings will not
579 contain the word \q{Chapter} (or whatever other word you have
580 defined in its place - see \k{input-sections} and \k{input-config});
581 they will just contain the chapter \e{number}, followed by the
582 chapter title. If you set this to \c{false}, chapter headings will
583 be prefixed by \q{Chapter} or equivalent.
584
585 \dt \I{\cw{\\cfg\{html-chapter-suffix\}}}\cw{\\cfg\{html-chapter-suffix\}\{}\e{text}\cw{\}}
586
587 \dd This specifies the suffix text to be appended to the chapter
588 number, before displaying the chapter title. For example, if you set
589 this to \cq{:\_}, then the chapter title might look something
590 like \q{Chapter 2: Doing Things}.
591
592 \dt \I{\cw{\\cfg\{html-section-numeric\}}}\cw{\\cfg\{html-section-numeric\}\{}\e{level}\cw{\}\{}\e{boolean}\cw{\}}
593
594 \# {level} can be omitted (defaults to 0). Is this intentional?
595
596 \dd Specifies whether section headings at a particular level should
597 contain the word \q{Section} or equivalent (if \c{false}), or should
598 be numeric only (if \c{true}). The \e{level} parameter specifies
599 which level of section headings you want to affect: 0 means
600 first-level headings (\c{\\H}), 1 means second-level headings
601 (\c{\\S}), 2 means the level below that (\c{\\S2}), and so on.
602
603 \dt \I{\cw{\\cfg\{html-section-suffix\}}}\cw{\\cfg\{html-section-suffix\}\{}\e{level}\cw{\}\{}\e{text}\cw{\}}
604
605 \# {level} can be omitted (defaults to 0). Is this intentional?
606
607 \dd Specifies the suffix text to be appended to section numbers at a
608 particular level, before displaying the section title.
609
610 \S{output-html-names} Configuring standard text
611
612 These directives let you fine-tune the names Halibut uses in places
613 such as the navigation bar to refer to various parts of the document,
614 and other standard pieces of text, for instance to change them to a
615 different language.
616
617 \dt \I{\cw{\\cfg\{html-preamble-text\}}}\cw{\\cfg\{html-preamble-text\}\{}\e{text}\cw{\}}
618
619 \dt \I{\cw{\\cfg\{html-contents-text\}}}\cw{\\cfg\{html-contents-text\}\{}\e{text}\cw{\}}
620
621 \dt \I{\cw{\\cfg\{html-index-text\}}}\cw{\\cfg\{html-index-text\}\{}\e{text}\cw{\}}
622
623 \dd Text used to refer to the preamble (i.e., any paragraphs before
624 the first chapter heading), contents, and index respectively, in the
625 navigation bar, contents, and index.
626
627 \lcont{
628
629 (\c{html-contents-text} and \c{html-index-text} override the
630 cross-format configuration keywords \c{contents} and \c{index} (see
631 \k{input-config}, if both appear. They are legacy keywords preserved
632 for backwards compatibility; you should generally use \c{contents}
633 and \c{index}.)
634
635 }
636
637 \dt \I{\cw{\\cfg\{html-title-separator\}}}\cw{\\cfg\{html-title-separator\}\{}\e{text}\cw{\}}
638
639 \dd If multiple headings are used in a file's \cw{<TITLE>} tag, this
640 text is used to separate them.
641
642 \# Under what circumstances can this occur?
643
644 \dt \I{\cw{\\cfg\{html-index-main-separator\}}}\cw{\\cfg\{html-index-main-separator\}\{}\e{text}\cw{\}}
645
646 \dd Separator between index term and references in the index.
647
648 \dt \I{\cw{\\cfg\{html-index-multiple-separator\}}}\cw{\\cfg\{html-index-multiple-separator\}\{}\e{text}\cw{\}}
649
650 \dd Separator between multiple references for a single index term in
651 the index.
652
653 \dt \I{\cw{\\cfg\{html-pre-versionid\}}}\cw{\\cfg\{html-pre-versionid\}\{}\e{text}\cw{\}}
654
655 \dt \I{\cw{\\cfg\{html-post-versionid\}}}\cw{\\cfg\{html-post-versionid\}\{}\e{text}\cw{\}}
656
657 \dd Text surrounding each output \i{version ID paragraph}.
658
659 \dt \I{\cw{\\cfg\{html-nav-prev-text\}}}\cw{\\cfg\{html-nav-prev-text\}\{}\e{text}\cw{\}}
660
661 \dt \I{\cw{\\cfg\{html-nav-next-text\}}}\cw{\\cfg\{html-nav-next-text\}\{}\e{text}\cw{\}}
662
663 \dd The text used for the \q{previous page} and \q{next page} links on
664 the navigation bar.
665
666 \dt \I{\cw{\\cfg\{html-nav-separator\}}}\cw{\\cfg\{html-nav-separator\}\{}\e{text}\cw{\}}
667
668 \dd Separator between links in the navigation bar.
669
670 \S{output-html-characters} Configuring the characters used
671
672 Unlike the other backends, HTML does not have a single
673 \i\cw{\\cfg\{html-charset\}} directive, as there are several levels of
674 character encoding to consider.
675
676 The character set names are the same as for
677 \cw{\\cfg\{input-charset\}} (see \k{input-config}). However, unlike
678 \cw{\\cfg\{input-charset\}}, these directives affect the \e{entire}
679 output; it's not possible to switch encodings halfway through.
680
681 \dt \I\cw{\\cfg\{html-output-charset\}}\cw{\\cfg\{html-output-charset\}\{}\e{character set name}\cw{\}}
682
683 \dd The character encoding of the HTML file to be output. Unicode
684 characters in this encoding's repertoire are included literally rather
685 than as \i{HTML entities}.
686
687 \dt \I\cw{\\cfg\{html-restrict-charset\}}\cw{\\cfg\{html-restrict-charset\}\{}\e{character set name}\cw{\}}
688
689 \dd Only Unicode characters representable in this character set will be
690 output; any others will be omitted and use their fallback text, if
691 any. Characters not in \q{html-output-charset} will be represented as
692 HTML numeric entities.
693
694 \dt \I{\cw{\\cfg\{html-quotes\}}}\cw{\\cfg\{html-quotes\}\{}\e{open-quote}\cw{\}\{}\e{close-quote}\cw{\}}[\cw{\{}\e{open-quote}\cw{\}\{}\e{close-quote}...\cw{\}}]
695
696 \dd Specifies the quotation marks to use, overriding any
697 \cw{\\cfg\{quotes\}} directive. You can specify multiple
698 fallback options. Works exactly like the \cw{\\cfg\{text-quotes\}}
699 directive (see \k{output-text-characters}).
700
701 \S{output-html-misc} Miscellaneous options
702
703 \dt \I\cw{\\cfg\{html-version\}}\cw{\\cfg\{html-version\}\{}\e{version}\cw{\}}
704
705 \dd Identifies the precise version of HTML that is output. This
706 affects the declaration within the HTML, and also has minor effects on
707 the body of the HTML so that it is valid for the declared version. The
708 available variants are:
709
710 \lcont{
711
712 \dt \cw{html3.2}
713
714 \dd W3C HTML 3.2
715
716 \dt \cw{html4}
717
718 \dd W3C HTML 4.01 Strict
719
720 \dt \cw{iso-html}
721
722 \dd ISO/IEC 15445:2000
723
724 \dt \cw{xhtml1.0transitional}
725
726 \dd W3C XHTML 1.0 Transitional
727
728 \dt \cw{xhtml1.0strict}
729
730 \dd W3C XHTML 1.0 Strict
731
732 }
733
734 \dt \I{\cw{\\cfg\{html-template-fragment\}}}\cw{\\cfg\{html-template-fragment\}\{}\e{template}\cw{\}}[\cw{\{}\e{template}\cw{\}\{}...\cw{\}}]
735
736 \dd This directive lets you specify a \i{template}, with exactly the
737 same syntax used in \cw{\\cfg\{html-template-filename\}} (see
738 \k{output-html-file}), to be used for the anchor names (\i\cw{<a
739 name="...">}) used to allow URLs to refer to specific sections
740 within a particular HTML file. So if you set this to \cq{%k},
741 for example, then each individual section in your document will be
742 addressable by means of a URL ending in a \c{#} followed by your
743 internal section keyword.
744
745 \lcont{
746
747 If more than one template is specified, anchors are generated in all
748 the specified formats; Halibut's own cross-references are generated
749 with the first template.
750
751 Characters that are not permitted in anchor names are stripped. If
752 there are no valid characters left, or a fragment is non-unique,
753 Halibut starts inventing fragment names and suffixes as appropriate.
754
755 Note that there are potentially fragment names that are not controlled
756 by this mechanism, such as index references.
757
758 }
759
760 \dt \I{\cw{\\cfg\{html-versionid\}}}\cw{\\cfg\{html-versionid\}\{}\e{boolean}\cw{\}}
761
762 \dd If this is set to \c{true}, \i{version ID paragraphs} (defined using
763 the \i\c{\\versionid} command - see \k{input-blurb}) will be included
764 visibly in the \i\cw{<ADDRESS>} section at the bottom of each HTML
765 file. If it is set to \c{false}, they will only be included as HTML
766 comments.
767
768 \dt \I{\cw{\\cfg\{html-suppress-address\}}}\cw{\\cfg\{html-suppress-address\}\{}\e{boolean}\cw{\}}
769
770 \dd If this is set to \c{true}, the \i\cw{<ADDRESS>} section at the
771 bottom of each HTML file will be omitted completely. (This will
772 therefore also cause \i{version IDs} not to be included visibly.)
773
774 \dt \I{\cw{\\cfg\{html-author\}}}\cw{\\cfg\{html-author\}\{}\e{text}\cw{\}}
775
776 \dd The text supplied here goes in a \I{\cw{<META>} tags}\cw{<META
777 name="author">} tag in the output HTML files, so that browsers which
778 support this can automatically identify the \i{author} of the document.
779
780 \dt \I{\cw{\\cfg\{html-description\}}}\cw{\\cfg\{html-description\}\{}\e{text}\cw{\}}
781
782 \dd The text supplied here goes in a \I{\cw{<META>} tags}\cw{<META
783 name="description">} tag in the output HTML files, so that browsers
784 which support this can easily pick out a brief \I{description, of
785 document}description of the document.
786
787 \S{output-html-defaults} Default settings
788
789 The \i{default settings} for Halibut's HTML output format are:
790
791 \c \cfg{html-contents-filename}{Contents.html}
792 \c \cfg{html-index-filename}{IndexPage.html}
793 \c \cfg{html-template-filename}{%n.html}
794 \c \cfg{html-single-filename}{Manual.html}
795 \c
796 \c \cfg{html-leaf-level}{2}
797 \c \cfg{html-leaf-contains-contents}{false}
798 \c \cfg{html-leaf-smallest-contents}{4}
799 \c \cfg{html-contents-depth}{0}{2}
800 \c \cfg{html-contents-depth}{1}{3}
801 \c ... and so on for all section levels below this ...
802 \e iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
803 \c
804 \c \cfg{html-head-end}{}
805 \c \cfg{html-body-tag}{<body>}
806 \c \cfg{html-body-start}{}
807 \c \cfg{html-body-end}{}
808 \c \cfg{html-address-start}{}
809 \c \cfg{html-address-end}{}
810 \c \cfg{html-navigation-attributes}{}
811 \c
812 \c \cfg{html-chapter-numeric}{false}
813 \c \cfg{html-chapter-suffix}{: }
814 \c
815 \c \cfg{html-section-numeric}{0}{true}
816 \c \cfg{html-section-suffix}{0}{ }
817 \c
818 \c \cfg{html-section-numeric}{1}{true}
819 \c \cfg{html-section-suffix}{1}{ }
820 \c
821 \c ... and so on for all section levels below this ...
822 \e iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
823 \c
824 \c \cfg{html-preamble-text}{Preamble}
825 \c \cfg{html-contents-text}{Contents}
826 \c \cfg{html-index-text}{Index}
827 \c \cfg{html-title-separator}{ - }
828 \c \cfg{html-index-main-separator}{: }
829 \c \cfg{html-index-multiple-separator}{, }
830 \c \cfg{html-pre-versionid}{[}
831 \c \cfg{html-post-versionid}{]}
832 \c \cfg{html-nav-prev-text}{Previous}
833 \c \cfg{html-nav-next-text}{Next}
834 \c \cfg{html-nav-separator}{ | }
835 \c
836 \c \cfg{html-output-charset}{ASCII}
837 \c \cfg{html-restrict-charset}{UTF-8}
838 \c \cfg{html-quotes}{\u2018}{\u2019}{"}{"}
839 \c
840 \c \cfg{html-version}{html4}
841 \c \cfg{html-template-fragment}{%b}
842 \c \cfg{html-versionid}{true}
843 \c \cfg{html-suppress-address}{false}
844 \c \cfg{html-author}{}
845 \c \cfg{html-description}{}
846
847 \H{output-whlp} Windows Help
848
849 This output format generates data that can be used by the \i{Windows
850 Help} program \cw{WINHELP.EXE}. There are two actual files
851 generated, one ending in \c{.hlp} and the other ending in \c{.cnt}.
852
853 Currently, the output is hardcoded to be in the \q{\i{Win1252}}
854 character set. (If anyone knows how character sets are encoded in
855 Windows Help, we'd appreciate help.)
856
857 The Windows Help output format supports the following configuration
858 directives:
859
860 \S{output-whlp-file} Output file name
861
862 \dt \I{\cw{\\cfg\{winhelp-filename\}}}\cw{\\cfg\{winhelp-filename\}\{}\e{filename}\cw{\}}
863
864 \dd Sets the \i{output file name} in which to store the man page.
865 This directive is implicitly generated if you provide a file name
866 parameter after the command-line option \i\c{--winhelp} (see
867 \k{running-options}).
868
869 \lcont{
870
871 Your output file name should end with \c{.hlp}; if it doesn't,
872 Halibut will append it. Halibut will also generate a contents file
873 (ending in \c{.cnt}) alongside the file name you specify.
874
875 }
876
877 \S{output-whlp-characters} Configuring the characters used
878
879 \dt \I{\cw{\\cfg\{winhelp-bullet\}}}\cw{\\cfg\{winhelp-bullet\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}\cw{\}}...]
880
881 \dd Specifies the text to use as the \i{bullet} in bulletted lists.
882 You can specify multiple fallback options. Works exactly like the
883 \cw{\\cfg\{text-bullet\}} directive (see
884 \k{output-text-characters}).
885
886 \dt \I{\cw{\\cfg\{winhelp-quotes\}}}\cw{\\cfg\{winhelp-quotes\}\{}\e{open-quote}\cw{\}\{}\e{close-quote}\cw{\}}[\cw{\{}\e{open-quote}\cw{\}\{}\e{close-quote}...\cw{\}}]
887
888 \dd Specifies the quotation marks to use, overriding any
889 \cw{\\cfg\{quotes\}} directive. You can specify multiple
890 fallback options. Works exactly like the \cw{\\cfg\{text-quotes\}}
891 directive (see \k{output-text-characters}).
892
893 \S{output-whlp-misc} Miscellaneous configuration options
894
895 \dt \I{\cw{\\cfg\{winhelp-contents-titlepage\}}}\cw{\\cfg\{winhelp-contents-titlepage\}\{}\e{title}\cw{\}}
896
897 \dd Sets the text used to describe the help page containing the blurb
898 (see \k{input-blurb}) and table of contents.
899
900 \dt
901 \I{\cw{\\cfg\{winhelp-section-suffix\}}}\cw{\\cfg\{winhelp-section-suffix\}\{}\e{text}\cw{\}}
902
903 \dd Specifies the \I{suffix text, in section titles}suffix text to
904 be appended to section numbers, before displaying the section title.
905 (Applies to all levels.)
906
907 \dt \I{\cw{\\cfg\{winhelp-list-suffix\}}}\cw{\\cfg\{winhelp-list-suffix\}\{}\e{text}\cw{\}}
908
909 \dd This text is appended to the number on a \i{numbered list} item,
910 in exactly the same way as \cw{\\cfg\{text-list-suffix\}} (see
911 \k{output-text-characters}).
912
913 \dt \I{\cw{\\cfg\{winhelp-topic\}}}\cw{\\cfg\{winhelp-topic\}\{}\e{topic-name}\cw{\}}
914
915 \dd This directive defines a Windows \i{Help topic} name in the current
916 section. Topic names can be used by the program invoking
917 \cw{WINHELP.EXE} to jump straight to a particular section. So you
918 can use this for \i{context-sensitive help}.
919
920 \lcont{
921
922 For example, if you used this directive in a particular section:
923
924 \c \cfg{winhelp-topic}{savingfiles}
925
926 then a Windows application could invoke Windows Help to jump to that
927 particular section in the help file like this:
928
929 \c WinHelp(hwnd, "mydoc.hlp", HELP_COMMAND,
930 \c (DWORD)"JI(`',`savingfiles')");
931
932 You can use this configuration directive many times, in many
933 different subsections of your document, in order to define a lot of
934 different help contexts which you can use in this way.
935
936 }
937
938 \S{output-whlp-defaults} Default settings
939
940 The \i{default settings} for the Windows Help output format are:
941
942 \c \cfg{winhelp-filename}{output.hlp}
943 \c
944 \c \cfg{winhelp-bullet}{\u2022}{-}
945 \c \cfg{winhelp-quotes}{\u2018}{\u2019}{"}{"}
946 \c
947 \c \cfg{winhelp-contents-titlepage}{Title page}
948 \c \cfg{winhelp-section-suffix}{: }
949 \c \cfg{winhelp-list-suffix}{.}
950
951 and no \c{\\cfg\{winhelp-topic\}} directives anywhere.
952
953 \H{output-man} Unix \cw{man} pages
954
955 This output format generates a Unix \i{\cw{man} page}. That is to say,
956 it generates \i\c{nroff} input designed to work with the \c{-mandoc}
957 macro package.
958
959 The available configuration options for this format are as follows:
960
961 \S{output-man-file} Output file name
962
963 \dt \I{\cw{\\cfg\{man-filename\}}}\cw{\\cfg\{man-filename\}\{}\e{filename}\cw{\}}
964
965 \dd Sets the \i{output file name} in which to store the man page.
966 This directive is implicitly generated if you provide a file name
967 parameter after the command-line option \i\c{--man} (see
968 \k{running-options}).
969
970 \S{output-man-identity} Configuring headers and footers
971
972 \dt \I{\cw{\\cfg\{man-identity\}}}\cw{\\cfg\{man-identity\}\{}\e{text}\cw{\}\{}\e{text...}\cw{\}}
973
974 \dd This directive is used to generate the initial \i{\c{.TH}
975 directive} that appears at the top of a \cw{man} page. It expects to
976 be followed by some number of brace pairs containing text, which will
977 be used in the \i{headers} and \i{footers} of the formatted output.
978
979 \lcont{
980
981 A traditional order for the arguments appears to be:
982
983 \n The name of the program.
984
985 \n The (numeric) manual section.
986
987 \n The date that the \cw{man} page was written.
988
989 \n The name of any containing suite of which the program is a part.
990
991 \n The name of the \i{author} of the \cw{man} page.
992
993 For example, a typical \cw{man} page might contain
994
995 \c \cfg{man-identity}{make-foo}{1}{June 2003}{foo-utils}{Fred
996 \c Bloggs}
997
998 }
999
1000 \S{output-man-headings} Configuring heading display
1001
1002 \dt \I{\cw{\\cfg\{man-headnumbers\}}}\cw{\\cfg\{man-headnumbers\}\{}\e{boolean}\cw{\}}
1003
1004 \dd If this is set to \c{true}, then \i{section headings} in the
1005 \cw{man} page will have their \i{section numbers} displayed as usual. If
1006 set to \c{false}, the section numbers will be omitted. (\cw{man}
1007 pages traditionally have section names such as \q{SYNOPSIS},
1008 \q{OPTIONS} and \q{BUGS}, and do not typically number them, so
1009 \c{false} is the setting which conforms most closely to normal
1010 \cw{man} style.)
1011
1012 \dt \I{\cw{\\cfg\{man-mindepth\}}}\cw{\\cfg\{man-mindepth\}\{}\e{depth}\cw{\}}
1013
1014 \dd If this is set to a number greater than 0, then section headings
1015 \e{higher} than the given depth will not be displayed. If it is set
1016 to zero, all section headings will be displayed as normal.
1017
1018 \lcont{
1019
1020 The point of this is so that you can use the same Halibut input file
1021 to generate a quick-reference \cw{man} page for a program, \e{and} to
1022 include that \cw{man} page as an appendix in your program's full manual.
1023 If you are to include the \cw{man} page as an appendix, then the internal
1024 headings within the page will probably need to be at \c{\\H} or
1025 \c{\\S} level; therefore, when you format that input file on its own
1026 to create the \cw{man} page itself, you will need to have defined a
1027 \c{\\C} and possibly a \c{\\H} heading beforehand, which you don't
1028 want to see displayed.
1029
1030 Here's an example. You might have a file \c{appendix.but}, which
1031 simply says
1032
1033 \c \A{manpages} \cw{man} pages for the Foo tool suite
1034 \c
1035 \c \cfg{man-mindepth}{2}
1036
1037 Then you have a file \c{make-foo.but}, and probably others like it
1038 as well, each of which looks something like this:
1039
1040 \c \cfg{man-identity}{make-foo}{1}{June 2003}{foo-utils}{Fred
1041 \c Bloggs}
1042 \c
1043 \c \H{man-foo} \cw{man} page for \c{make-foo}
1044 \c
1045 \c \S{man-foo-name} NAME
1046 \c
1047 \c \c{make-foo} - create Foo files for the Foo tool suite
1048 \c
1049 \c \S{man-foo-synopsis} SYNOPSIS
1050 \c
1051 \c ... and so on ...
1052 \e iiiiiiiiiiiiiiiii
1053
1054 So when you're generating your main manual, you can include
1055 \c{appendix.but} followed by \c{make-foo.but} and any other \cw{man}
1056 pages you have, and your \cw{man} pages will be formatted neatly as
1057 part of an appendix. Then, in a separate run of Halibut, you can
1058 just do
1059
1060 \c halibut appendix.but make-foo.but
1061
1062 and this will generate a \cw{man} page \c{output.1}, in which the
1063 headings \q{\cw{man} pages for the Foo tool suite} and \q{\cw{man}
1064 page for \c{make-foo}} will not be displayed because of the
1065 \c{man-mindepth} directive. So the first visible heading in the
1066 output \cw{man} page will be \q{NAME}, exactly as a user would
1067 expect.
1068
1069 }
1070
1071 \S{output-man-characters} Configuring the characters used
1072
1073 \dt \I{\cw{\\cfg\{man-charset\}}}\cw{\\cfg\{man-charset\}\{}\e{character set}\cw{\}}
1074
1075 \dd Specifies what character set the output should be in, similarly to
1076 \cw{\\cfg\{text-charset\}} (see \k{output-text-characters}).
1077
1078 \# FIXME: you're probably on your own in making sure that it's
1079 sensible to output man pages in that charset.
1080
1081 \dt \I{\cw{\\cfg\{man-bullet\}}}\cw{\\cfg\{man-bullet\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}\cw{\}}...]
1082
1083 \dd Specifies the text to use as the \i{bullet} in bulletted lists.
1084 You can specify multiple fallback options. Works exactly like the
1085 \cw{\\cfg\{text-bullet\}} directive (see \k{output-text-characters}).
1086
1087 \dt \I{\cw{\\cfg\{man-rule\}}}\cw{\\cfg\{man-rule\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}...\cw{\}}]
1088
1089 \dd This specifies the text which should be used for drawing
1090 \i{horizontal rules} (generated by \i\c{\\rule}; see
1091 \k{input-rule}) when the manual page is rendered into text.
1092 It should only be one character long, but otherwise
1093 it works like the \cw{\\cfg\{text-rule\}} directive
1094 (see \k{output-text-characters}).
1095
1096 \dt \I{\cw{\\cfg\{man-quotes\}}}\cw{\\cfg\{man-quotes\}\{}\e{open-quote}\cw{\}\{}\e{close-quote}\cw{\}}[\cw{\{}\e{open-quote}\cw{\}\{}\e{close-quote}...\cw{\}}]
1097
1098 \dd Specifies the quotation marks to use, overriding any
1099 \cw{\\cfg\{quotes\}} directive. You can specify multiple
1100 fallback options. Works exactly like the \cw{\\cfg\{text-quotes\}}
1101 directive (see \k{output-text-characters}).
1102
1103 \S{output-man-defaults} Default settings
1104
1105 The \i{default settings} for the \cw{man} page output format are:
1106
1107 \c \cfg{man-filename}{output.1}
1108 \c
1109 \c \cfg{man-identity}{}
1110 \c
1111 \c \cfg{man-headnumbers}{false}
1112 \c \cfg{man-mindepth}{0}
1113 \c
1114 \c \cfg{man-charset}{ASCII}
1115 \c \cfg{man-bullet}{\u2022}{o}
1116 \c \cfg{man-rule}{\u2500}{-}
1117 \c \cfg{man-quotes}{\u2018}{\u2019}{"}{"}
1118
1119 \H{output-info} GNU \c{info}
1120
1121 This output format generates files which can be used with the \i{GNU
1122 \c{info}} program.
1123
1124 There are typically multiple output files: a primary file whose name
1125 usually ends in \c{.info}, and one or more subsidiary files whose
1126 names have numbers on the end, so that they end in \c{.info-1},
1127 \c{.info-2} and so on. Alternatively, this output format can be
1128 configured to output a single large file containing the whole
1129 document.
1130
1131 The \c{info} output format supports the following configuration
1132 directives:
1133
1134 \S{output-info-file} Controlling the output filenames
1135
1136 \dt \I{\cw{\\cfg\{info-filename\}}}\cw{\\cfg\{info-filename\}\{}\e{filename}\cw{\}}
1137
1138 \dd Sets the output file name in which to store the \c{info} file.
1139 This directive is implicitly generated if you provide a file name
1140 parameter after the command-line option \i\c{--info} (see
1141 \k{running-options}).
1142
1143 \lcont{
1144
1145 The suffixes \c{-1}, \c{-2}, \c{-3} and so on will be appended to
1146 your output file name to produce any subsidiary files required.
1147
1148 Note that \c{info} files refer to their own names internally, so
1149 these files cannot be \I{renaming \c{info} files}renamed after
1150 creation and remain useful.
1151
1152 }
1153
1154 \dt \I{\cw{\\cfg\{info-max-file-size\}}}\cw{\\cfg\{info-max-file-size\}\{}\e{bytes}\cw{\}}
1155
1156 \dd Sets the preferred \i{maximum file size} for each subsidiary
1157 file. As a special case, if you set this to zero, there will be no
1158 subsidiary files and the whole document will be placed in a single
1159 self-contained output file. (However, note that this file can still
1160 not be renamed usefully.)
1161
1162 \lcont{
1163
1164 The preferred maximum file size is only a guideline. Halibut may be
1165 forced to exceed it if a single section of the document is larger
1166 than the maximum size (since individual \c{info} nodes may not be
1167 split between files).
1168
1169 }
1170
1171 \S{output-info-dimensions} Indentation and line width
1172
1173 \dt \I{\cw{\\cfg\{info-width\}}}\cw{\\cfg\{info-width\}\{}\e{width}\cw{\}}
1174
1175 \dd Sets the \I{text width}width of the main part of the document,
1176 in characters. Works exactly like the \cw{\\cfg\{text-width\}}
1177 directive (see \k{output-text-dimensions}).
1178
1179 \dt \I{\cw{\\cfg\{info-indent-code\}}}\cw{\\cfg\{info-indent-code\}\{}\e{indent}\cw{\}}
1180
1181 \dd Specifies the extra indentation for \I{code paragraphs,
1182 indentation} code paragraphs. Works exactly like the
1183 \cw{\\cfg\{text-indent-code\}} directive (see
1184 \k{output-text-dimensions}).
1185
1186 \dt \I{\cw{\\cfg\{info-index-width\}}}\cw{\\cfg\{info-index-width\}\{}\e{width}\cw{\}}
1187
1188 \dd Specifies how much horizontal space to leave in the index node
1189 for the text of \i{index terms}, before displaying the sections the
1190 terms occur in.
1191
1192 \dt \I{\cw{\\cfg\{info-list-indent\}}}\cw{\\cfg\{info-list-indent\}\{}\e{indent}\cw{\}}
1193
1194 \dd Specifies the extra indentation before the bullet or number in a
1195 \I{bulletted list, indentation}\I{numbered list, indentation}list
1196 item. Works exactly like the \cw{\\cfg\{text-list-indent\}}
1197 directive (see \k{output-text-dimensions}).
1198
1199 \dt \I{\cw{\\cfg\{info-listitem-indent\}}}\cw{\\cfg\{info-listitem-indent\}\{}\e{indent}\cw{\}}
1200
1201 \dd Specifies the additional indentation before the body of a list
1202 item. Works exactly like the \cw{\\cfg\{text-listitem-indent\}}
1203 directive (see \k{output-text-dimensions}).
1204
1205 \S{output-info-headings} Configuring heading display
1206
1207 \dt \I{\cw{\\cfg\{info-section-suffix\}}}\cw{\\cfg\{info-section-suffix\}\{}\e{text}\cw{\}}
1208
1209 \dd Specifies the suffix text to be appended to each section number
1210 before displaying the section title. For example, if you set this to
1211 \cq{:\_}, then a typical section title might look something like
1212 \q{Section 3.1: Something Like This}.
1213
1214 \dt \I{\cw{\\cfg\{info-underline\}}}\cw{\\cfg\{info-underline\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}\cw{\}}...]
1215
1216 \dd Specifies the text to be used to underline section titles. Works
1217 very much like the \cw{\\cfg\{text-chapter-underline\}} directive
1218 (see \k{output-text-headings}). You can specify more than one
1219 option, and Halibut will choose the first one supported by the
1220 character set.
1221
1222 \S{output-info-characters} Controlling the characters used
1223
1224 \dt \I{\cw{\\cfg\{info-charset\}}}\cw{\\cfg\{info-charset\}\{}\e{character set}\cw{\}}
1225
1226 \dd Specifies what character set the output should be in, similarly to
1227 \cw{\\cfg\{text-charset\}} (see \k{output-text-characters}).
1228
1229 \# FIXME: if you try sufficiently hard, you can probably find an
1230 output encoding that will break the info format by trampling on its
1231 special characters. So either don't do that, or tell us what we should
1232 do about it.
1233
1234 \dt \I{\cw{\\cfg\{info-bullet\}}}\cw{\\cfg\{info-bullet\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}\cw{\}}...]
1235
1236 \dd Specifies the text to use as the \i{bullet} in bulletted lists.
1237 You can specify multiple fallback options. Works exactly like the
1238 \cw{\\cfg\{text-bullet\}} directive (see
1239 \k{output-text-characters}).
1240
1241 \dt \I{\cw{\\cfg\{info-rule\}}}\cw{\\cfg\{info-rule\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}\cw{\}}...]
1242
1243 \dd Specifies the text used to draw \i{horizontal rules}. You can
1244 specify multiple fallback options. Works exactly like the
1245 \cw{\\cfg\{text-rule\}} directive (see \k{output-text-characters}).
1246
1247 \dt \I{\cw{\\cfg\{info-quotes\}}}\cw{\\cfg\{info-quotes\}\{}\e{open-quote}\cw{\}\{}\e{close-quote}\cw{\}}[\cw{\{}\e{open-quote}\cw{\}\{}\e{close-quote}...\cw{\}}]
1248
1249 \dd Specifies the quotation marks to use, overriding any
1250 \cw{\\cfg\{quotes\}} directive. You can specify multiple
1251 fallback options. Works exactly like the \cw{\\cfg\{text-quotes\}}
1252 directive (see \k{output-text-characters}).
1253
1254 \dt \I{\cw{\\cfg\{info-emphasis\}}}\cw{\\cfg\{info-emphasis\}\{}\e{start-emph}\cw{\}\{}\e{end-emph}\cw{\}}[\cw{\{}\e{start-emph}\cw{\}\{}\e{end-emph}...\cw{\}}]
1255
1256 \dd Specifies how to display emphasised text. You can specify
1257 multiple fallback options. Works exactly like the
1258 \cw{\\cfg\{text-emphasis\}} directive (see
1259 \k{output-text-characters}).
1260
1261 \S{output-info-misc} Miscellaneous configuration options
1262
1263 \dt \I{\cw{\\cfg\{info-list-suffix\}}}\cw{\\cfg\{info-list-suffix\}\{}\e{text}\cw{\}}
1264
1265 \dd Specifies the text to append to the item numbers in a
1266 \i{numbered list}. Works exactly like the
1267 \cw{\\cfg\{text-list-suffix\}} directive (see
1268 \k{output-text-misc}).
1269
1270 \dt \I{\cw{\\cfg\{info-dir-entry\}}}\cw{\\cfg\{info-dir-entry\}\{}\e{section}\cw{\}\{}\e{short
1271 name}\cw{\}\{}\e{long name}\cw{\}}[\cw{\{}\e{keyword}\cw{\}}]
1272
1273 \dd Constructs an \i\cw{INFO-DIR-ENTRY} section and places it in the
1274 header of the Info file. This mechanism is used to automatically
1275 generate the \i{\c{dir} file} at the root of a Unix system's
1276 \c{info} collection.
1277
1278 \lcont{
1279
1280 The parameters to this directive are:
1281
1282 \dt \e{section}
1283
1284 \dd Specifies the section of the \c{dir} file in which you want your
1285 document referenced. For example, \q{Development}, or \q{Games}, or
1286 \q{Miscellaneous}.
1287
1288 \dt \e{short name}
1289
1290 \dd Specifies a short name for the directory entry, which will
1291 appear at the start of the menu line.
1292
1293 \dt \e{long name}
1294
1295 \dd Specifies a long name for the directory entry, which will appear
1296 at the end of the menu line.
1297
1298 \dt \e{keyword}
1299
1300 \dd This parameter is optional. If it is present, then the directory
1301 entry will cause a jump to a particular subsection of your document,
1302 rather than starting at the top. The subsection will be the one
1303 referred to by the given keyword (see \k{input-sections} for details
1304 about assigning keywords to document sections).
1305
1306 For example, in a document describing many game programs, the
1307 configuration directive
1308
1309 \c \cfg{info-dir-entry}{Games}{Chess}{Electronic chess
1310 \c game}{chess}
1311
1312 might produce text in the \c{dir} file looking something like this:
1313
1314 \c Games
1315 \c * Chess: (mygames)Chapter 3. Electronic chess game
1316
1317 if the output file were called \c{mygames.info} and the keyword
1318 \c{chess} had been used to define Chapter 3 of the document.
1319
1320 }
1321
1322 \S{output-info-defaults} Default settings
1323
1324 The \i{default settings} for the \c{info} output format are:
1325
1326 \c \cfg{info-filename}{output.info}
1327 \c \cfg{info-max-file-size}{65536}
1328 \c
1329 \c \cfg{info-width}{70}
1330 \c \cfg{info-indent-code}{2}
1331 \c \cfg{info-index-width}{40}
1332 \c \cfg{info-list-indent}{1}
1333 \c \cfg{info-listitem-indent}{3}
1334 \c
1335 \c \cfg{info-section-suffix}{: }
1336 \c \cfg{info-underline}{\u203e}{-}
1337 \c
1338 \c \cfg{info-charset}{ASCII}
1339 \c \cfg{info-bullet}{\u2022}{-}
1340 \c \cfg{info-rule}{\u2500}{-}
1341 \c \cfg{info-quotes}{\u2018}{\u2019}{`}{'}
1342 \c \cfg{info-emphasis}{_}{_}
1343 \c
1344 \c \cfg{info-list-suffix}{.}
1345
1346 and no \cw{\\cfg\{info-dir-entry\}} directives.
1347
1348 \H{output-paper} Paper formats
1349
1350 These output formats (currently PDF and PostScript) generate printable
1351 manuals. As such, they share a number of configuration directives.
1352
1353 \S{output-pdf} \i{PDF}
1354
1355 This output format generates a printable manual in PDF format. In
1356 addition, it uses some PDF interactive features to
1357 provide an outline of all the document's sections and clickable
1358 cross-references between sections.
1359
1360 There is one configuration option specific to PDF:
1361
1362 \dt \I{\cw{\\cfg\{pdf-filename\}}}\cw{\\cfg\{pdf-filename\}\{}\e{filename}\cw{\}}
1363
1364 \dd Sets the \i{output file name} in which to store the PDF file.
1365 This directive is implicitly generated if you provide a file name
1366 parameter after the command-line option \i\c{--pdf} (see
1367 \k{running-options}).
1368
1369 The \i{default settings} for the PDF output format are:
1370
1371 \c \cfg{pdf-filename}{output.pdf}
1372
1373 \S{output-ps} \i{PostScript}
1374
1375 This output format generates a printable manual in PostScript format.
1376 This should look exactly identical to the PDF output (see
1377 \k{output-ps}), and uses \i\c{pdfmark} to arrange that if converted
1378 to PDF it will contain the same interactive features.
1379
1380 There is one configuration option specific to PostScript:
1381
1382 \dt \I{\cw{\\cfg\{ps-filename\}}}\cw{\\cfg\{ps-filename\}\{}\e{filename}\cw{\}}
1383
1384 \dd Sets the \i{output file name} in which to store the PostScript
1385 file. This directive is implicitly generated if you provide a file
1386 name parameter after the command-line option \i\c{--ps} (see
1387 \k{running-options}).
1388
1389 The \i{default settings} for the PostScript output format are:
1390
1391 \c \cfg{ps-filename}{output.ps}
1392
1393 \S{output-paper-dimensions} Configuring layout and \i{measurements}
1394
1395 All measurements are in PostScript \i{points} (72 points to the inch).
1396
1397 \S2{output-paper-pagesize} Page properties
1398
1399 \dt \I{\cw{\\cfg\{paper-page-width\}}}\cw{\\cfg\{paper-page-width\}\{}\e{points}\cw{\}}
1400
1401 \dt \I{\cw{\\cfg\{paper-page-height\}}}\cw{\\cfg\{paper-page-height\}\{}\e{points}\cw{\}}
1402
1403 \dd Specify the absolute limits of the paper.
1404
1405 \dt \I{\cw{\\cfg\{paper-left-margin\}}}\cw{\\cfg\{paper-left-margin\}\{}\e{points}\cw{\}}
1406
1407 \dt \I{\cw{\\cfg\{paper-top-margin\}}}\cw{\\cfg\{paper-top-margin\}\{}\e{points}\cw{\}}
1408
1409 \dt \I{\cw{\\cfg\{paper-right-margin\}}}\cw{\\cfg\{paper-right-margin\}\{}\e{points}\cw{\}}
1410
1411 \dt \I{\cw{\\cfg\{paper-bottom-margin\}}}\cw{\\cfg\{paper-bottom-margin\}\{}\e{points}\cw{\}}
1412
1413 \dd Specify the margins. Most text appears within these margins,
1414 except:
1415
1416 \lcont{
1417
1418 \b Section numbers, which appear in the left margin.
1419
1420 \b The footer (containing page numbers), which appears in the bottom
1421 margin.
1422
1423 }
1424
1425 \S2{output-paper-line} Vertical spacing
1426
1427 \dt \I{\cw{\\cfg\{paper-base-leading\}}}\cw{\\cfg\{paper-base-leading\}\{}\e{points}\cw{\}}
1428
1429 \dd Specifies the amount of space between lines of text within a
1430 paragraph. (So, if the font size is 12pt and there is 2pt of leading,
1431 there will be 14pt between successive baselines.)
1432
1433 \dt \I{\cw{\\cfg\{paper-base-para-spacing\}}}\cw{\\cfg\{paper-base-para-spacing\}\{}\e{points}\cw{\}}
1434
1435 \dd Specifies the amount of vertical space between paragraphs. (The
1436 vertical space between paragraphs does \e{not} include
1437 \c{paper-base-leading}.)
1438
1439 \S2{output-paper-indentation} Indentation
1440
1441 \dt \I{\cw{\\cfg\{paper-list-indent\}}}\cw{\\cfg\{paper-list-indent\}\{}\e{points}\cw{\}}
1442
1443 \dd Specifies the indentation of the bullet or number in a
1444 \I{bulletted list, indentation}bulletted or \I{numbered list,
1445 indentation}numbered \I{list, indentation}list, similarly to
1446 \cw{\\cfg\{text-list-indent\}} (see \k{output-text-dimensions}).
1447
1448 \dt \I{\cw{\\cfg\{paper-listitem-indent\}}}\cw{\\cfg\{paper-listitem-indent\}\{}\e{points}\cw{\}}
1449
1450 \dd Specifies the \e{extra} indentation for the body of a list item,
1451 over and above the amount configured in \cw{\\cfg\{paper-list-indent\}}.
1452
1453 \# FIXME: doesn't actually work, AFAICT.
1454
1455 \dt \I{\cw{\\cfg\{paper-quote-indent\}}}\cw{\\cfg\{paper-quote-indent\}\{}\e{points}\cw{\}}
1456
1457 \dd Specifies the amount of indentation for a level of quoting. Used
1458 for \cw{\\quote} (see \k{input-quote}) and code quotes with \cw{\\c}
1459 (see \k{input-code}).
1460
1461 \S2{output-paper-headings} Headings
1462
1463 \dt \I{\cw{\\cfg\{paper-chapter-top-space\}}}\cw{\\cfg\{paper-chapter-top-space\}\{}\e{points}\cw{\}}
1464
1465 \dd Specifies the space between the top margin and the top of the
1466 chapter heading. (Each chapter begins on a new page.)
1467
1468 \dt \I{\cw{\\cfg\{paper-chapter-underline-thickness\}}}\cw{\\cfg\{paper-chapter-underline-thickness\}\{}\e{points}\cw{\}}
1469
1470 \dd Specifies the vertical thickness of the black rule under chapter
1471 headings.
1472
1473 \dt \I{\cw{\\cfg\{paper-chapter-underline-depth\}}}\cw{\\cfg\{paper-chapter-underline-depth\}\{}\e{points}\cw{\}}
1474
1475 \dd Specifies the distance between the base of the chapter heading and
1476 the \e{base} of the underlying rule.
1477
1478 \dt \I{\cw{\\cfg\{paper-sect-num-left-space\}}}\cw{\\cfg\{paper-sect-num-left-space\}\{}\e{points}\cw{\}}
1479
1480 \dd Specifies the distance between the left margin and the \e{right}
1481 of section numbers (which are in the left margin).
1482
1483 \S2{output-paper-index} Contents and index
1484
1485 \dt \I{\cw{\\cfg\{paper-contents-index-step\}}}\cw{\\cfg\{paper-contents-index-step\}\{}\e{points}\cw{\}}
1486
1487 \dt \I{\cw{\\cfg\{paper-contents-margin\}}}\cw{\\cfg\{paper-contents-margin\}\{}\e{points}\cw{\}}
1488
1489 \# FIXME: I do not know what dees one does. (I couldn't get either of
1490 them to do anything obvious, although the source indicates they should
1491 do something.)
1492
1493 \dt \I{\cw{\\cfg\{paper-leader-separation\}}}\cw{\\cfg\{paper-leader-separation\}\{}\e{points}\cw{\}}
1494
1495 \dd Specifies the horizontal spacing between dots in \i\e{leaders}
1496 (the dotted lines that appear between section headings and page
1497 numbers in the table of contents).
1498
1499 \dt \I{\cw{\\cfg\{paper-footer-distance\}}}\cw{\\cfg\{paper-footer-distance\}\{}\e{points}\cw{\}}
1500
1501 \dd Specifies the distance between the bottom margin and the \e{base}
1502 of the footer (which contains page numbers).
1503
1504 \dt \I{\cw{\\cfg\{paper-index-columns\}}}\cw{\\cfg\{paper-index-columns\}\{}\e{columns}\cw{\}}
1505
1506 \dd Specifies the number of columns the index should be divided into.
1507
1508 \# FIXME: with this set to 1, the right-alignment of some index entry
1509 page numbers in the Halibut manual is decidedly wonky.
1510
1511 \dt \I{\cw{\\cfg\{paper-index-gutter\}}}\cw{\\cfg\{paper-index-gutter\}\{}\e{points}\cw{\}}
1512
1513 \dd Specifies the amount of \I{gutter} horizontal space between index
1514 columns.
1515
1516 \dt \I{\cw{\\cfg\{paper-index-minsep\}}}\cw{\\cfg\{paper-index-minsep\}\{}\e{points}\cw{\}}
1517
1518 \dd Specifies the minimum allowable horizontal space between an index
1519 entry and its page number. If the gap is smaller, the page number is
1520 moved to the next line.
1521
1522 \S2{output-paper-fonts} \ii{Fonts}
1523
1524 The directives in this section control which fonts Halibut uses for
1525 various kinds of text. Directives for setting the font normally take
1526 three font names, the first of which is used for normal text, the
1527 second for emphasised text, and the third for code. Any fonts which
1528 aren't specified are left unchanged. Fonts are named using their
1529 PostScript names.
1530
1531 Halibut intrinsically knows about some fonts, and these fonts are also
1532 built into all PDF and most PostScript implementations. These are:
1533
1534 \b \cw{Times-Roman}
1535
1536 \b \cw{Times-Italic}
1537
1538 \b \cw{Times-Bold}
1539
1540 \b \cw{Times-BoldItalic}
1541
1542 \b \cw{Helvetica}
1543
1544 \b \cw{Helvetica-Oblique}
1545
1546 \b \cw{Helvetica-Bold}
1547
1548 \b \cw{Helvetica-BoldOblique}
1549
1550 \b \cw{Courier}
1551
1552 \b \cw{Courier-Oblique}
1553
1554 \b \cw{Courier-Bold}
1555
1556 \b \cw{Courier-BoldOblique}
1557
1558 These fonts can be used without further formality. To use any other font,
1559 Halibut needs at least to know its measurements, which are provided in an
1560 \i{Adobe Font Metrics} (\I{AFM files}AFM) file. Halibut can also
1561 \I{embedding fonts}embed
1562 \i{Type 1 fonts} in its PDF and PostScript output if provided with an
1563 ASCII-format (\I{PFA files}PFA) font file. To provide an AFM or PFA file
1564 to Halibut, simply name it on Halibut's command line. If both are named,
1565 the AFM file must come first.
1566
1567 \ii{Font sizes} are specified in PostScript \i{points} (72 to the inch).
1568
1569 \dt \I{\cw{\\cfg\{paper-title-fonts\}}}\cw{\\cfg\{paper-title-fonts\}\{}\e{normal-font}\cw{\}}[\cw{\{}\e{emph-font}\cw{\}}[\cw{\{}\e{code-font}\cw{\}}]]
1570
1571 \dd Specifies the fonts to use for text in the document title.
1572
1573 \dt \I{\cw{\\cfg\{paper-title-font-size\}}}\cw{\\cfg\{paper-title-font-size\}\{}\e{points}\cw{\}}
1574
1575 \dd Specifies the \i{font size} of the document title.
1576
1577 \dt \I{\cw{\\cfg\{paper-chapter-fonts\}}}\cw{\\cfg\{paper-chapter-fonts\}\{}\e{normal-font}\cw{\}}[\cw{\{}\e{emph-font}\cw{\}}[\cw{\{}\e{code-font}\cw{\}}]]
1578
1579 \dd Specifies the fonts to use for text in chapter titles.
1580
1581 \dt \I{\cw{\\cfg\{paper-chapter-font-size\}}}\cw{\\cfg\{paper-chapter-font-size\}\{}\e{points}\cw{\}}
1582
1583 \dd Specifies the \i{font size} of chapter titles.
1584
1585 \dt \I{\cw{\\cfg\{paper-section-fonts\}}}\cw{\\cfg\{paper-section-fonts\}\{}\e{level}\cw{\}\{}\e{normal-font}\cw{\}}[\cw{\{}\e{emph-font}\cw{\}}[\cw{\{}\e{code-font}\cw{\}}]]
1586
1587 \dd Specifies the fonts to use for text in section headings at the \e{level}
1588 specified.
1589
1590 \dt \I{\cw{\\cfg\{paper-section-font-size\}}}\cw{\\cfg\{paper-section-font-size\}\{}\e{level}\cw{\}\{}\e{points}\cw{\}}
1591
1592 \dd Specifies the \i{font size} of section headings at the \e{level}
1593 specified.
1594
1595 \dt \I{\cw{\\cfg\{paper-base-fonts\}}}\cw{\\cfg\{paper-base-fonts\}\{}\e{normal-font}\cw{\}}[\cw{\{}\e{emph-font}\cw{\}}[\cw{\{}\e{code-font}\cw{\}}]]
1596
1597 \dd Specifies the fonts to use for text in the body text.
1598
1599 \dt \I{\cw{\\cfg\{paper-base-font-size\}}}\cw{\\cfg\{paper-base-font-size\}\{}\e{points}\cw{\}}
1600
1601 \dd Specifies the \i{font size} of body text.
1602
1603 \dt \I{\cw{\\cfg\{paper-code-fonts\}}}\cw{\\cfg\{paper-code-fonts\}\{}\e{bold-font}\cw{\}}[\cw{\{}\e{italic-font}\cw{\}}[\cw{\{}\e{normal-font}\cw{\}}]]
1604
1605 \dd Specifies the fonts to use for text in code paragraps. The
1606 \e{bold-font} is used for bold text, the \e{italic-font} for
1607 emphasised text, and the \e{normal-font} for normal code.
1608
1609 \dt \I{\cw{\\cfg\{paper-code-font-size\}}}\cw{\\cfg\{paper-code-font-size\}\{}\e{points}\cw{\}}
1610
1611 \dd Specifies the \i{font size} of text in code paragraphs.
1612
1613 \dt \I{\cw{\\cfg\{paper-pagenum-font-size\}}}\cw{\\cfg\{paper-pagenum-font-size\}\{}\e{points}\cw{\}}
1614
1615 \dd Specifies the font size to use for \i{page numbers}.
1616
1617 \S2{output-paper-misc} Miscellaneous
1618
1619 \dt \I{\cw{\\cfg\{paper-rule-thickness\}}}\cw{\\cfg\{paper-rule-thickness\}\{}\e{points}\cw{\}}
1620
1621 \dd Specifies the vertical thickness of the rule produced by the
1622 \cw{\\rule} command (see \k{input-rule}). (Note that no extra space is
1623 reserved for thicker rules.)
1624
1625 \S{output-paper-characters} Configuring the characters used
1626
1627 \dt \I{\cw{\\cfg\{paper-bullet\}}}\cw{\\cfg\{paper-bullet\}\{}\e{text}\cw{\}}[\cw{\{}\e{text}\cw{\}}...]
1628
1629 \dd Specifies the text to use as the \i{bullet} in bulletted lists.
1630 You can specify multiple fallback options. Works exactly like the
1631 \cw{\\cfg\{text-bullet\}} directive (see
1632 \k{output-text-characters}).
1633
1634 \dt \I{\cw{\\cfg\{paper-quotes\}}}\cw{\\cfg\{paper-quotes\}\{}\e{open-quote}\cw{\}\{}\e{close-quote}\cw{\}}[\cw{\{}\e{open-quote}\cw{\}\{}\e{close-quote}...\cw{\}}]
1635
1636 \dd Specifies the quotation marks to use, overriding any
1637 \cw{\\cfg\{quotes\}} directive. You can specify multiple
1638 fallback options. Works exactly like the \cw{\\cfg\{text-quotes\}}
1639 directive (see \k{output-text-characters}).
1640
1641 \S{output-paper-defaults} Default settings for paper formats
1642
1643 The default page size corresponds to 210\_\u00D7{x}\_297\_mm, i.e.,
1644 \i{A4 paper}.
1645
1646 \c \cfg{paper-page-width}{595}
1647 \c \cfg{paper-page-height}{842}
1648 \c
1649 \c \cfg{paper-left-margin}{72}
1650 \c \cfg{paper-top-margin}{72}
1651 \c \cfg{paper-right-margin}{72}
1652 \c \cfg{paper-bottom-margin}{108}
1653 \c
1654 \c \cfg{paper-base-leading}{1}
1655 \c \cfg{paper-base-para-spacing}{10}
1656 \c
1657 \c \cfg{paper-list-indent}{6}
1658 \c \cfg{paper-listitem-indent}{18}
1659 \c \cfg{paper-quote-indent}{18}
1660 \c
1661 \c \cfg{paper-chapter-top-space}{72}
1662 \c \cfg{paper-chapter-underline-thickness}{3}
1663 \c \cfg{paper-chapter-underline-depth}{14}
1664 \c \cfg{paper-sect-num-left-space}{12}
1665 \c
1666 \c \cfg{paper-contents-index-step}{24}
1667 \c \cfg{paper-contents-margin}{84}
1668 \c \cfg{paper-leader-separation}{12}
1669 \c \cfg{paper-footer-distance}{32}
1670 \c \cfg{paper-index-columns}{2}
1671 \c \cfg{paper-index-gutter}{36}
1672 \c \cfg{paper-index-minsep}{18}
1673 \c
1674 \c \cfg{paper-base-fonts}{Times-Roman}{Times-Italic}{Courier}
1675 \c \cfg{paper-base-font-size}{12}
1676 \c \cfg{paper-code-fonts}{Courier-Bold}{Courier-Oblique}{Courier}
1677 \c \cfg{paper-code-font-size}{12}
1678 \c \cfg{paper-title-fonts}{Helvetica-Bold}
1679 \c {Helvetica-BoldOblique}{Courier-Bold}
1680 \c \cfg{paper-title-font-size}{24}
1681 \c \cfg{paper-chapter-fonts}{Helvetica-Bold}
1682 \c {Helvetica-BoldOblique}{Courier-Bold}
1683 \c \cfg{paper-chapter-font-size}{20}
1684 \c \cfg{paper-section-fonts}{0}{Helvetica-Bold}
1685 \c {Helvetica-BoldOblique}{Courier-Bold}
1686 \c \cfg{paper-section-font-size}{0}{16}
1687 \c \cfg{paper-section-fonts}{1}{Helvetica-Bold}
1688 \c {Helvetica-BoldOblique}{Courier-Bold}
1689 \c \cfg{paper-section-font-size}{1}{14}
1690 \c \cfg{paper-section-fonts}{2}{Helvetica-Bold}
1691 \c {Helvetica-BoldOblique}{Courier-Bold}
1692 \c \cfg{paper-section-font-size}{2}{13}
1693 \c ... and so on for all section levels below this ...
1694 \e iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
1695 \c
1696 \c \cfg{paper-pagenum-font-size}{12}
1697 \c
1698 \c \cfg{paper-rule-thickness}{1}
1699 \c
1700 \c \cfg{paper-bullet}{\u2022}{-}
1701 \c \cfg{paper-quotes}{\u2018}{\u2019}{'}{'}