manpagez: man pages & more
info texinfo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.2 makeinfo Pointer Creation

The makeinfo program can automatically determine node pointers for a hierarchically organized document. This implicit node pointer creation feature in makeinfo relieves you from the need to update menus and pointers manually or with Texinfo mode commands. (See section Updating Nodes and Menus.) We highly recommend taking advantage of this.

To do so, write your @node lines with just the name of the node:

@node My Node

You do not need to write out the ‘Next’, ‘Previous’, and ‘Up’ pointers.

Then, you must write a sectioning command, such as @chapter or @section, on the line immediately following each truncated @node line (except that comment lines may intervene). This is where it normally goes.

Also, you must write the name of each node (except for the ‘Top’ node) in a menu that is one or more hierarchical levels above the node’s level.

Finally, you must follow the ‘Top’ @node line with a line beginning with @top to mark the top-level node in the file. See section The @top Sectioning Command.

If you use a detailed menu in your master menu (see section Parts of a Master Menu), mark it with the @detailmenu … @end detailmenu environment, or makeinfo will get confused, typically about the last and/or first node in the document.

In most cases, you will want to take advantage of this feature and not redundantly specify node pointers that the programs can determine. However, Texinfo documents are not required to be organized hierarchically or in fact to contain sectioning commands at all (for example, if you never intend the document to be printed), so node pointers may still be specified explicitly, in full generality.

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on October 2, 2013 using texi2html 5.0.

© 2000-2021
Individual documents may contain additional copyright information.