# Style from a file doesn't work

Perhaps it is a bug, but I still hope that I am doing something wrong.

I configured styles for section, subsection, and a plain text in a file, and saved the file separately.

After that I am opening a copy of the file without styles being configured, and with Wiki steps I am loading styles from the file saved in previous paragraph. With disregard whether I selected a text, or not — styles from the other file never being applied.

UPD1: I found a weird thing: I unpacked both «.odt» files, and found there styles.xml which are absolutely the same in both files, and does contain my styles. Then I changed style of a plain text, and unpacked that again, and… styles.xml haven't change!

UPD2: okay, I found that the currently used paragraph style is being saved in the content.xml file. And loading a style simply doesn't work — paragraphs are still using the same style as before.

edit retag close merge delete

Sort by » oldest newest most voted

Hi

I do not reproduce what you describe. On my platform (windows) this feature works as intended: the "loaded" styles are applied. Of course:

• Same name styles must be applied in the document. If the command loads a style not applied, it is loaded but not applied.
• You must have checked the Overwrite box

Regards

more

I probably had a bad explanation: for this to work one needs to know of what styles set to text pieces beforehand, thus configure just these styles in a separate file, and load it. And it works. But I haven't work much atm with office documents, and I was thinking it works rather like CSS. E.g. Heading1 would be rather an element than a style. Thus what I actually did — changed in the supposed to contain styles document a manual formatting for pieces of text that were produced by converter,

( 2015-08-17 06:15:38 +0200 )edit

like Heading1, Heading2, etc. And of course when I tried to load styles from that file, it didn't work; at least no the way I thought it should.

( 2015-08-17 06:17:49 +0200 )edit

You have the check the Overwrite button. That is not obvious in the UX, thanks.

( 2016-05-09 12:56:16 +0200 )edit

After some hours of experimenting I realized a disappointing answer. To understand that it is needed to see a few concepts: when the style modified, instead of saving that globally, Office saves it exclusively for the document being edited. Hence one needs a way to import a style from a document.

The «load» menu most probably meant just an import. The reason which confused me that hard was the name of the LibreOffice wiki article Using Styles From Another Document or Template. That looks exactly like what I was looked for — I have a document that I am getting from a converter from Markdown, and I need to apply automatically styles to all elements. But it isn't.

more

## Stats

Asked: 2015-08-02 13:37:31 +0200

Seen: 325 times

Last updated: Aug 04 '15