Bug 117329 - Improve anchor of images
Summary: Improve anchor of images
Status: RESOLVED DUPLICATE of bug 89082
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2018-04-29 09:45 UTC by Jose
Modified: 2021-03-22 09:08 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose 2018-04-29 09:45:53 UTC
Dear Libreoffice developers team

I find myself writing an important and long work with your program, until now it is being a positive and pleasant experience. Although there is one aspect that I find improvable.

The management of images and the flow of text. The existing options are very good, but I was wondering if you could include something like latex. An anchor to the page, but not as now, now is fixed to the page where it is placed and does not move. It would be fantastic if there was the option to fix it with two anchors, one to the page and another to the paragraph in such a way that it would always be anchored to the same page where the paragraph in question is located.

Thank you very much for your work
Comment 1 Regina Henschel 2018-04-29 23:06:00 UTC
You can anchor an image to a paragraph and position it relative to the page. You find the settings in tab "Type" of the image properties. Does that work for you?
Comment 2 Jose 2018-05-06 18:35:11 UTC
Thank you, is a partial solution but not perfect. Suppose I have put the anchor to the paragraph and the configuration to align the picture at the top of the page. If there is space all work fine, but if the picture and the paragraph do not fix in the available space it jumps to the next page, leaving the space without anything. I would like the program to continue writing and put the photo at the beginning of the next page, as latex does.

But thank you for the comment, it is a partial solution.
Comment 3 Buovjaga 2018-06-08 12:21:38 UTC
Jose: it seems your proposal would also solve the request of bug 89477, correct?
Comment 4 Xisco Faulí 2018-08-10 11:21:22 UTC
(In reply to Buovjaga from comment #3)
> Jose: it seems your proposal would also solve the request of bug 89477,
> correct?

Hi Jose,
Could you please check what Buovjaga is suggesting ?
Comment 5 Jose 2018-08-10 12:22:07 UTC
Sorry, I was abroad. Yes, it will definitely solve bug 89477
Comment 6 RGB 2018-08-15 22:31:08 UTC
Just to make things clear, a quick and oversimplified review of what LaTeX does by default (users can change those settings) with its "floats," either figure or table, always considering the insertion point as reference:

  1. If there is space, figure is moved to the top of the page text area

  2. If there is no space on top, figure is moved to the bottom of the text area

  3. If still there is no place, figure is moved to the following page

  4. If *still* there is no place, figure gets its own page, as close as possible to the insertion point

The probability of getting two pictures superpose is exactly zero in LaTeX, and they will never cover footnotes.

All this is performed automatically by LaTeX every time the document is compiled.

In Writer you can set the frame positioning to be on top or bottom of the text area, even in the frame style, but there is a high risk of two pictures going one on top of the other or accidentally covering footnotes, so you need to do the positioning by hand for each frame, and then move anchor points of those frames to avoid "holes" at the end of page when the paragraph to which the frame is anchored moves to the next page.
Comment 7 Heiko Tietze 2018-08-29 18:15:52 UTC
(In reply to Jose from comment #5)
> Sorry, I was abroad. Yes, it will definitely solve bug 89477

Then let's make this a duplicate. Please copy/paste important comments such as c6 to the other ticket.

*** This bug has been marked as a duplicate of bug 89477 ***
Comment 8 Mike Kaganski 2021-03-22 09:04:33 UTC
(In reply to Jose from comment #0)
> It would be fantastic if there was the option to
> fix it with two anchors, one to the page and another to the paragraph in
> such a way that it would always be anchored to the same page where the
> paragraph in question is located.

This is *exactly* what is existing currently, and what is described by Regina in comment 2.

(In reply to Jose from comment #2)
> is a partial solution but not perfect. Suppose I have put the
> anchor to the paragraph and the configuration to align the picture at the
> top of the page. If there is space all work fine, but if the picture and the
> paragraph do not fix in the available space it jumps to the next page,
> leaving the space without anything. I would like the program to continue
> writing and put the photo at the beginning of the next page, as latex does.

... and this is moving the goal post: this was absent in the original request, and is something very different. This addition is not a dupe of bug 89477, but a request for allowing the positioning to be on the two pages adjacent to the page of anchored-to content when it makes sense algorithmically.

This is a valid request on its own (and I have a feeling there were duplicating requests for this).
Comment 9 Mike Kaganski 2021-03-22 09:08:55 UTC

*** This bug has been marked as a duplicate of bug 89082 ***