Create Master Documents in LibreOffice Writer
Master documents in LibreOffice Writer allow users to manage long, complex projects—such as books, dissertations, and multi-chapter reports—by combining multiple individual files into a single structured container. This guide explains the core concepts of master documents, how to set them up from scratch, how to insert and organize sub-documents, and how to maintain consistent formatting and global elements like tables of contents.
What Is a Master Document?
A master document (.odm extension) acts as a parent file
that links several individual Writer documents (.odt
extension), known as sub-documents. Instead of working inside a massive,
unwieldy single file that can slow down your system or become corrupted,
you work on smaller, dedicated sub-documents. The master document
dynamically loads these files to generate a unified layout, complete
with unified page numbering, cross-references, and global indexes.
Preparing Sub-Documents
Before building a master document, ensure consistent formatting across all parts:
- Use a Common Template: Apply the same styles (Heading 1, Heading 2, Body Text) across all sub-documents. If styles differ, the master document’s styles will override the sub-documents’ formatting upon import.
- Avoid Manual Formatting: Rely on paragraph and character styles rather than direct formatting to ensure uniform presentation.
- Save Files Systematically: Store the master document and all sub-documents in a dedicated project folder to avoid broken file paths.
Creating a Master Document
You can create a master document directly from LibreOffice Writer:
- Open LibreOffice.
- Go to File > New > Master Document.
- A blank document will open alongside the Navigator
dock (press
F5if it does not appear automatically). The Navigator is the primary control center for managing master documents. - Save the file immediately via File > Save As, choose a name, and ensure the format is set to ODF Master Document (.odm).
Adding Content and Sub-Documents
You can insert existing documents, create new sub-documents, or add standalone text sections directly within the master document.
Inserting Existing Documents
- In the Navigator window, click and hold the Insert icon (or click the arrow next to it).
- Select File.
- Browse to your sub-document (
.odt), select it, and click Open. - The file will appear in the Navigator list, and its contents will render in the main editing window.
- Repeat this process for each chapter or section in your project.
Adding Direct Text and Structural Elements
You can place introductory material (like a title page, preface, or dedicated page breaks) directly in the master file without creating a separate sub-document:
- In the Navigator, select the item where you want to insert text.
- Click the Insert icon and select Text.
- A text section is created where you can type directly into the master document.
Managing the Master Document Structure
The Navigator panel provides full control over the sequence and visibility of your project components:
- Reordering Sections: Click and drag items up or down within the Navigator list, or select an entry and use the Move Up and Move Down arrow buttons.
- Updating Links: Right-click inside the Navigator and select Update > All to reload changes made to external sub-documents.
- Editing Sub-Documents: Double-click any sub-document entry in the Navigator to open it in a separate window for editing. When you save and close that file, the master document updates its display.
- Removing Links: Select an item in the Navigator and
press
Deleteto remove the link from the master document without deleting the source file from your drive.
Generating Tables of Contents and Indexes
A major benefit of master documents is generating project-wide reference tables:
- Place your cursor in the master document where you want the table to appear (typically within a direct text block before the first sub-document).
- Go to Insert > Table of Contents and Index > Table of Contents, Index or Bibliography.
- Configure your display settings, titles, and levels, then click OK.
- To refresh the index after making edits or moving sections, right-click the generated table and choose Update Index.
Exporting and Printing
To publish your project, keep the master document open and navigate to File > Export As > Export as PDF, or print via File > Print. LibreOffice Writer compiles all linked sub-documents into a single, cohesive output file with synchronized headers, footers, and continuous pagination.