Re: automatic generation of @menu entries
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.tex.texinfo.general |
|---|---|
| Message-ID | <YT5Qam+x7Dtzad0K@vapier> |
On 12 Sep 2021 11:44, Eli Zaretskii wrote: > > Date: Sun, 12 Sep 2021 03:38:24 -0400 > > From: Mike Frysinger <[email protected]> > > Cc: [email protected] > > > > > Not the answer you expected, but Emacs has a command that creates the > > > menus for you. > > > > i saw mention of that shortcut in the manual, but as you can imagine, that's > > not terribly interesting to me. i don't use emacs, and i'm not expecting > > everyone else who helps maintain texinfo sources to use emacs. > > > > but if there's an emacs shortcut to autogenerate/update, it implies that > > making an actual texinfo command to do it isn't unreasonable ? > > It's just something that needs to be (re)implemented in a different > PL. Also, it needs to be generated before the nodes are validated, > since the menu is used for that, and it needs to be fast enough. based on the manual description, it sounds like the tree structure is accessible already since that's how the @contents are generated, and it's able to output that just fine. so i (naively) assume that adding an automatic menu would be comparable. > It would also mean the produced menu items will lack the short > descriptions, which are produced by a human typing them in Texinfo. right, that's why i suggested a new @menudesc to retain that part (if the existing @unnumberedsec and such are insufficient). -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmE+UGoACgkQQWM7n+g3 9YGckA/+JRstGF9ukosY9Wj86PXfP78j0oIpYM2S8EzNWOSOIrqwUgBBplC4APrU RdMdkYouqzTznsvAQTPW3pnL6rZ9x05aHCs7LTQ/shCWS5gGiVr7Q4Z1EBt/lEfo 8UrxeSz+EBh8KZ438TIeE7fVAp1w4D81xfoz5P0WQLB2bHvpYppTjqa3nvTYR8tA BrSTCOsEusXncVRt2I/fwmTnjWXTv05abizHXN34X+9oc8ZnPNiOLfyr662zAal0 kxaY8eULiHah1KgbQkdoCSFfgzOWbHFxlRFNLeH7FBGmDbv8iIdiaX8j2p2KKVXc QR6jHRe5HfFszh4+w2R1LyGR2rnyAZt0E+26lZSYWB8VQM0XFzUu35RAk5ymFvTD b4WWJ6T/xefn3AzKhyChBiaPnK0a2kmgAf4LoriEVDmLDZ87jzQxs8L3qAYEq1Fl 3DjBJcjeQQnRD/mCbkHlVTXtgmDTVx6JwqPf1oj4r2PYrPI1S5a1dj5Ufg2uoR4r LLuAxrcPge/3ty3M5otV8GJDodW7NPuihnUxsskuvQamdqtq2Qfe3GLM6ho4oHCY vssO3QavlxTpJE4L8Q2fmbHPFB+ZkMNqOErZcNwzPR3X9EAoN5oXbIdosaYJ6UqQ +xd3hLeqMHiZSFddNrWPIza9uF6sjKQLXyniWGR27gQ2wPY8vBo= =4HAR -----END PGP SIGNATURE-----