Style frames to be at an edge but not overlap

I’m not sure if there is any way to do this, but I’d like to be able to anchor frames to a paragraph, and have the frame appear at an horizontal edge of the page*. It doesn’t really matter to me that much if it is before the paragraph or after it, or if it’s always top/bottom, or nearest one, or something like that.

I tried simply setting the style position to bottom of the page text area, but the issue is that if there are multiple frames on one page, they overlap.

Expectations:

Reality:

I understand that aligning the images at the bottom is likely not going to be possible just by using simple styles, because it would mean that Fig.1 would have to be moved up to accommodate Fig. 2, etc., but maybe there is at least some trick to do it at the top of the page? Or more generally, is there any way to have the frames automatically layout in a somewhat nice way?

No. You can request automatic re-adjustment when there is a conflict but this is tricky and requires very careful configuration of frame style.

Be aware that automatic offsetting tries first in the horizontal direction. So, to get vertical adjustment, positioning parameters must be correctly selected.


Frame styles are very difficult to tame in order to get what you specify from start. In particular, they accept absolutely no direct formatting superimposed on them, lest the frame style becomes completely ineffective (contrary to paragraph or character styles).

There is also a surprising default setting where Allow overlap is ticked in the Wrap tab (I don’t understand why it changed several releases back from unticked to ticked because usually expect frames or images not to overlap).

Since the configuration depends on many factors, attach your sample file as a test case (degrade image quality so that total document size is under 3 MB – what I need is the correct frame size with something in it; full details are not useful). Mention OS name and exact LO version (important because there are been changes in frame management lately). Save format will be determined from your sample. If it is not .odt, you case is hopeless because alien format have no notion of frame style.

@dolezvo1
You ticked my comment as the solution. I was only describing a few leads. Which one put your on the right track? The Overlap box? But you may also need to tick Keep inside text boundaries to avoid shifting the conflicting frame into bottom margin and having it neatly sent to next page.

Yeah, I apologize, I was being too optimistic. I tried messing with the settings again, and it briefly seemed to be working, but it probably wasn’t really. I did notice the Allow overlap checkbox before creating the post, and turned it off, but I didn’t really notice it changing anything.

frame_anchor.odt (12.3 KB)