automatic generation of @menu entries

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <YT1x4DuiAEuBb3wu@vapier>
i couldn't easily find an answer in the archives or manual, so feel free to
point me to docs or discussions that i missed.  surely this can't be a new
idea that i managed to come up with myself.  or there's a good reason that
i can't see as to why this is a bad idea.

having to manually maintain @menu entries in each @node is pretty tedious,
especially when @contents & @node are pretty well automated.  i grok that
there will probably be cases where people want to manually curate a menu,
but why can't we have an automatic default available ?

consider the example from the texinfo manual [1].
                         Top
                          |
        -------------------------------------
       |                  |                  |
    Chapter 1          Chapter 2          Chapter 3
       |                  |                  |
    --------           --------           --------
   |        |         |        |         |        |
Section  Section   Section  Section   Section  Section
  1.1      1.2       2.1      2.2       3.1      3.2

in the @top node, there will be:
@menu
* Chapter 1::  First desc.
* Chapter 2::  Second desc.
* Chapter 3::  Third desc.
@end menu

in the Chapter 1 @node, there will be:
@menu
* Sect. 1.1::    Description of this section.
* Sect. 1.2::    Description.
@end menu

and so forth for Chapter 2, etc...

what if @menu was extended (or a new @automenu command or something) such that
people only had to write @automenu and that's it ?  the description would have
to live somewhere, but wouldn't @unnumberedsec/@heading suffice ?  or create a
new command for this too like @menudesc.
-mike

[1] https://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#Node-Menu-Illustration
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmE9ceAACgkQQWM7n+g3
9YGajRAAoDG5XsQX9hPh+gy28DNZF0+EBjPLeY3vseL1CAXy98dNCJQy/sxRFUlB
nHBI5MIJ0Q3uu4g24vuQyKF+p64gXabQ8mScm0qcD0kUU+gzmT/V6kpFV7z8Hqr1
kHOB42TIvAYsPKZIpIZ6uod/6CZ2sukj15kK21mKZSvOJlUReWRgZhXKBlsc8sZz
u8801vDtzWbp7uPVDCZ9+QvicwtZ54BW9LkSNPXtEnw3Vt72/He0fr2sDQoDswI0
1lADMvX4oO6flhq7LeJqp0F6LDhpJY5VHvxkZu7j0Qjds/vpzIAjQYtZkhdUpetx
6vvhdRwMNTwnBRQYRzYmILWJLJHLllGAWWf0L7xA4x/K06raOhrzGDmr53ofUrjv
umP4ZHMWcJW4OC+II+ygheq+QEQW9h/6TzMlqf23d7SU0CU2JeQ3TS4Rsqh0PrnJ
/iWDl+FK86M74YpetzvNIK0ZdFu5XuKfDPmFcmBTWYamUg6SJD8UcNxO5l6hzn/F
sKRgTReUR2h+bglQLYX/u0B9cgOhlUsHfO7s7rrpWgBQSNASNOVqhq4++VrxMqZV
E8rh7RE331UdPQn6tKyttnLH4fbsBXrcESUl5UEABHsVdXykkrN29LyxHcELebxL
9xgIg3B1QqnCB9FRA9PEt9mCoBPFrdhKiLUL5TEiRjTVrHuyVLk=
=5ex4
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.