Displaying only used categories and themes in the book index