Open the Styles deck with F11, click the target style (for example Title) under Paragraph Styles, then choose Update Selected Style from the Style actions menu. LibreOffice merges the direct formatting found at your cursor into that named style. The catch: this only rewrites the style's definition — it does not hunt down and retag every other paragraph that happens to share the same look.
Why the document has no styles to begin with
Writer distinguishes between direct formatting — bold, size, and spacing applied by hand to specific text — and styles, which are named bundles of formatting attached to paragraphs or characters. Documents that arrive from PDF conversions, older Word files, or hurried authors are often built entirely from direct formatting. The text may look fine, but there is nothing semantic underneath: no real headings to drive a table of contents, no central place to change a look, and no consistent structure for exports or accessibility tools. Capturing that hand-applied look into a style is the first step toward repairing the document.
Confirm the formatting is really direct
Before capturing anything, check what you are dealing with:
- Look at the paragraph style box at the left end of the Formatting toolbar. If a huge bold heading reports
Default Paragraph Style, its appearance comes from direct formatting, not from a style. - As a quick test on a throwaway copy, select a heading and press
Ctrl+M(Format → Clear Direct Formatting). If the special look disappears, it was direct formatting and can be captured.
Capture the look into a style
- Place the cursor in the paragraph whose formatting you want to keep. For paragraph styles the cursor position is enough; to capture character-level formatting, select the exact text instead.
- Open the Styles deck with F11 (or View → Styles) and make sure Paragraph Styles is the active category.
- Click the style that should receive the formatting —
Titlein this case. - Open the Style actions menu, the small drop-down at the top of the deck, and pick Update Selected Style.
The manually applied attributes at the cursor — font, size, weight, spacing, alignment — are merged into the selected style's definition, taking precedence over the corresponding values it already held. If no existing style fits, choose New Style from Selection in the same menu instead, give the style a name, and it becomes available throughout the document and any templates built on it.
View → Styles → Paragraph Styles → select style → Style actions → Update Selected Style
What gets captured — and what does not
Update Selected Style is precise about its input: only manually applied attributes are merged into the style. Anything the paragraph inherited from another style stays out of the capture, so the result can differ from what you see on screen if part of the look comes from an underlying style. Two further limits matter:
- Nothing is retagged. Updating the style changes its definition only; the document text is untouched. Every other heading still carries direct formatting until you apply the style to it.
- The paintbrush is not a style tool. Clone Formatting copies a look from one spot to another, but it never creates or updates a named style — it just multiplies direct formatting.
Retag the rest of the document
With Title now holding the right definition, convert the remaining headings: click into each one and double-click Title in the Styles deck. After applying the style, press Ctrl+M on the paragraph to strip any leftover direct formatting that would otherwise override the style. Repeat the capture-and-apply cycle for the other recurring looks — body text, subheadings, captions — and the document becomes fully style-driven. Paragraphs mapped to heading styles will also feed a table of contents and PDF bookmarks automatically.
Prevent the problem next time
Start new documents from a template that already contains your styles, and reserve Clone Formatting for one-off tweaks. If style-free files land on your desk often, define a small set of styles once, save them as a template, and pull them into incoming documents with Load Styles from the Style actions menu rather than reformatting by hand.
Frequently Asked Questions
Does Clone Formatting create a style?
No. The Clone Formatting paintbrush copies direct formatting from one selection to another. It never stores anything in the style catalogue, so repeated use simply spreads more direct formatting around.
Why did part of the look not transfer to the style?
Update Selected Style only merges attributes that were applied by hand. If part of the appearance comes from the paragraph's underlying style rather than direct formatting, that part is not captured. Recreate those attributes manually in the style dialog if needed.
Can I create a brand-new style from the selection?
Yes. In the Style actions menu choose New Style from Selection, which packages the current direct formatting into a newly named style instead of overwriting an existing one.
Will updating the style fix every heading at once?
No. The command changes the style's definition only. You must apply the style to each paragraph that should use it; the update does not search the document for look-alikes.
How do I remove stray direct formatting after applying a style?
Select the paragraph and press Ctrl+M (Format → Clear Direct Formatting). The paragraph then displays exactly what its style defines, with no manual overrides left.
Does this work for character styles too?
Yes. Switch the Styles deck to Character Styles, select the formatted text, pick a character style, and run Update Selected Style — the manual character attributes are folded into that style.