6.5 Preparing the output
After the texinfo file has been parsed, some information is available
which can be used to modify some variables and prepare the outputting.
For example the document language, the document encoding,
values set with @set or @setfilename and other similar
@-commands are not known before the texinfo parsing.
The following function reference may be redefined to be called after
texinfo processing and before document generation:
- Function Reference: init_out
This function perform the initialization of variables and any other
task before document outputting.
In the default case the
$BODYTEXT (see section Customizing the page header)
and the hashes
%NAVIGATION_TEXT,
%BUTTONS_NAME (see section Specifying the buttons formatting),
%BUTTONS_GOTO (see section Formatting of about text) are initialized.
Indeed the initialization of these variables is dependent upon
the document language selection. Similarly the encoding variables are set
based on the information now available (see section Setting the encodings).
To perform the default initializations and also add more code, you could
do as in the following example (save the default function reference and call
it in your own function) :
| | my $default_init_out = $init_out;
$init_out = \&makeinfo_like_init_out;
sub makeinfo_like_init_out()
{
&$default_init_out();
$NAVIGATION_TEXT{'Following'} = ' > ';
}
|
Doku-Base
This document was created by Netzdino using texi2html.
|