# [tex4ht] tex4ht: how to make the index refer to links instead of page numbers

Fri Oct 1 19:08:22 CEST 2010

dear radhakrishnan

thanks but could u pls explain what you mean by
tex '\def\filename{{scr}{idx}{4dx}{ind}} \input idxmake.4ht'
makeindex -o scr.ind scr.4dx

im not a techie or a linux or latex expert so could u pls explain in detail?

are these commands i put in the tex file or rum as linux commands?
what are the steps? pls could u explain step by step what i'
d have to do?

On Sun, Sep 26, 2010 at 9:16 AM, Radhakrishnan CV <cvr at river-valley.org>wrote:

> On 26-Sep-2010, at 9:09 PM, Irshad Alam wrote:
>
> > Is there a way so that my index refer to
>
> Very much possible, but you need to process the index file in a different
> way.
>
> > im enclosing a sample file
>
> Run 'htlatex scr' which will give you scr.idx among other files.
>
> Given below are the commands to process the index file:
>
>  tex '\def\filename{{scr}{idx}{4dx}{ind}} \input idxmake.4ht'
>  makeindex -o scr.ind scr.4dx
>
> Run 'htlatex scr' again, now you will get scr.html with hyperlinked index.
>  The scr.{html,idx,ind} are attached to this mail for your information.
>
> Best
> --