Add chapter, appendix or part numbers to table titles

Use the getChapterPrefix template method to number table captions.

Out of the box, the PDF plugin doesn’t add chapter, part, or appendix numbers to table titles. Fortunately, it’s easy to add them yourself. You will use the getChapterPrefix template to add chapter numbers to table titles (If you’ve already done the Add chapter, appendix, or part numbers to TOC page numbers exercise, then you already have this template in your plugin, and you can skip Step 1).

  1. If it is not already present, copy the entire getChapterPrefix template into custom.xsl (xsl).

    You can find this template in the GetChapterPrefix template appendix.

    Note: You could copy this template into any of the .xsl ...