On Tue, Nov 10, 2026 at 08:37:21PM +0000, Gavin Smith wrote:
> ------------------------------------------------------------
> \input texinfo @c -*-texinfo-*-
> 
> @node Top, Location, (dir), (dir)
> @top Mtools doc
> 
> This is mtools' documentation.
> 
> @unnumbered Introduction
> Mtools is a collection of tools to allow Unix systems to manipulate
> MS-DOS files: read, write, and move around files on an MS-DOS
> file system (typically a floppy disk).  Where reasonable, each program
> attempts to emulate the MS-DOS equivalent command. However,
> unnecessary restrictions and oddities of DOS are not emulated. For
> instance, it is possible to move subdirectories from one subdirectory
> to another.
> 
> @menu
> * Location::          Where to find mtools and early bug fixes
> @end menu
> 
> 
> @node Location,, Top, Top
> @chapter Where to get mtools
> 
> @bye
> ------------------------------------------------------------
> 
> In the current git development version, it is worse: the @unnumbered
> gets its own node, and the Top node is very short, with no menu:
> 
> ------------------------------------------------------------
> File: mtools-fail.info,  Node: Top,  Next: Location,  Prev: (dir),  Up: (dir)
> 
> Mtools doc
> **********
> 
> This is mtools' documentation.
> ------------------------------------------------------------
> 
> You can see the text under Introduction is missing from the Top
> node, with no (obvious) way to get to it.
> 
> There is also a warning from texi2any:
> mtools-fail.texi:8: warning: node `Introduction' unreferenced
> 
> Running "texi2any -c AUTO_SECTION_NODE=0 mtools-fail.texi" produces
> a good result: there is a heading for "Introduction" in the Top node,
> and there is an anchor for "Introduction" in the file tags table.
> 
> I have not thought of a good solution to this, other than setting
> AUTO_SECTION_NODE=0 by default for Info.  Another acceptable solution
> could be to automatically output a menu in such a situation, like:
> 
> * Menu:
> 
> * Introduction::
> 
> At least then a reader of the manual could navigate to the Introduction
> node.

I do not think that this would be a good solution.  To me the intent here
is to have @unnumbered and associated text be part of the Top node in
Info (and HTML).  It corresponds to the "Node Command Regions" new node
situation in the manual.  To me this can only be correctly rendered with
AUTO_SECTION_NODE=0.

There will be manuals in the wild that need AUTO_SECTION_NODE=0 to be
rendered as intended, as the authors used a sectioning command without
node such that it appears in one node only, which goes against the
output obtained with AUTO_SECTION_NODE=1.

Either we prefer keeping backward compatibility for such manuals, or we
prefer allowing users to avoid putting nodes that have the same names as
sectioning commands, but we can't have both.

-- 
Pat

Reply via email to