Add chapter, appendix or part numbers to figure titles

Use the getChapterPrefix template method to number figure captions.

Out of the box, the PDF plugin doesn’t add chapter, part, or appendix numbers to figure titles. Fortunately, it’s easy to add them yourself. You will use the getChapterPrefix template to add chapter numbers to figure 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). If you didn’t work through that exercise, refer to it now and add the template.

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

    You can find this template in the GetChapterPrefix ...