Re-number pages without deleting footer

I have a document of some 215 pages. I have some page number problems and want to either (a) correct the errors I have made or (b) to renumber all pages without first deleting the footer (I don’t want to lose existing footnotes). The errors are as follows:
Pages 1 thru 84 are numbered correctly.
The next page should be 85 but is 65. the following pages are numbered 66 through 75. The page after 75 is also numbered 75. The pages after that are numbered in sequence (76, 77, 78) to the end of the document.

NOTE. This document was started in WORD and then completed in LibreOffice Writer.

Footnotes are not part of the footer.

Bad idea. Probably there are lots of different page styles. (Source of weird and/or illogical behaviours or text cohererences.)

Check the first paragraph of the wrongly paginated page | Textflow. There could be a manual page break including a customized numbering.

It is not easy to give helpful advices. Couldn’t you upload an anonymized sample file which contains the mentioned problems?

1 Like

Thanks for your suggestions, I’ve attached a few pages that show the page numbering problem.I look forward to any help you may be able to give me.


Test for LibreOffice.odt (39.3 KB)

DOCX and ODF concepts are radically different about everything except paragraphs. DOCX has no notion of styles outside paragraph. This means pages are handled very differently. The way Word does it cannot be coerced exactly into Writer features. Very frequently, you end up with a bunch of independent pages where you expect this the least.

Page numbering is an attribute of page style. If you have too many independent sequences of pages, editing text will increase the size of some of these sequences but will not impact subsequent sequences, i.e. won’t change page numbering in them.

Your 4-page sample already shows 3 page styles, two of which are Convertedx (x=6 or 7), betraying a conversion artefact.

But the real cause is an invalid structure: in the page numbered 84, you have inserted a frame containing manually typed “84”, which is not a page number but explicit text. This contradicts your requet to change page number to 64 in the preceding manual page break.

I also note that your document is exclusively direct formatted instead of using styles.

Thanks for you test document.
To analyse it is good to have displayed formatting marks and escpecially field shadings (Menu View).
What I can see:

  • page 84 is a simple number which is located in an unnecessary frame. Delete the frame.
  • page 66 is a field (page numbering) which value is derived from the first paragraph of this page. Its name is PageNumWizard_FOOTER_Converted765 Copy 1 Copy 1. (From F5, Navigator)
  • Pages style are partially derived from Word conversion.
    See attached screenshot.

Note: Meanwhile @ajlittoz has answered the question in similar way. :kissing_heart:

Be aware that direct formatted text parts will make long documents unstable and/or hard to edit.