TX Text Control X9 is going to have separate headers and footers for Odd and Even pages. In combination with First Page Headers, First Page Footers, different sections and the new per section restartable page numbering, headers and footers can get a very complex structure.
The current version TX Text Control X8 also implements many different section combinations. In the next couple of blog entries, I am going to introduce special section situations where TX Text Control implements a number of standard conventions.
Consider the following situation. Document 1 consists of 1 page and a section header. Document 2 has two sections and no headers and footers:
The second document is inserted into document 1 using Selection.Load, Append (StartWithNewParagraph) or clipboard operations.
These documents, the sections and headers and footers must be combined somehow in a way that makes sense. Over the years, conventions have been developed how such situations are resolved. The resulting document is a combination of the different sections. The following illustration shows how the resulting 2 sections are merged:
As you can see, the header has been moved to page 2. In fact, section 1 of document 1 (1a) has been merged with section 1 of document 2 (2a) where the format of the newly inserted document has priority (2a).
On page 2, the format of section 1 of document 1 (1a) is used, so that the header is applied to the second section on page 2.
This merge logic matches the behaviour of other word processors such as MS Word.