Ask Your Question
1

Image AS CHARACTER as default [closed]

asked 2017-04-27 15:29:45 +0100

wladif gravatar image

Hi

I use A LOT of images, and Anchor as character is the best for my formatting. I would like to have this as a Default value, so every image i paste is automatically put AS CHARACTER instead of anchor it to the paragraph. I know, it is a few clicks but FOR EACH IMAGE is getting very tiresome.

I know i can copy styles too, but i'm sure that it should be a better way to do this. Libreoffice is great, there must be a way!

Is there a setting for this in the menus? So far i can not find the setting.

Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-10-02 11:45:45.004063

3 Answers

Sort by » oldest newest most voted
2

answered 2017-04-28 13:58:13 +0100

Regina gravatar image

You can define your own document template. If you make any change in "Graphics" style, this style is included into the template. You need some knowledge about file format, but you can set the style "Graphics" to anchor type "as character". You can take the style "Formula" as example. To make it easier for you, I have attached such document template myGraphicTest.ott. You can adapt other properties like default language, page borders, header/footer settings to your needs. It will not affect the anchor type of "Graphics". If you base your document on this template, all inserted Graphics will be anchored "as character" as default.

edit flag offensive delete link more

Comments

thanks!!! !!!!!!!!!!!

meika gravatar imagemeika ( 2019-09-22 06:06:09 +0100 )edit
2

answered 2017-04-28 16:15:39 +0100

JohnHa gravatar image

Or you can unzip your Default Template .odt file and extract styles.XML. Edit it and find the graphics style and change the anchor to "as-char" as below. Resave your default template.

<style:style style:name="Graphics" style:family="graphic">
        <style:graphic-properties text:anchor-type="as-char" svg:y="0cm" fo:margin-left="0cm" fo:margin-right="0cm" style:wrap="parallel" style:number-wrapped-paragraphs="no-limit" style:wrap-contour="false" style:vertical-pos="top" style:vertical-rel="baseline"/>
    </style:style>

If this helps then please tick the answer and/or show you like it with an uptick.

edit flag offensive delete link more

Comments

First you need to create your own default template... File→Templates→Save as Template, set as default. Then use the unzipcommand mentioned at https://bz.apache.org/ooo/show_bug.cg... and https://bz.apache.org/ooo/show_bug.cg... to edit the file 'styles.xml', replacing text:anchor-type="paragraph" with text:anchor-type="as-char". Finally, update the template using zip

jdpipe gravatar imagejdpipe ( 2018-09-22 00:47:40 +0100 )edit
0

answered 2017-04-27 23:23:22 +0100

RGB-es gravatar image
edit flag offensive delete link more

Comments

In the Linux version at least, the current styles.XML does not contain any anchor-type setting that I can find. The default has now changed from paragraph, which suited my purposes, to character, which does not. I don't see why this is such an issue to sort out, it's only a default setting.

From https://bugs.documentfoundation.org/show_bug.cgi?id=99646 it looks like there will be an option to set this default, but not yet in 6.4.6.2.

Fergus_Magus gravatar imageFergus_Magus ( 2020-09-10 11:23:19 +0100 )edit

Question Tools

2 followers

Stats

Asked: 2017-04-27 15:29:45 +0100

Seen: 3,790 times

Last updated: Apr 28 '17