Ask Your Question
0

How do you reset styles to default?

asked 2019-03-05 13:13:40 +0200

lomacar gravatar image

In particular I am trying to reset a messed up list style to default. I know for paragraph, character and frame styles, there is a "Standard" button when you are modifying a style, but it only works for the tab you are on apparently. For some inexplicable reason the Standard button does not exist when modifying page or list styles. And I thought there was a way to just select a style or multiple styles and press a button to reset them, but now I don't see it. Is this just a big hole in the design of LibreOffice that has never been addressed?

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted
0

answered 2019-03-07 09:15:16 +0200

lomacar gravatar image

OK, well, there might not be a button to reset a list style, but I figured out the simplest way to effectively reset a default list style, I think.

Say you have a document where you modified the List 1 style and you would like to get it back to normal without doing anything crazy to your document.

  1. Create a new document.
  2. Type some text and apply the List 1 style to it.
  3. Create a new list style Untitled1 and select it in the list.
  4. In the document, select the text with the List 1 style applied.
  5. Now update the Untitled1 style so it matches List 1. (Ctrl+Shift+F11)
  6. Apply the Untitled1 style to the document text.
  7. Copy and paste that text into your existing document where you want to reset List 1.
  8. Update List 1 to match the Untitled1 style.
  9. Delete the Untitled1 style.

Kinda crazy, but it does the job.

I was slightly incorrect in my comment on ajlittoz's answer. I said that a normal copy and paste into a blank document would bring over custom style but preserve default styles. Actually, if the document is blank, it will bring over modified default styles as well, and you won't be able to undo to get back to the real defaults. The document is now "corrupted". BUT, if you type something into the blank document first and apply a default style, and then copy something with the same style name into the document, then the default style of the document will be preserved and the text you pasted in will conform. Tricky, but I guess it makes sense.

While I'm at it, here are some other interesting things to know about styles and copy/pasting between documents. If you Paste Special as HTML, it will preserve all the formatting but not import any styles. Direct formatting will be maintained and any styles that were applied will actually be converted to direct formatting! On the other hand, if you Paste Special as RTF, all styles from the source document will be brought into the target document and it cannot be undone! I learned that the hard way once. With normal paste, only the applicable styles will be imported and if you undo the paste the styles will go too. So basically, pasting as RTF seems like a bad idea.

edit flag offensive delete link more
3

answered 2019-03-05 14:20:09 +0200

ajlittoz gravatar image

updated 2019-03-06 08:31:59 +0200

The Standard button, contrary to its name, does not reset styles to some default "factory" state. Styles may be linked to each other in order to create a tree of dependency.

In the style navigator, when you right-click ion a style name and choose New, you create an exact copy of the style. This "copy" is made a direct descendant of the style and is tagged as "not modified". Then you can set various attributes to your taste. Only the changes you made are recorded as patches to the parent style.

The effect of the Standard button is to erase the patches (only for the current style definition tab as you notices), thus "unhiding" (or removing overrides on) the parent style.

If the style has no parent (it was created right-clicking outside a style name), Standard does nothing because style is original, it does not patch another one.

Using Standard in built-in styles exposes you to end up with styles equal to Default Style because all built-in styles are more or less descendants of Default Style, thus losing the "factory" patches.

This fact also explains why it is not a good idea to use Default Style for text writing. It must be reserved for setting defaults for all other styles. Standard style for writing is Text Body though LO Writer starts a new document in Default Style.

The Standard button is present in paragraph, character and frame dialogs because these styles can be hierarchically organised (see the Organizer tab where there is an Inherited from menu. For an obscure reason, page styles cannot inherit (an enhancement has been submitted against that, but be patient for volunteers to handle the question). List styles do not inherit either and there are good theoretical reasons against heritance.

Last so-called table styles are not styles in their present state, but templates. Consequently, they are outside the scope of the style machinery.

The only way to revert to factory defaults for all styles is to create a new blank document, copy all the text of the "damaged" document and Edit>Paste special as unformatted text in the new document. Then you must restyle everything, which is not an immediate task even on medium-sized documents.

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more

Comments

I don't think your answer is correct. In my experience, the Reset button only reverts modifications that you made while the window for the style you are modifying is open, whereas Standard clears all modifications ever made, meaning that the style will inherit settings from it's parent. Unfortunately Page and List styles don't have the Standard button, so I guess there is no way to reset them, except, as you say, to copy things into a new document. But that is too drastic.

Actually, if you do a normal copy and paste into a blank document, then custom styles will copy over fine but any default styles should be "reset" because they are already defined in the blank document.

lomacar gravatar imagelomacar ( 2019-03-06 03:26:53 +0200 )edit

You're right, I messed up my explanation. I meant "Standard", not "Reset". I update my answer.

ajlittoz gravatar imageajlittoz ( 2019-03-06 08:30:26 +0200 )edit
0

answered 2019-03-07 13:20:35 +0200

pierre-yves samyn gravatar image

Hi

You can do it more simply:

  1. Create a new document
  2. Right Click the list style > New
  3. Type some text and apply the new style
  4. Copy-paste to the existing document
  5. Update the style from this text

Regards

edit flag offensive delete link more
0

answered 2019-03-07 13:32:21 +0200

gabix gravatar image
  1. Create a new clean document.
  2. Create styles with the names matching ones in the existing document that needs to be fixed. Modify as necessary.
  3. Save the document.
  4. Call up the Stylist in the existing document that needs to be fixed.
  5. Choose Load styles.
  6. Tick style type(s) as appropriate (i. e. List in your case) and tick Overwrite.
  7. Choose From file and pick the new document.
  8. Save and reload the fixed document.
edit flag offensive delete link more

Comments

In this case (resetting a default list style) this is not enough. You must apply the style to text (or even an empty paragraph) in the new clean document.

pierre-yves samyn gravatar imagepierre-yves samyn ( 2019-03-07 14:55:12 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-03-05 13:13:40 +0200

Seen: 487 times

Last updated: Mar 07