On Mon, Oct 26, 2026 at 06:29:30PM +0100, [email protected] wrote:
> On Wed, Sep 30, 2026 at 08:37:30PM +0100, Gavin Smith wrote:
> > This is not actually what texi2any does though: @xref{(Two)} outputs
> > "*Note (Two)::", without DEL quotes, which is a reference to the "Two"
> > manual.
>
> I now remember why I did it that way. It is because in Info, the
> output of this was "*Note (Two)::", which means that Info readers
> considered that it is a link to an external manual. Therefore, I assumed
> that in Texinfo code it means the same, ie that @xref{(Two)} is a link
> to an external manual.
That's because there wasn't any way to unambiguously give a cross-reference
to a node starting with an open bracket followed by a close bracket, as
Info readers would interpret it as a link to an external manual.
> I just tested that in Texinfo TeX, however, and TeX interprets (Two) as
> an internal node name and gives a warning:
>
> pdfTeX warning (dest): name{\(two\)} has been referenced but does not exist,
> re
> placed by a fixed one
>
> and page <undefined> appears in the PDF output, as for any internal node
> not found.
>
>
> We therefore have an inconsistency that would be good to solve.
>
> Considering that @xref{(Two)} is a link to an external manual is
> somewhat consistent with the syntax for references to external nodes on
> @node line and in menus, but there is an explicit filename argument for
> @xref, so this is not really important.
I think it is simpler to make it an internal reference to a node called
"(Two)". As you say, there is another argument for a filename for @xref
which should be used instead for a reference to an external manual. I
think it only references an external manual by accident and because of the
limitations of the Info format. Calling a node something like "(Two)" is
still a bad idea, unless parentheses are an important part of the topic
being documented or something.
> And since TeX ignores @node
> line directions and menus, it is not possible to derive any intuition
> based on consistency for this notation in TeX.
>
>
> I do not have any opinion on that issue. As I said in another mail,
> such construct does not happen in actual manuals I have in the
> mass_test, and even though it is not all the existing manuals, it means
> that the risk of breaking a manual is pretty low, so we can freely
> decide whatever we prefer.
>
> --
> Pat