On Sun, Feb 16, 2025 at 03:36:07PM +0000, Gavin Smith wrote: > > Actually, I was proposing the opposite, so I was probably unclear. > > > > For @node, the association is with the next sectioning command, even if > > there are @*heading commands in-between. This is also quite > > theoretical, as the node should be right before a sectioning command, > > but still it is the rule. > > > > I was proposing that for @anchorname, the rule would be different, ie, > > it would be associated to the following sectioning or heading command, > > not to the next sectioning command without node nor anchorname. > > We should change @node to be associated with the heading command so that > it works the same way.
Ok, and I agree. It could actually be possible in texi2any to have an association to both the next heading and the next sectioning command which would be after the heading with different 'extra' keys, but for most if not all proposes, the association of @node should better be with the next heading. What should we do for @*heading not at the top level, like @node node @quotation @heading in quitation Quote @end quotation @heading at top-level -- Pat
