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:

  1. 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.
  2. Avoid Manual Formatting: Rely on paragraph and character styles rather than direct formatting to ensure uniform presentation.
  3. 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:

  1. Open LibreOffice.
  2. Go to File > New > Master Document.
  3. A blank document will open alongside the Navigator dock (press F5 if it does not appear automatically). The Navigator is the primary control center for managing master documents.
  4. 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

  1. In the Navigator window, click and hold the Insert icon (or click the arrow next to it).
  2. Select File.
  3. Browse to your sub-document (.odt), select it, and click Open.
  4. The file will appear in the Navigator list, and its contents will render in the main editing window.
  5. 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:

  1. In the Navigator, select the item where you want to insert text.
  2. Click the Insert icon and select Text.
  3. 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:

Generating Tables of Contents and Indexes

A major benefit of master documents is generating project-wide reference tables:

  1. 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).
  2. Go to Insert > Table of Contents and Index > Table of Contents, Index or Bibliography.
  3. Configure your display settings, titles, and levels, then click OK.
  4. 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.