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