libre office: remove page number if document has one page only

1

I'd like to show page numbers 1/5, 2/5, ... in the footer of a libre office document. These should generally start on the first page (with 1/5, e.g.) already. This I can do.

However, if the document has only one page, I do not want to show the 1/1.

How can I achieve this?

EDIT: To clarify: I want to create a template document (it has a header, footer, etc.). Part of that template document is the page number in the format <page>/<number of pages>. I want the template to be smart enough to show the page number only if the document grows beyond 1 page.

Andreas

Posted 2016-09-15T13:31:11.963

Reputation: 121

I don't think there would be an option for that. (maybe you can use macros, but I don't know them in libreoffice at all) – Máté Juhász – 2016-09-15T13:36:41.383

page number can be hidden on 1st page but doubt if last page only can be hidden on 1st, unless you edit template or footer directly. – Tony Stewart Sunnyskyguy EE75 – 2016-09-15T14:38:31.370

If I create a new document in LibreOffice it doesn't have any page numbers. Please [edit] and clarify your issue. – DavidPostill – 2016-09-15T15:49:27.740

added some clarification – Andreas – 2016-09-15T21:21:27.320

Hint: Use 'Page Styles' in Styles and Formatting. The question is almost two-years old, so I just leave this comment. Not sure if OP is still looking for the answer or already figured out by own since then. – None – 2018-04-29T13:18:16.703

Related: How to set different page numbers in footers per page? No wonder I feel familiar, I wrote an answer last year except untested with templates.

– None – 2018-04-29T17:20:19.133

No answers