Previous | Contents | Index | Next
man pages
info
This chapter describes each of Halibut's current output formats. It gives some general information about the format, and also describes all the configuration directives which are specific to that format.
This output format generates the document as a single plain text file. No table of contents or index is generated.
The precise formatting of the text file can be controlled by a variety of configuration directives. They are listed in the following subsections.
\cfg{text-filename}{filename}
--text (see section 2.1).
This section describes the configuration directives which control the horizontal dimensions of the output text file: how much paragraphs are indented by and how long the lines are.
\cfg{text-width}{width}
\cfg{text-indent}; if you specify an indent of 8 and a width of 64, your maximum output line length will be 72.
\cfg{text-indent}{indent}
\cfg{text-indent-code}{indent}
\cfg{text-list-indent}{indent}
\cfg{text-listitem-indent}.
\cfg{text-listitem-indent}{indent}
\cfg{text-list-indent}.
\cfg{text-indent-preamble}{boolean}
true, the document preamble (i.e. any paragraphs appearing before the first chapter heading) will be indented to the level specified by \cfg{text-indent}. If this setting is false, the document preamble will not be indented at all from the left margin.
The directives in this section allow you to configure the appearance of the title, chapter and section headings in your text file.
Several of the directives listed below specify the alignment of a heading. These alignment options have three possible values:
left
leftplus
\cfg{text-indent}). The section number is placed to the left of that (so that it goes in the margin if there is room).
centre
Also, several of the directives below specify how a title should be underlined. The parameter to one of these directives should be either blank ({}) or a piece of text which will be repeated to produce the underline. So you might want to specify, for example, \text-title-underline{=} but \text-chapter-underline{-}.
You can also specify more than one underline setting, and Halibut will choose the first one that the output character set supports. So, for example, you could write \text-chapter-underline{\u203e}{-}, and Halibut would use the Unicode ‘OVERLINE’ character where possible and fall back to the ASCII minus sign otherwise.
\cfg{text-title-align}{alignment}
left, leftplus or centre.
\cfg{text-title-underline}{underline-text}
\cfg{text-chapter-align}{alignment}
\cfg{text-chapter-underline}{underline-text}
\cfg{text-chapter-numeric}{boolean}
true, then chapter headings will not contain the word ‘Chapter’ (or whatever other word you have defined in its place - see section 3.3.5 and section 3.6); they will just contain the chapter number, followed by the chapter title. If you set this to false, chapter headings will be prefixed by ‘Chapter’ or equivalent.
\cfg{text-chapter-suffix}{text}
: ’, then the chapter title might look something like ‘Chapter 2: Doing Things’.
\cfg{text-section-align}{level}{alignment}
\H), 1 means second-level headings (\S), 2 means the level below that (\S2), and so on. The alignment parameter is treated just like the other alignment directives listed above.
\cfg{text-section-underline}{level}{underline-text}
\cfg{text-section-numeric}{level}{boolean}
false), or should be numeric only (if true).
\cfg{text-section-suffix}{level}{text}
\cfg{text-charset}{character set name}
The character set names are the same as for \cfg{input-charset} (see section 3.6). However, unlike \cfg{input-charset}, this directive affects the entire output; it's not possible to switch encodings halfway through.
\cfg{text-bullet}{text}[{text...}]
\cfg{text-bullet}{-}), or more than one (\cfg{text-bullet}{(*)}).
Like \cfg{quotes} (see section 3.6), you can is tells word[:word...]
\cfg{word}{word}{word...}.
--input-charset=charset
--list-charsets
--precise
--help
--version
--licence
For more information on Halibut, including full details of the input file format, look in the full manual. If this is not installed locally on your system, you can also find it at the Halibut web site:
http://www.chiark.greenend.org.uk/~sgtatham/halibut/
This man page isn't terribly complete.