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.
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. 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