We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

Remove some values (color, size) from a character style [closed]

asked 2017-07-03 13:16:57 +0200

brandizzi gravatar image

updated 2020-07-21 12:36:27 +0200

Alex Kemp gravatar image

I have a character style that used to have only two effects: it changed the font style to italic and the language to Portuguese. Now, for some reason (probably a mistake of mine) it has two other effects: it changes the content color to "Black" and the size to "11 pt". However, this style is applied to paragraphs where the color is not black and the size is not 11pt. Also, this style is used all around a somewhat large document.

Can I remove these properties from from this style without creating a new one?

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-09 11:40:44.971981

3 Answers

Sort by » oldest newest most voted

answered 2017-07-04 14:39:13 +0200

ajlittoz gravatar image

updated 2017-07-04 15:01:08 +0200

Another solution not involving a new document:

  1. Open your style for modification (right-click and choose Modify in the F11 style pane)
  2. Successively go to the tabs where you want to change some property
    1. Click the Standard button: properties are reset to their parent value (if you have not set a hierarchy between styles, the default parent is Default Style)
    2. Re-set the properties you want to override against the parent
    3. (Note: all tabs are independent, you have to check them one after the other)
  3. Click OK to record the amended style

If this answer helped you, please accept it by clicking the check mark to the left and, karma permitting, upvote it. If this is what you expected, close the question, that will help other people with the same question.

edit flag offensive delete link more


Cool. I did not know such a trick.

gabix gravatar imagegabix ( 2017-07-04 18:09:50 +0200 )edit

answered 2017-07-04 13:23:51 +0200

gabix gravatar image

updated 2017-07-04 13:24:08 +0200

I would proceed as follows:

  1. Create a new document.

  2. Create there a style that you want. Name this style exactly as it is named in your original document.

  3. Save.

  4. Open your original document.

  5. Call up the Stylist (F11).

  6. Use Load Styles, import styles from the new document with Overwrite ticked.

edit flag offensive delete link more


Much better, I suppose!

Lupp gravatar imageLupp ( 2017-07-04 13:40:19 +0200 )edit

My suggestion comes from my habit of playing with different templates. In Apache OpenOffice, one can use such a great extension as Template Changer. It is a pity that LibreOffice developers have broken something, and this extension does not work. Of course, for a single edit ajlittoz's solution seems better.

gabix gravatar imagegabix ( 2017-07-04 18:13:16 +0200 )edit

answered 2017-07-03 14:04:37 +0200

Lupp gravatar image

updated 2017-07-04 17:38:33 +0200

Sorry for my wrong and misleading answer! I tried to downvote it but was not allowed.

I don't think there is a way to set any style property to 'Inherited (Parent)' or similar. To have this would really be an enhancement, imo.

The way I would do it for a single document as long as there isn't such a feature:

-1- Install the extension 'Alternative Search and Replace' which is able to find named character styles.
-2- Create an intermediary characterstyle, say 'DisposeAfterUse'.
-3- 'Search All' for the spoilt style with 'AltSearch' and apply the intermediary style to the search result.
-3- Delete the spoilt style
-4- Create that style anew setting only the properties I actually want (prob. reusing old name).
-5- 'Search All' for the intermediary style with 'AltSearch' and apply the resurrected style.

Having documents going back to a common template I would try to repair the template. Hopefully I would get offered to apply the changes in the template when opening any document based on it next time. (This not tested.)

Good luck!

(The recent edit only addressed some typos.)

See the answer by @ajlittoz .

Another example how important a clear and unambiguous terminology is in this context and generally for software. I never had a hunch 'Standard' might be meant to mean 'Inherited' here. Supposed it was meant to mean 'Default' and never tested ("reverse engineered") it.

The problem to create an equally clear terminology 1:1 in about 200 locales will never be solved. Bet?

edit flag offensive delete link more


That's a pity... but I may have to follow these steps then. Thank you.

brandizzi gravatar imagebrandizzi ( 2017-07-04 11:43:03 +0200 )edit

I am not sure about character styles (need to try), but with paragraph styles you can reset properties to the parent style: simply erase the value in the style edit dialog.

OK, this does not seem to work. However, I would suggest another solution, see my answer.

gabix gravatar imagegabix ( 2017-07-04 13:14:23 +0200 )edit

@gabix: What do you think about an enhancement request to the effect that any property settable via a style editing dialog should get the additional option 'Inherited'.?

Lupp gravatar imageLupp ( 2017-07-04 13:44:07 +0200 )edit

Sure, such a feature (explicit) would be quite helpful.

gabix gravatar imagegabix ( 2017-07-04 15:27:23 +0200 )edit

@Lupp: I fully agree with your remark about terminology. In the same dialog, do you know the effect of Reset button? It will cancel your present changes and revert the style tab properties to their recorded values, not "reset" them to some "standard" (which ones?) values. Another exemple of bad terminology!

ajlittoz gravatar imageajlittoz ( 2017-07-04 22:43:43 +0200 )edit

Question Tools

1 follower


Asked: 2017-07-03 13:16:57 +0200

Seen: 551 times

Last updated: Jul 04 '17