How to set different page numbers in footers per page

libreoffice-writerpage-numbers

I have uploaded a simple ODT file: https://ufile.io/26f07

We are trying to achieve this in LibreOffice Writer:

  • First page: No page number should be visible in the footer
  • Second page: A page number needed as footer, so "1"
  • Third page: No page number should be visible in the footer
  • Fourth page: A page number needed as footer, so "3"
  • Fifth page: … A page number needed as footer, so "4" …

We just don't know how to do this… Already tried on another forum, no luck: https://ask.libreoffice.org/en/question/89058/how-exactly-can-i-set-different-footers-in-libreoffice-4282/

Can someone describe how to do this? Or is it impossible, cannot be done?

Best Answer

Use "Styles and Formatting" in LibreOffice Writer.

That allows users to customize different things per page. This includes how to set different page numbers in footers per page. Users are required to be familiar with two important features in LibreOffice Writer: Page Styles and Page break (or Manual break for more control).

The following screenshot shows that it is possible to set different page numbers in footers per page.

LibreOffice Writer result overview

Note that above screenshot has increased font size, reduced page size and reduced zoom scale to show the result, which is otherwise too small for overview.

Follow five steps

Open LibreOffice with a new text document (or run LibreOffice Writer). In the menubar, select View and followed by Styles and Formatting (or press F11). There are five steps to follow:

  1. Select Page Styles and create a new style with new name i.e. "Added Footer"
  2. Modify the new style and enable Footer.
  3. Insert Manual Break, select a style i.e. "Added Footer" and change page number (if enabled, default is 1 to restart page number).
  4. Show Footer (click on footer area).
  5. Insert Field, select Page Number (result is 1 according to step 3).

At this point, you will have two pages of blank document: The first page has no footer; The second page has footer with page number.

To proceed, follow step 3 but this time select Default Style from the dropdown list. This will create third page without the footer/page number. Then repeat step 3 exactly as first time i.e. the new style to create fourth page with the footer/page number and so forth.

Additional notes

If you didn't get similar result, then you might have done something different:

  • Using Page Break (wrong) instead of Manual Break (correct). Doing the wrong will not show the dialog to change the style.

  • Placing the cursor inside the footer (wrong) instead of cursor within page content area (correct) to insert Manual Break. Doing the wrong will disable the last option "Page Break" in the dialog.

For more sophisticated formatting, repeat step 1 until step 3 to create additional page style. In step 2, users could define the page style more than what have been explained above.

For automated style selection, repeat step 2 to modify the page style. Then select Organizer tab and change "Next Style" to something else as desired. If this is done properly, then only use the shortcut key Ctrl+Enter to insert a Page Break (correct) instead of Manual Break (optional).

Disclaimer: This answer is intended to be a generic guide for using "Styles and Formatting" in LibreOffice Writer, which means details have been omitted on purpose. That being said, this answer should suffice to understand the basic idea before proceeding to further customize the end result of text document.

References

Related Question