Page number format

Modified on Mon, 5 Oct at 1:53 PM

BaseExtensions can be used to change the format of page numbering in a document, adding/removing chapter number and changing between the available Number Formats. The parameters of these features correspond directly to the native Word "Page Number Format" options.

mceclip1.png

The remainder of the options in this dialog can be accessed using our set and reset page number (W) feature.

Page Number Style

Allows us to define the numbering style that should be applied in either the current section of the document, the current section plus all subsequent sections or the entire document.

CMD

<cmd case="BaseExtensions:apply-page-number-styling"/>

Parameters

format

Required. Defines the format of the page numbering. Accepts any values from this list.

range

Required. currentselection applies the command ONLY to the section the cursor is in. selectiontoEnd applies the command to the section the cursor is in plus all subsequent sections. document applies the command to the entire document.

Chapter Numbering

Sets the chapter number on the currently selected section of a document. Chapter numbers add the number from the previous instance of a heading style in the document before the standard page number. More on this can be found here.

CMD

<Cmd case="BaseExtensions:apply-chapter-numbering"/>

Parameters

headingLevel

Defined as an integer between 1-9, corresponding to the desired heading level the chapter number should use.

separator

Defined as any WdSeparatorType found here. Represents the character used to separate the chapter number from the page number.

pageNumberStyle

Defined as any WdPageNumberStyle found here. Represents the type of number style that should be used on the page number as described in the linked article.

IncludeChapterNumber

Optional. Allows chapter numbering to be turned off false or on true.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article