48
The table of contents will not automatically pick up these chapter numbers, so you will need
to make a change on the Indexes and Tables menu item, as described in Chapter 12,
Creating Tables of Contents, Indexes, and Bibliographies.
•
You can add a page count to the footer—for example “Page 9 of 12”. Type the word “Page”
and a space in front of the Page field. Type a space, the word “of”, and a space after the
Page field. Then choose Insert → Fields → Page Count.
Using fields instead of outline numbering for appendix
numbering
Chapter 6, Introduction to Styles, describes how to use paragraph styles to define a hierarchy of
headings to be included in a table of contents.
This method has one major limitation: only one paragraph style can be selected for each heading
level, and only one numbering sequence can be specified in Tools → Outline Numbering.
However, many books contain Appendixes (typically designated A, B, C) in addition to the chapters
(typically designated 1, 2, 3).
To solve this problem, you can use one paragraph style (Heading 1) for both chapter and appendix
names, and define two number range fields for the chapters and appendixes respectively. The
number range field for chapters will use numbers, and the number range field for appendixes will
use letters. You can then use the same field in the header or footer of chapters and appendixes.
1) Define the first number range variable, as described in “Defining your own numbering
sequences” on page 8. To insert the field into your Heading 1, type Chapter<space>.
Choose Insert → Fields → Other. On the Variables page, select Number range, Chapter,
Arabic (1 2 3). Click Insert. You will need to do this manually for each Heading 1 that is to
be a chapter title.
2) Define and insert a second number range variable for the appendixes, using Number
range, Appendix, A B C), as shown in Figure 13. Type Appendix<space> and then
insert the variable. Do this for each Heading 1 that is to be an appendix title.
3) When you create the table of contents, the chapters and appendixes will be designated
correctly.
Tricks for working with fields
Keyboard shortcuts for fields
Here are some handy keyboard shortcuts to use when working with fields:
Ctrl+F2
Open the Fields dialog box.
Ctrl+F8
Turn field shadings on or off.
Ctrl+F9
Show or hide field names.
F9
Update fields.
Fixing the contents of fields
You can specify Fixed content for many items on the Document and DocInformation pages so the
field contents do not update. For example, you might use a field to insert the creation date of a
document, and you would not want that date to change. In another place you might use a date field
to show the current date, which you do want to change; in that case, deselect Fixed content when
you insert the field.
Tricks for working with fields
15