Copy link to clipboard
Copied
I have a 100+ page InDesign file that has tons of overrides for the 20+ paragraph styles. How can I use Grep to clear these overrides?
I tried doing the following but it's not working:
Find / Change > Grep
Find what and Change to blank
Find Format > Style Options: Character Style - Any; Paragraph Style set to specific style
Change Format > Style Options: Character Style - [None]; Paragraphy Style set to style specified in Find Format.
Copy link to clipboard
Copied
Character styles are not considered "overrides". Can you select all, or large portions, of the text? If so, there is a clear overrides button at the bottom of the Paragraph Styles panel.
Also, there is a script that can do this:
https://www.id-extras.com/clear-overrides-throughout-document/
Copy link to clipboard
Copied
The last one in the script - for clearing Tables - should rather be:
allStories.tables.everyItem().cells.everyItem().texts.everyItem().clearOverrides(myOverrideType);
To clear texts in the overset cells.
Copy link to clipboard
Copied
I didn't know about the button at the bottom of the P style panel. thanks for that!
The method I posted was given to me by Ann-Marie Concepcion over 10 years ago. I just went back and tried it again, but this time, rather than click Change, I clicked Change All and it worked for the entired document for the loaded P style.
The script didn't work for completely. I ran it and it said overrides cleared, but as i went through the doc, there were still lots of ovverides still in place.
Copy link to clipboard
Copied
Just to clarify, when you say overrides, are you referring to BOTH manual formatting AND character styles? Again, character styles applied to text are NOT considered overrides. The thought process here is one created a character style and then applied the character style, so it was done on purpose and not a manual adjustment since it can be edited globally.
The button at the bottom of the Paragraph Styles panel will only remove the manual formatting. To remove character styles, while you have the text selected, click on None in the Character Styles panel. After you perform the two settings, any formatting left will only be from a paragraph style.
Copy link to clipboard
Copied
The document has over 30 P styles. Most of the copy is in Chinese and at one point had a different typeface applied to the p styles. However, the old typeface was still displaying for most of the document. When I drop the cursor in a paragraph, the style would display a + sign. I'd right click on the style and choose Clear Overrides and that would load the correct typeface for the style. With this being such a long document I didn't want to do this manually. So, no it wasn't a character style override, yet the trick Anne-Marie showed me with Find | Change works.