Search code examples
page-numberinglibreoffice-writer

Is there a method for page numbering by chapter in LibreOffice Writer?


Writing a user-manual that is written in chapters, each describing a different aspect of the functions. Some of those functions are ready and closed, some still in development or ready but not described yet. Those have to follow the application menu's order, so often will be inserted somewhere in the middle of the document.

A new index by chapters is made, a new alphabetical index as well. Each time the page numbering of the existing chapters is changed as well. That forces me to run a new PDF and a full new paper version.

When I could number by chapter, I could offer the two new indexes plus the new chapter to be inserted in the paper version.

Once there existed some extension that could handle such a thing for OOo; not downloadable anymore and many version behind anyway. I understood it is available in MS-Office.

Could anyone help me with such a thing? Some workaround maybe, or some method that LibreOffice did not explain in its manual?.

FYI: this concerns LibreOffice 6.3.5.2. at the moment of writing the most recent stable version.


Solution

  • The following solution assumes that you're using the heading styles provided by LO Writer and every chapter starts with a certain, identical heading style (in my example: Heading 1). If so, you can simply edit that heading style:

    1. Open Menu "Format" -> "Styles and Formatting..." or hit F11 (you may need to activate the sidebar);
    2. Left-click the heading your chapters are starting with; right-click, select "Modify";
    3. Select the "Text Flow" tab;
    4. Under the "Breaks" section:
      • Tick the "Insert" checkbox
      • Tick the "With paragraph style" checkbox;
      • Select your default page style ;
      • Tick the "Page number" check box.
    5. Hit Apply;
    6. Hit OK.

    enter image description here

    That's it - now every chapter should start with page number 1.