Clear overrides selectively
Learn / Forums / General InDesign Topics / Clear overrides selectively
- This topic has 5 replies, 2 voices, and was last updated 5 years, 6 months ago by Clark Kenyon.
-
AuthorPosts
-
-
October 9, 2018 at 10:52 am #110804Clark KenyonParticipant
Is it possible to clear some paragraph overrides, while leaving others in place?
-
October 9, 2018 at 10:54 am #110805Michel Allio for FRIdNGEParticipant
Yeap! …
-
October 9, 2018 at 1:19 pm #110823Michel Allio for FRIdNGEParticipant
… but could you be a little clearer? What paragraphs?
-
October 9, 2018 at 1:53 pm #110824Clark KenyonParticipant
It’s complicated. I am using the method of creating two numbered list styles, where the first level list is not actually numbered, but since it is formatted to “start at 1”, following paragraphs, the real numbered lists (level 2), will automatically restart their numbering. And this book is full of them. I would do this, but my experience has been that the numbering doesn’t always restart as it should in an ePub export. So I would have to export a separate ID doc for the ePub and go through and override the style of every numbered list to restart at 1.
So assume I did these overrides in the original ID doc. Since it’s a print layout, certain other overrides have to be employed for the sake of copyfitting, e.g., changing the keep options on a single paragraph to properly fill out a page or break at a different point on a page, increasing tracking to improve copyfitting. These overrides I would want to remove before the export to ePub as in an ePub such considerations as copyfitting are irrelevant and could affect the flow of the text.
So the question is, how would I clear all overrides but the overrides to the numbered list style? -
October 9, 2018 at 4:41 pm #110825Michel Allio for FRIdNGEParticipant
It’s simplistic! ;-)
var myParas = app.activeDocument.stories.everyItem().paragraphs.everyItem().getElements(),
P = myParas.length, p;
for ( p = 0; p < P ; p++) if ( myParas[p].appliedParagraphStyle.name != “NumberedListStyle” ) myParas[p].clearOverrides();Best,
Michel, for FRIdNGE -
October 9, 2018 at 8:13 pm #110828Clark KenyonParticipant
Thanks!
-
-
AuthorPosts
- You must be logged in to reply to this topic.