Menu

#132 Preserve hot page numbers with pdf2index

open
nobody
XSL (399)
5
2004-11-12
2003-02-19
No

Page numbers in an index generated with autoidx.xsl are
hot. If you use make.index.markup + pdf2index to
remove duplicate page numbers and create page ranges,
however, the hot links back to the page from the index
are lost. It'd be nice to preserver these. Page ranges
could be handled in two ways: either the whole range
links to the first page in the range or each page number
links to that page number. Either is fine.

Discussion

  • David Cramer

    David Cramer - 2003-02-19

    Logged In: YES
    user_id=281721

    Part of this turned out to be easy (see attached patch of rev.
    1.21 of autoidx.xsl). The only limitation is that when you add
    the munged index back into the doc and reprocess it, you get
    a semi-spurious "id not found" message from the xsls for each
    index term. The ids aren't there, but they will be there in the
    fo, so if you go ahead and render the fo, you get the hot index
    page numbers you know and love. I'm not sure how to make
    the messages go away--seems like you'd need another
    parameter to let the xsls know that this is the second pass
    and that linkends in the index don't need to be checked. Or
    you could just ignore the messages.

     
  • David Cramer

    David Cramer - 2003-02-19

    patch to rev. 1.21 of fo/autoidx.xsl

     
  • Michael(tm) Smith

    • milestone: --> output: print/FO/PDF
     
MongoDB Logo MongoDB