help-texinfo
[Top][All Lists]
Advanced

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

Re: @anchor around @item


From: Eli Zaretskii
Subject: Re: @anchor around @item
Date: Fri, 13 Aug 2021 19:07:40 +0300

> From: Gavin Smith <gavinsmith0123@gmail.com>
> Date: Fri, 13 Aug 2021 16:54:55 +0100
> Cc: "help-texinfo@gnu.org" <help-texinfo@gnu.org>
> 
> > 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.



reply via email to

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