How to change page assignment of frames?

I’m formatting a 400 page book. There are frames anchored to the pages of around 50 of these pages.

Unfortunately, once inserting said frames, they do not seem to stay on the page I inserted them. Initially they all jumped ahead around 80 pages. Then, while fixing it, then all jumped back around 40 pages from where I fixed them.

I think this is due to some kind of instability as it hasn’t occurred while working with the exact same content albeit in smaller chapters. Also, to be clear, I did not add any additional content or pages after the insertion of the frames which would explain the jumping behaviour - indeed I am leaving the insertion of frames until the very very end to avoid this.

I am lumping them all into one document because I can’t use master docs with anchored to page frames as the designated page doesn’t carry over properly.

I’m wondering if there’s anything I can do to fix this mess. Perhaps I can find somewhere, in the underlining code if needs be, which allows me to set the designated page for each frame rather than copying and pasting them to the right spot again which isn’t working.

I really need a solution to this.

Thank you.

Anchor to page means anchor to page number. This works for advertisements and content not related to the surrounding text.
.
If the frame contents are related to the surrounding text then you would be best to Anchor to paragraph or Anchor to character.

Start at the beginning and anchor the frames in order so you are not having to adjust subsequent frames again because an earlier frame needs a different amount of space.

Save regularly every few frames, it reduces the chances of unwanted behaviour. If you have saved recently and something odd happens then closing LibreOffice and reopening it again might restore normality.

If this is true: Including a subdocument into a master document will change the page number.

Seems not to be a good idea.

In many cases Anchor as character may be quite helpful.

Let me summarise the use cases of frame anchors. But as a foreword I want to emphasise a common confusion between anchor and position. The anchor determines the page into which the frame is rendered from the reference you request (see below the anchor modes). Once the page is known, the frame can be positioned absolutely anywhere in the page (with one exception).

  • To page: locks irremediably the frame to a specific page (number), whatever happens to your text
    Avoid this mode. This is not what you want. It is provided to partially bridge the gap between document processing and desktop publication (DTP). Don’t use it until you fully understand the consequences (it is responsible for the problems you’re experiencing).
  • To paragraph: the frame is rendered in the same page as the paragraph and follows the paragraph during edits
    It is equivalent to To character at the very beginning of the paragraph.
  • To character: the frame is rendered in the same page as this character
    It gives more freedom in long paragraphs which possibly span page boundaries by offering an automatic choice of the page: the page for the “beginning” of the paragraph or the page for the “end”.
  • As character: turns your frame into a glyph which is now managed by the text layout engine
    You have no positioning choice here because the frame is now part of text. The frame is rendered at its sequential position within text and can’t be sent anywhere else.

The positioning options offer the choice between relative and absolute location. What I call relative position is a location susceptible to follow the anchor inside the page, i.e. relative to the paragraph or character. Absolute position is “detached” from the anchor, i.e. this is the page area or margins.

Stable and predictable frame positioning is very tricky. This can be done only with frame styles. But, in addition to their intrinsic difficulty, frames are very very sensitive to direct formatting (DF). Never try to tune position or size with the mouse. Doing so adds pernicious DF which is next to impossible to remove and ruins what you required through the styles.

Getting back to your question: if you anchored your frames To page, it is extremely difficult to change this choice. And fixing the document with frame styles is hampered by your alreay present DF.

I am using anchor to page because the other anchors just don’t work in my case. They don’t snap how I want them to. They are sized differently on each page so there’s no point in using frame styles.

Anchor to page works absolutely fine except for how they not sticking to the page they were inserted. You claim it is responsible for the problems I’m experiencing, but I’m not sure why exactly. As I said, I’m leaving the insertion of such frames until the very end of formatting my book, doing them in sequential order. I think I understand the consequences of using this anchoring, but it just seems LibreWriter is being unstable/buggy.

What is inside your frames? Pictures?

Frame styles can be configured to ignore size (AutoSize option), keeping “only” position directives.

Anchor To page locks the frame to a physical page. So, such a frame never moves.

Your statement sounds like you want to associate the frame with a paragraph which could move after you edit text preceding it.

Attach a 2-3 page sample file so that I get an idea of your purpose.