On Mon, Feb 17, 2025 at 07:37:23PM +0100, pertu...@free.fr wrote: > One possibility, which is not very acceptable either would be to allow > an empty @anchorname to remove the link between a @node and @heading, > for example > > @node my node > > @quotation > a quotation > @end quotation > > @anchorname > @heading heading > > but it is not very appealing either for many reasons.
Here is an alternative: @node my node @xrefname{my node}@c @quotation a quotation @end quotation @heading heading The @xrefname would set the label text for linking to the last node or anchor. Here it would take priority over "@heading" as it occurs earlier, and takes the place of a section command, but does not produce a heading or anything else. With xrefautomaticsectiontitle on, (or similar setting that we introduce), this command would often not be needed. The user could also specify "@xrefautomaticsectiontitle on" and "@xrefautomaticsectiontitle off" throughout the manual to get the desired effect. For links to anchors, the @xrefname would follow the @anchor: @anchor{Butterfly}@xrefname{Papilon}. This mirrors the order of @node and @section, with @section providing the cross-reference text: @node node @section section Now I just need to fiddle with texinfo.tex to see if this is possible. (I think what I said before about it not being possible with @anchor was wrong).