Re: Relating multiple index entries to one table item

Gavin Smith <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <Y4J0o5KFBep+anvQ@starmint>
On Sat, Nov 26, 2022 at 03:59:00PM +0000, Gavin Smith wrote:
> I still haven't put index entries before the very first
> @item in a @table inside the <dt> - I need to do something with the
> 'before_item' element.

It should be done now.  I tried never adding a 'before_item' element
in the first place, but this appeared to have repercussions throughout
the code leading to failures in several places that I couldn't understand,
so I fixed it in a more limited way.

Currently, the input:

    @table @code
    @vindex ONE
    @vindex TWO
    @item in item
    @itemx in itemx
    aaaaa
    
    @vindex TTHREE
    @item item2
    aaaaa
    @end table

gives the HTML output:

    <dl class="table">
    <dt><a class="index-entry-id" id="index-ONE"></a>
    <a class="index-entry-id" id="index-TWO"></a>
    <code class="code">in item</code></dt>
    <dt><code class="code">in itemx</code></dt>
    <dd><p>aaaaa
    </p>
    </dd>
    <dt><a class="index-entry-id" id="index-TTHREE"></a>
    <code class="code">item2</code></dt>
    <dd><p>aaaaa
    </p></dd>
    </dl>

which I think is good.
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.