help-texinfo
[Top][All Lists]
Advanced

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

Re: @anchor around @item


From: Gavin Smith
Subject: Re: @anchor around @item
Date: Fri, 13 Aug 2021 16:54:55 +0100
User-agent: Mutt/1.9.4 (2018-02-28)

On Fri, Aug 13, 2021 at 08:25:36AM +0000, Vincent Belaïche wrote:
> Just wondering where the best place is for an @anchor in a table or any other
> kind of enumeration (@itemize and suchlikes) where we want a reference to a
> specific @item.
> 
> Would that be before or after the corresponding @item command.
> 
> Node (info "(texinfo) @anchor") does not tell anything about thart AFAIK.
> 
> In the example below, should I place a0 or a1 to get a reference to item
> ``First one''.
> 
> @itemize
> @anchor{a0}
> @item
> @anchor{a1}
> First one
> @end itmize
> 
> PS : Please keep me in the Cc: or To: as I am not subscribed to this list.

Good question.  I haven't checked the output or what texi2any does with
this kind of input internally, but my first thought is that the @anchor
should come AFTER the @item.  The reason for this is that if there is
a previous @item, so:

@itemize
@item
First

@anchor{a0}
@item
Second
@end itemize

- from a parsing point of view the @anchor would very likely be considered
as part of the first @item, not the second.



reply via email to

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