How to Split a LibreOffice Document into Chapters
Splitting a large LibreOffice Writer document into individual chapter
files simplifies the management, editing, and formatting of extensive
projects such as books and lengthy reports. This guide provides a
straightforward method to automatically break a single .odt
document into separate sub-documents using LibreOffice Writer’s built-in
Master Document feature based on heading styles.
Step 1: Apply Heading Styles to Your Chapters
LibreOffice uses heading styles to determine where one chapter ends and another begins.
- Open your document in LibreOffice Writer.
- Navigate to the start of each chapter.
- Highlight the chapter title and set its style to Heading 1 using the Styles drop-down menu in the top toolbar or the sidebar.
- Ensure every chapter you want as a standalone file starts with the Heading 1 style.
Step 2: Export the Document into a Master Document
Once your headings are correctly configured, you can generate individual chapter files automatically:
- Click on File in the top menu.
- Hover over Send and select Create Master Document.
- In the dialog box that appears, choose a folder where you want to save the new files. It is best to create a new, dedicated folder to keep the generated files organized.
- In the Separated by drop-down menu at the bottom of the dialog box, select Heading 1 (or the corresponding heading style you applied in Step 1).
- Enter a name for the Master Document (
.odm) in the File name field. - Click Save.
Step 3: Access the Separated Chapter Files
LibreOffice will process the text and generate individual
.odt files for every section that begins with the selected
heading style:
- Open your file manager and navigate to the directory chosen in Step 2.
- You will find:
- One Master Document (
.odm), which links all chapters together. - Multiple separate LibreOffice documents (
.odt), each named after the chapter heading and containing only that chapter’s content.
- One Master Document (
- You can now open, edit, and share each chapter file independently. Any text occurring before the first Heading 1 will be saved as its own introductory sub-document.