Node:Pointer Validation, Next:makeinfo in Emacs, Previous:makeinfo options, Up:Creating an Info File
If you do not suppress pointer validation with the --no-validate
option or the @novalidate
command in the source file (see Use TeX), makeinfo
will check the validity of the final
Info file. Mostly, this means ensuring that nodes you have referenced
really exist. Here is a complete list of what is checked:
(dir)
, then the referenced node must exist.
Some Texinfo documents might fail during the validation phase because
they use commands like @value
and @definfoenclose
in
node definitions and cross-references inconsistently. Consider the
following example:
@set nodename Node 1 @node @value{nodename}, Node 2, Top, Top This is node 1. @node Node 2, , Node 1, Top This is node 2.
Here, the node "Node 1" was referenced both verbatim and through
@value
.
By default, makeinfo
fails such cases, because node names are not
fully expanded until they are written to the output file. You should
always try to reference nodes consistently; e.g., in the above example,
the second @node
line should have also used @value
.
However, if, for some reason, you must reference node names
inconsistently, and makeinfo
fails to validate the file, you can
use the --commands-in-node-names
option to force makeinfo
to perform the expensive expansion of all node names it finds in the
document. This might considerably slow down the program, though;
twofold increase in conversion time was measured for large documents
such as the Jargon file.
The support for @
-commands in @node
directives is not
general enough to be freely used. For example, if the example above
redefined nodename
somewhere in the document, makeinfo
will fail to convert it, even if invoked with the
--commands-in-node-names
option.
--commands-in-node-names
has no effect if the --no-validate
option is given.