Previous | Contents | Index | Next
Chapter 4: Halibut output formats
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.
4.1 Plain text
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.
4.1.1 Output file name
-
\cfg{text-filename}{filename}
-
Sets the output file name in which to store the text file. This directive is implicitly generated if you provide a file name parameter after the command-line option
--text (see section 2.1).
4.1.2 Indentation and line width
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}
-
Sets the width of the main part of the document, in characters. This width will be used for wrapping paragraphs and for centring titles (if you have asked for titles to be centred - see section 4.1.3). This width does not include the left indentation set by
\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}
-
Sets the left indentation for the document. If you set this to zero, your document will look like an ordinary text file as someone with a text editor might have written it; if you set it above zero, the text file will have a margin down the left in the style of some printed manuals, and you can then configure the section numbers to appear in this margin (see section 4.1.3).
-
\cfg{text-indent-code}{indent}
-
Specifies how many extra characters of indentation (on top of the normal left indent) should be given to code paragraphs.
-
\cfg{text-list-indent}{indent}
-
Specifies how many extra spaces should be used to indent the bullet or number in a bulletted or numbered list. The actual body of the list item will be indented by this much plus the value>