Working with Multiple Page Number Styles in an Index

Sometimes, files included in a book file use different page numbering systems. For example, suppose that you are working with a book file that includes a Preface section with pages numbered as i, ii, iii… , chapter sections with pages numbered as 5-1, 5-2, 5-3… (for Chapter 5), and appendixes with pages numbered A-1, A-2, A-3….

If you include the chapter prefix with the page number in the index, you might run into a problem with page numbers of index entries extracted from the Preface. The Preface page numbers have no prefix. Therefore, if you use the following Building Blocks

<$chapnum>-<$pagenum>

to produce the page numbers in the index, the Preface page numbers would also look something ...

Get FrameMaker 6: Beyond the Basics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.