Re: @anchor around @item

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>
> From: Gavin Smith <[email protected]>
> Date: Fri, 13 Aug 2021 16:54:55 +0100
> Cc: "[email protected]" <[email protected]>
> 
> > 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.

It should be BEFORE the @item if you want the link to land you on the
@item line.  if you put it AFTER the @item, you will land on the text
after the @item line.  That matters when @item is in a @table, because
then the @item line typically has some text after the keyword.  In an
@itemize list it might not matter.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.