help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] Using @ref with two arguments


From: Patrice Dumas
Subject: Re: [help-texinfo] Using @ref with two arguments
Date: Mon, 22 Jul 2019 16:49:50 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

On Sat, Jul 20, 2019 at 05:06:26AM +0200, Christopher Dimech wrote:
> 
> 
> I am getting quite confused on why would need @ref with two arguments.
> 
> Could not find an example when using two arguments is useful when using
> texi2pdf.

It is not surprising, the second argument is only used in other formats
than TeX/pdf.  And in general I would suggest not using an @*ref command
with a non empty second argument.

> Then
> 
> @ref{ccby--oth--rights}
> This prints Section 1.1.2 [ccby--oth--rights]
> 
> @ref{ccby--scope, ccby--oth--rights}
> This prints Section 1.1 [ccby--scope]
> 
> Is there a way to print the following
>   Section 1.1.2 [d]
> but the reference gets you at the anchor point rather
> than to Section 1.1.2?

I am not knowledgeable at all in pdf output, but my feeling would be
that the cross references pointed to the anchor location in any case,
irrespective of the number of argument of the @*ref command linking
internally.

> 
> I am using texi2pdf.
> 
> ------------------------------------------------
> 
> The sectioning is as follows
> 
> @node free-lic
> @chapter Free License
> 
> @node ccby--scope
> @section Scope
> 
> @node ccby--lic--grant
> @subsection License Grant
> 
> @node ccby--oth--rights
> @subsection Other Rights
> 
> @enumerate a
> @item Text
> @item Text
> @item Text
> 
> @anchor{ccby--pattm--rights}
> @item Text
> @end enumerate
> 



reply via email to

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