Using Text as a Prefix for Page Numbers
You might require a text prefix for page numbers rather than a number. Let's use the example of a software manual that consists of both user and reference guides with page numbers for the user guide that are designated as UG-1, UG-2, UG-3..., while the reference guide pages read as RG-1, RG-2, RG-3.... Take a look at how this is done.
For text prefixes, you must consider two features that work hand-in-hand to get you the results you want:
The Document Number Property for volume in individual files that are used as source information
Redefining the Building Blocks structure on the reference page of the table of contents
Setting Up the Text Prefix
First, you must adjust the Numbering Properties for volume for each document file. The <$volnum> variable that you use corresponds to the Volume Numbering Properties. From a source document file, follow these steps:
Select Format > Document > Numbering. Click the Volume tab. The Numbering Properties for volume appears.
Use the Format drop-down menu and select Text. Text is selected from the drop-down menu and indicates that text will be used to define the Volume variable rather than a number.
- Type UG in the Volume # text field. UG is inserted in the Volume # text field. UG is the new definition of the <$volnum> variable. As a result, wherever <$volnum> is used in appropriate places for this file, UG is displayed..
For document files that use a different prefix, repeat the previous exercise for each of those files and type the text you want to use in the Volume # text field.
If you are working in a book file, you can set the volume number to "Continue numbering from previous file in book" rather than type the text for individual files.
Redefining the TOC Building Block Structure
After you set up the volume number to Text in each document file, the next step is to add the Building Block to the table of contents structure on the reference page.
Previously, you saw how the Building Blocks
produced the following result:
3.1 The Language of Running 1
3.2 Understanding Pace 2
Now add <$volnum> - right before the <$pagenum> Building Block. <$volnum> represents the volume number that you assigned in Volume Numbering Properties for each individual file. Consider using the dash to separate the chapter number from the page number.
The following Building Block structure
produces this result:
3.1 The Language of Running UG-1
3.2 Understanding Pace UG-2