Adding an index to a book
  • Hi

    I'm new to Booktype and have been trying it out over the last few weeks. I've created a book and am now looking at how to create an index. I've see in the Booktype issue tracker that the index functionality is on the wish list, so am wondering if anyone has any workarounds or ideas of how to manage it in the meantime.

    Thanks
    Sharan
  • 2 Comments sorted by
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Sharan,

    If you are using mPDF to create book PDFs, there is a feature for this, please see https://mpdf.github.io/what-else-can-i-do/index.html

    In some custom Booktype projects, we have added a feature such as Insert -> Index entry to the editor, so it would be possible to have something like this in a future release. In the meantime, if you have support for indexes in your booktype2mpdf.php script, you will see a line like this:

    $mpdf->InsertIndex(1, 1);

    for example if you have upgraded to Booktype 2.1.0.

    Please add details of your use case to https://dev.sourcefabric.org/browse/BK-374 such as the languages you need to index. That's because each human language needs its own index collation rules.

    Cheers!

    Daniel
  • Hi Daniel

    Thanks for the response. I will try to see how I can upgrade to 2.1.0 and then will try it out. I'll also add what I can to the Index Creation Tool ticket.

    Thanks
    Sharan