On 06/12/2025 11:53, Gavin Smith wrote:
On Thu, Nov 27, 2025 at 03:38:37PM +0100, Rik wrote:
The preference among the Octave developers I polled was for the
existing/historical style of presenting link text and link page numbers.
But, "Beauty is in the eye of the beholder" and I have no doubt that someone
finds the other style more attractive.
Would it be possible to support both formats using a Customization Variable
(CV)? My macro skills aren't up to the full challenge of creating a new CV,
but I did create a proof-of-concept patch for texinfo.tex where I re-used
the existing CV @allowcodebreaks to switch between creating hyperlinks for
text+page numbers and hyperlinks for just page numbers. See attached files.
Obviously, a real variable with a better name would be needed. I had the
idea of @linkindextext and it could default to true so users really wanting
this feature would get it without further configuration.
I've made this the default. You can get the links back with
"@set txilinkindextext". (This follows the pattern of other internal and/or
undocumented options that apply to texinfo.tex only.)
Looking back at old mail, it seems that users weren't actually asking for
the index text to be made a hyperlink. (I made the change in February 2025.)
Another argument not to make the link by default is that the link goes
to the top of the page, rather than the exact location on the page where
the index entry was made.
Beautiful! The default works for me, but I also tested "@set
txilinkindextext" and it works as advertised.
Thank you,
Rik