On Sat, Feb 20, 2021 at 05:18:18PM +0100, Patrice Dumas wrote: > This is not easy to determine which warning to output since the node is > automatically added during output. I think that we have two > possibilities, > * pass to Structuring.pm the information that nodes will be generated > automatically and add a special case for nodes in generated menus. > * modify the tree before or in Texinfo::Structuring::nodes_tree().
If it is a regular sectioning tree then all the nodes will be referenced in the default case. The warnings that are output are a regression from texi2any 6.7 which managed files like these with no problem. Maybe CHECK_NORMAL_MENU_STRUCTURE would do most of the job? A node could also be referenced through a cross-reference and I don't think the existing code checks for this. I know we discussed this a few months ago and I worry we are going over the same ground again. I don't like the idea of transforming the entire tree to add menus by default as this would be unnecessary processing. > > For HTML output, they are referenced in the > > sectional tables of contents. I didn't check with other values of > > FORMAT_MENU. I will have to check what the default value of > > FORMAT_MENU is and what errors are output for each setting. > > I checked that with FORMAT_MENU set to menu or nomenu in HTML, the > node will actually be unreferenced. I am not sure what to do with > nomenu, if FORMAT_MENU=mini_toc, it would make sense to consider that > all the nodes associated with sectioning commands are referenced.
