Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

2.3.3 Headers

Office

The header document contains all content in headers and footers as well as the footnote and endnote separators. It begins immediately after the footnote document and is FibRgLw97.ccpHdd characters long.

The header document is split into text ranges called stories, as specified by PlcfHdd. Each story specifies the contents of a single header, footer, or footnote/endnote separator. If a story is non-empty, it MUST end with a paragraph mark that serves as a guard between stories. This paragraph mark is not considered part of the story contents (that is, if the story contents require a paragraph mark themselves, a second paragraph mark MUST be used).

Stories are considered empty if they have no contents and no guard paragraph mark. Thus, an empty story is indicated by the beginning CP, as specified in PlcfHdd, being the same as the next CP in PlcfHdd.

If the header document exists, as indicated by FibRgLw97.ccpHdd and FibRgFcLcb97.lcbPlcfHdd being nonzero, its first six stories specify footnote and endnote separators, in this order.

Story number

Contents

0

Footnote separator

1

Footnote continuation separator

2

Footnote continuation notice

3

Endnote separator

4

Endnote continuation separator

5

Endnote continuation notice

The footnote and endnote separator stories do not need to contain whole paragraphs—that is, they do not necessarily need to have paragraph marks in their contents. However, they MUST have the guard paragraph marks if they are non-empty.

Following the footnote and endnote separator stories are the stories that contain the contents of headers and footers. Six such stories MUST exist for every section (2) of the Main Document. The first such group of stories specifies the contents of the headers and footers for the first section (2). The second group specifies the contents of the headers and footers for the second section (2), and so on. The stories within each group MUST appear in the following order.

Story number in group

Contents

0

Even page header. This MUST be non-empty if different even and odd headers and footers are enabled for the section (2).

1

Odd page header. If different even and odd headers and footers are not enabled for the section (2), the odd page header MUST be used on both even and odd pages.

2

Even page footer. This MUST be non-empty if different even and odd headers and footers are enabled for the section (2).

3

Odd page footer. If different even and odd headers and footers are not enabled for the section (2), the odd page footer MUST be used on both even and odd pages.

4

First page header. This MUST be non-empty if different first page headers and footers are enabled for the section (2).

5

First page footer. This MUST be non-empty if different first page headers and footers are enabled for the section (2).

Non-empty header and footer stories MUST contain whole paragraphs and thus MUST end with a paragraph mark. Therefore, non-empty header and footer stories MUST have two paragraph marks at their ends, one as part of the content followed by a separate guard paragraph mark.

An empty header or footer story specifies that the header or footer of the corresponding type of the previous section (2) is used. For the first section (2), an empty header or footer story specifies that it does not have a header or footer of this type.

Show:
© 2015 Microsoft