Relating multiple index entries to one table item

Arsen Arsenović <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>
Hi there,

In the GCC documentation, a construct that often appears is

  @table @gcctabopt
  @item -Wpedantic
  @itemx -pedantic
  @opindex pedantic
  @opindex Wpedantic
  @opindex Wno-pedantic

The problem with this, though, is that all but the first of these index
calls end up in the item body rather than the item itself, meaning that
all but the first index will scroll HTML pages below the actual items.
This result is not very pleasant to see, since it strips away essential
context from the reader.  I tried working around this by interlacing
@opindex calls between /@itemx?/ calls, but that didn't really help.

Looking at the HTML output, it might be possible to make all index
commands "directly following" an item command emit <a id=".."> elements
in the <dt> instead of just an id="..." on the dt itself.  This moves
the page visually down by a pixel or so (for some reason), but otherwise
should produce desirable results.

I've hacked at the code a bit to try to achieve this, but I haven't been
able to do it so far, so I decided to reach out to ask whether someone
already tried or there's some proper method of doing this that I'm
missing.

Thanks in advance, and have a most wonderful evening!
-- 
Arsen Arsenović
signature.asc (application/pgp-signature, 381 B)
-----BEGIN PGP SIGNATURE-----

iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY3p/d18UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy
c2VuLm1lAAoJEFLClDAeosST7W8A/RLPRIF8wQgnC9+ZgnZ8u7Spok7i1oo7RFqZ
QUM4bY2rAP9y6ON0Psj4seGjQe3ImlNJm1fYtTIYIYRycsYH6XyTCw==
=Zh5p
-----END PGP SIGNATURE-----
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.