Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Grep To Clear Overrides

Engaged ,
Apr 07, 2025 Apr 07, 2025

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.

 

Screenshot 2025-04-07 at 1.34.35 PM.png

 


It's only an island if you look at it from the water.
TOPICS
How to
78
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2025 Apr 07, 2025

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/

 

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2025 Apr 07, 2025

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. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 07, 2025 Apr 07, 2025

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. 


It's only an island if you look at it from the water.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2025 Apr 07, 2025

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. 

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 07, 2025 Apr 07, 2025
LATEST

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. 


It's only an island if you look at it from the water.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines