Writer loading styles

I am loading styles with overwrite from a source Writer document (not template) but after the operation Text Body style is producing some text with point size 10 and some 12. All mixed. Please advise what I am doing wrong.

Thanks, here is the document modified as requested. I need to know how to do a block edit on the styles as the document is very large.

Happyhacker Styles problem.odt (10.3 KB)

Thank you for providing a sample file. What I have noticed:

  1. direct formatting was used in the first paragraph.
  2. in the Styles Inspector a direct character formatting is given for the heading which probably comes from a MS file. So it is reasonable to assume that your file is or was a DOC or DOCX.

My suggestions:
To 1. I have removed the direct formatting. The font is then uniformly set to 11 pt as specified in the “Body Text” paragraph style sheet.
To 2. no suggestion

Basically:

I do not recommend using the Arial font. It comes from the MS source. Instead, Liberation Sans or Noto Sans.

Recommendation for clean working with LibreOffice when different Office programs are used.
Always create and save your files in LibreOffice and save them in ODF format (ODT, ODS, etc.).
Always keep these files as their source.
If you need other formats for distribution to partners, you can open an ODF file and save and distribute another format with ″ Save as… ″.
This way, you always have working files available in your system environment.

See:

Edit different file formats in LibreOffice


Zu 2. - can you make statements about this?


Professional text composition with Writer

So how do I update a style throughout the document based on one of the native styles.Thanks.

I am trying to understand your question, also based on your initial question.
I hope my answer corresponds to your question.

The simple way is to change the desired paragraph style in a document.
And you can transfer styles from other documents, see :

Transfer Styles in Writer

It becomes problematic only when you make transfers from other documents where you cannot be sure how the styles originated (MS documents or other sources?).

For this case the best way is.
Open an empty document (I hope the source is LibreOffice).
Manually create all the styles you need.
Save this document as document template (maybe as default?)

Use this document template also as source for transfers.

Yes thanks. For the original ques I am OK now. Thing is I have a large doc with lots of paras I want to correct. So I want to correct all paras of a certain type in one go obviously without selecting them. How do I do that. Some of the paras concerned have sentences with different styles which may complicate this. thanks.

Modify the paragraph style. This will change all the paragraphs formatted with this style.
But remember the order of precedence: paragraph style < character style < direct formatting. In other words, where you applied a character style, the attributes in this style override the corresponding one in the paragraph style. Similarly, direct formatting attributes will override those in paragraph and character.
This is why it is highly recommended to work consistently and rigorously with styles and to avoid direct formatting.

If you want to work cleanly, which I also recommend, you should select everything (i.e. the complete document) anyway ( Ctrl + A ) and then delete the direct formatting ( Ctrl + M ).

Now you can look at your paragraphs and check to which paragraph styles they are assigned. (Place the cursor in the paragraph and look in the sidebar to see which paragraph style is selected).

If you have several paragraphs assigned to a paragraph style, e.g. “A”, and all these paragraphs with “A” are to be changed, you only need to change the paragraph style “A” according to your wishes. The change in the paragraphs will be done as soon as you click OK.

If you want to change one paragraph (no other paragraphs use this paragraph style), place the cursor in the paragraph and double-click on the desired paragraph style.

This is all described in the link above from (Professional text composition with Writer). (And read the topic thoroughly and let it sink in.)

If there are still inconsistencies, it could be caused by character styles overriding paragraph styles.

Many thanks. I have enough to proceed now.

1 Like

You have direct formatting applied on the first paragraph (font size 12 pt).

To fix, select the whole paragraph and Ctrl+M.

I remind you that (manual) direct formatting always takes precedence over style formatting. Consequently, unless you know perfectly what you’re doing (this means you master the principles implemented in Writer, implying you read at least the Writer Guide), avoid as much as possible direct formatting and work exclusively with styles.

Direct formatting is tolerable in rare circumstances, apart for quick’n’dirty one-shot 1-page documents, provided you are aware of the precedence rules.

1 Like

Many thanks. Ctrl M…will remember and will read.

2 Likes

Most likely, you have applied direct formatting (formatted text with the toolbar buttons and font and font size drop down lists), and direct formatting overrides styles.

1 Like

Yes thanks. I need to know how to do this quickly on a large document. I have uploaded a sample to the previous commenter.