Re: Relating multiple index entries to one table item

Patrice Dumas <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>
On Fri, Nov 25, 2022 at 10:12:21PM +0000, Gavin Smith wrote:
> There may be a related issue with associating index entries with other
> constructs.  For example, a paragraph:
> 
>     @cindex paragraph 1
>     This is a paragraph.
> 
> outputing in HTML as
> 
>     <a class="index-entry-id" id="index-paragraph-1"></a>
>     <p>This is a paragraph.
>     </p>
> 
> Arguably, the following may be better:
> 
>     <p id="index-paragraph-1">This is a paragraph.
>     </p>
> 
> However, this may be more difficult to achieve than just focusing on
> the @table case.

Actually, I see that the issue is that the index entry is not in the
paragraph, so I think that the best may be

 <p><a class="index-entry-id" id="index-paragraph-1"></a>
 This is a paragraph.
 </p>

-- 
Pat
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.