[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: References with identical node and online label names

From: Gavin Smith
Subject: Re: References with identical node and online label names
Date: Sun, 25 Apr 2021 12:20:07 +0100
User-agent: Mutt/1.9.4 (2018-02-28)

On Wed, Apr 14, 2021 at 10:34:54AM +0200, Didier Verna wrote:
>   Hello,
> I would like to have reference commands to issue a short form (with just
> the node name) for info, and a more elaborate one for other formats.
> Duplicating the node name, as in @ref{node name, node name, printed-label}
> does not notice the duplication, so it just prints it twice:
> * note node name: node name.
> So I suppose I have no choice but to conditionalize on the output
> format and issue two different @ref calls. But wouldn't it make sense to
> notice when the node name is identical to the online label, and just
> fall back to the one-argument form output: * note node name::. ?
> Thanks!

Arguably if somebody gave a different label to the node name they did
this for a reason and it makes sense to reflect this in the output.  Doing
it the way you said would be reasonable as well, but it is not worth the
effort to implement, in my opinion.

I don't really understand what it is you are doing but it seems that
using format-specific macros would work for your case.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]