How do I insert an image inline with text?

All I want to do is:

Type some text

Press Enter

Paste in an image

Press Enter

Type in some more text

Press Enter

Paste in another image

Press Enter

However, Every time I past the image ends up centered and floating so I can’t get it to just show up inline with the stuff I’m typing.

Is there some way to force this to just paste the image as if I was just adding text like I can in other word processors?

1 Like

When you insert images, they are inserted into frames that have “Graphics” style by default. (When you use “Insert Image” dialog, there is a drop-down list where you can select other styles.) The inserted frame may be anchored “As character” after insertion.

The problem is, that it’s impossible to adjust the frame style’s anchor settings in its edit dialog. However, it’s possible to do that by manually editing styles.xml inside the ODF: first, create an empty new text document, make some edit in “Graphics” frame style (like uncheck AutoSize from Height) - just to force writing the style to file; then save tha file as template. After that, extract styles.xml from the ODT and replace value “paragraph” of Graphics’s atribute text:anchor-type to “as-char”. Save the xml and then replace it in the ODT using a ZIP software like 7-zip.

This new template will work as you want that, so you may use it by default. This proves that everything on LO is ready for this functionality, and the only missing part is UI for the feature. So, the best is to file corresponding feature request in LO bugzilla.

The controls to select the anchor type is available in frame styles since version 7.2. And since version 7.1, there is an option under Writer|Formatting Aids that doesn’t require using templates:


After inserting an image: right-click on it, in menu - Properties, tab - Type, Anchor - As character.


Short & sweet, thanks!

Works for me. Wish there was a bit of a quicker/more intuitive solution