I've put a sample setup with the same basic problem in this Google Drive folder:
https://drive.google.com/open?id=131oXr_4-VTni1VKwkjUXuiu9AdORvu7E "1 Story" shows up correctly under the index "1", while "2 Story 2" shows up under the section header "2.1" because there is no preceding subsection header. Ideally, I want to have it show up under "2" without adding a new subsection header. Best regards, - Jürgen > Gesendet: Dienstag, 17. Dezember 2019 um 13:06 Uhr > Von: "Michal Hoftich" <michal....@gmail.com> > An: "Jürgen Hubert" <jhub...@gmx.de> > Cc: tex4ht <tex4ht@tug.org> > Betreff: Re: [tex4ht] imakeidx index question > > Hi Jürgen, > > > then the index entry within <Story> links back to "2.2" instead of "34". > > Can anyone think of a workaround for this? I would really like keep a > > separate number for the individual stories, and use these as the base for > > index entries - but for many sections it just doesn't make sense to have > > subsections in the manuscript. > > I think we will need a full document to test that. > > Best regards, > Michal >