bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can new @nodedescription command be used for @detailmenu?


From: Gavin Smith
Subject: Re: Can new @nodedescription command be used for @detailmenu?
Date: Fri, 4 Aug 2023 17:10:15 +0100

On Fri, Aug 04, 2023 at 01:16:27PM +0100, Gavin Smith wrote:
> On Fri, Aug 04, 2023 at 11:15:56AM +0100, Gavin Smith wrote:
> > > There is already code for that in Texinfo::Transformations, 
> > > new_master_menu
> > > creates a detailmenu, and regenerate_master_menu regenerate the Top node
> > > master menu, replacing the first detailmenu in Top node menus or
> > > appending at the end of the Top node menu.  This is used in the
> > > regenerate_master_menu tree transformation.
> > > 
> > > They could be moved to Common.pm and be used in
> > > Texinfo/Convert/Plaintext.pm and/or Texinfo/Convert/Info.pm.  They may
> > > also be changed not to directly modify the top node but returns a tree.
> > 
> > Thanks, I will give this a try.
> 
> I think I've done most of the work for this but I still have a bit
> of tidying-up to do.

That is me mostly done now.

The only thing I noticed was that in texinfo.texi, when generating the
top-level menu, that the "Appendices" comment would be lost before the
links to the appendices.  I don't know if it is worth adding special code
just to output this comment in the menu.

I also had to delete the joke after the menu as the automatically
generated menu will be the very last thing in the node.  Perhaps we
could hide a joke somewhere else in the file?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]