Chapter 16 · 16.13
Combining chapters from separate files into one document
For a group report or an annual report, everyone often writes their own chapter in their own file. In the end, you need one document with continuous numbering, one table of contents and the same formatting throughout. You could copy and paste, but with Text from File you pull in a whole file in one go, straight from your WebOké Nextcloud.
In the example, we add Lisa's chapter "Personeel" (Staff) to the annual report of Bloemisterij Het Zonnetje.
Preparation
- Start with the main document: the file with the cover page, the table of contents and the right styles. Ideally, use a document created from your house style template (see A house style template for your whole team).
- Agree that everyone uses the Heading 1 and Heading 2 styles for titles and no fonts of their own. That way everything will fit together automatically later.
Inserting a chapter
- Open the main document and place the cursor where the chapter should go, for example at the end on a new line.
- Go to the Insert tab and click Text from File.
- Choose Text from the storage file to pick a file from your Nextcloud. (With Text from the local file you pick a file from your computer.)
- Choose the file, for example "Hoofdstuk personeel.docx", and confirm.


The entire content of the file is now in your document. If you have numbered your headings (see Number headings automatically as 1, 1.1 and 1.1.1), the new chapter immediately gets the next number. Repeat this for each chapter, in the right order.
Tidying up afterwards
- Turn on Nonprinting characters and check that there is a page break or section break between the chapters where you want one.
- Update the table of contents: click inside it and choose Update Table (References tab). Do the same for a list of figures.
- Update cross-references by right-clicking and choosing Update field.
- Check that the text uses the same font throughout. If you spot differences, clean them up as described in Clean up messy formatting after pasting from Word, email or the web.
Pitfalls
- Text with a style that also exists in the main document (such as Heading 1) should take on the formatting of the main document. Formatting that someone applied by hand (a different font, a colour) comes along with it. So check the result.
- Section settings from the inserted file, such as a landscape page or a custom header, may come along too. Check the headers and footers after inserting.
- The inserted file itself stays unchanged. If Lisa edits her file afterwards, those changes won't appear in the main document automatically. Agree on a moment when everything is final.
- If several people are working at the same time, you can also write together in one document straight away. Everyone then works in their own chapter and you don't need to combine anything. See Working on a document at the same time.
- Combine on the Collaboration tab is something different: it brings together the changes from two versions of the same document (see Comparing documents and Kopieën van verschillende reviewers samenvoegen tot één document).
