# Revision history [back]

What you need is a master document. A master document references other documents (separate files) to be "included" in the global layout. The content (body) of each file remains distinct from the master document (i.e. the bytes of these files do not become part of the master document) but the header/footer is a "private" property of the master document, meaning it does not change when LO composes a new file. Thus, your page numbering is monotonically sequential.

In your case, part of the job is already done: your chapters are in separate files. You only need to build your master document which will "glue" together the chapters.

1. File->New->Master document
2. Open the Navigator if not already done (F5)
3. Eventually, click on the first icon (top left) to toggle to document structure view (you should see a single line with Text since your document is empty)
4. Make sure Text is selected (this defines where the new element is inserted)
5. Click on the Insert icon in the small toolbar and select Insert from the dropdown menu. A file dialog opens to choose the file which will be inserted BEFORE the selected element in step 4.
6. Repeat step 5 for every needed document, clicking first on a an item which will follow the inserted one

In case, you want to change page format for the inserted document (e.g. to display a different header if you do not use automatic insertion with fields), you need to insert Text items (from the dropdown menu) between the files so that you can customise text properties (such as page breaks, header, footer, background, ...).

You are encouraged to read LO User Manual to get an idea on the possibilities which would be too long to expose here.

*If this answers your question, accept it by checking the tick mark at left. If you give some value to the answer, please upvote it, karma permitting. Finally, close the question if you are satisfied with the answer for community benefit.

What you need is a master document. A master document references other documents (separate files) to be "included" in the global layout. The content (body) of each file remains distinct from the master document (i.e. the bytes of these files do not become part of the master document) but the header/footer is a "private" property of the master document, document(+), meaning it does not change when LO composes a new file. Thus, your page numbering is monotonically sequential.

(+) The master document does not use the page format/styles of the inserted documents but its own ones. This is why you get automatic consecutive page numbering, even if you modify the inserted documents (adding or removing pages).

In your case, part of the job is already done: your chapters are in separate files. You only need to build your master document which will "glue" together the chapters.

1. File->New->Master document
2. Open the Navigator if not already done (F5)
3. Eventually, click on the first icon (top left) to toggle to document structure view (you should see a single line with Text since your document is empty)
4. Make sure Text is selected (this defines where the new element is inserted)
5. Click on the Insert icon in the small toolbar and select Insert from the dropdown menu. A file dialog opens to choose the file which will be inserted BEFORE the selected element in step 4.
6. Repeat step 5 for every needed document, clicking first on a an item which will follow the inserted one

In case, you want to change page format for the inserted document (e.g. to display a different header if you do not use automatic insertion with fields), you need to insert Text items (from the dropdown menu) between the files so that you can customise text properties (such as page breaks, header, footer, background, ...).

You are encouraged to read LO User Manual to get an idea on the possibilities which would be too long to expose here.

*If If this answers your question, accept it by checking the tick mark at left. If you give some value to the answer, please upvote it, karma permitting. Finally, close the question if you are satisfied with the answer for community benefit.