Syntax
InsertCaptionNumbering [.Label = text] [, .FormatNumber = number] [, .ChapterNumber = number] [, .Level = number] [, .Separator = text]
Remarks
Defines a format for sequence numbers in captions for a specific type of item. The arguments for the InsertCaptionNumbering statement correspond to the options in the Caption Numbering dialog box (Caption command, Insert menu).
Argument | Explanation |
.Label | The label for which you want to define a sequence number format. If the label has not yet been defined, an error occurs. Use InsertAddCaption to define new labels. |
.FormatNumber | Specifies a default format for the sequence number in captions containing the specified label: 0 (zero) 1, 2, 3, ¼ 1 a, b, c, ¼ 2 A, B, C, ¼ 3 i, ii, iii, ¼ 4 I, II, III, ¼ |
.ChapterNumber | If 1, a chapter number is included by default in captions containing the specified label. Chapters are determined by the heading style specified by .Level. |
.Level | A number corresponding to the heading style used for chapter headings in the active document: 1 corresponds to Heading 1, |
.Separator | The character to use as a separator between the chapter number and the sequence number. |
Example
This example defines a number format for captions containing the "Figure" label. Chapter numbers are excluded from the sequence number.
InsertCaptionNumbering .Label = "Figure", .FormatNumber = 3, \ .ChapterNumber = 0
See Also
InsertAddCaption, InsertAutoCaption, InsertCaption