I am using
makeid on documentclass
book. The resulting index is fine, but page breaks occur between a main entry and subentries. A subentry may occur as an orphan at the top of page/column, and a main entry may occur without any subentry at the bottom of a page. How do you retain the main entry at the top of a page (or column)?
The second question is how to get the first and last indexentry in the page into the header, on left and right side?