Overview of Conditional Keeps
The Typefi Conditional Keeps module enhances your ability to control paragraph breaks by adding conditional rules to InDesign Keep Options.
- The number of options are greater than the default InDesign Keep Options.
- Conditional Keeps supports greater functionality, as keeps are specified for each paragraph style in relation to one or more other paragraph styles.
- These extra features are not extensions to the paragraph styles themselves but are implemented by using local formatting to override the paragraph style settings.
Six Conditional Keeps are provided
- Keep With Next Paragraph If …
- Keep With Next Paragraph If Not …
- Keep With Previous Paragraph If …
- Keep With Previous Paragraph If Not …
- Keep With Next If Previous Not …
- Keep With Previous If Next Not …
How do Conditional Keeps work?
InDesign paragraph styles offer a limited number of Keep Options. You can set a paragraph style to keep with next or with previous paragraphs.
In a Typefi workflow, you can identify a paragraph style for which you want to apply a conditional keep and then list one or more paragraph styles for which the conditional keep applies.
For example, you can set a paragraph styled as ‘Normal’ to keep with the next paragraph when this next paragraph is styled as ‘Ordered List’. When the paragraph styled as ‘Normal’ is followed by a paragraph styled in another paragraph style, the keep option won’t apply.
How to configure Conditional Keeps in a workflow
Conditional Keeps are defined in a table in the InDesign template and are implemented by an Event Script. You can find the table on a “Conditional Keeps” master page in your template. If your template does not have the configuration table, see Adding a Configuration Table.
The Conditional Keeps script runs at the SpillEnd event. Your workflow should be configured to run SpillEnd scripts, and the script should be placed in the SpillEnd folder on the InDesign server.
When a paragraph style is part of a group, the vertical bar character ‘|’ is used to separate the group name and the paragraph style name.
‘Normal’ identifies the paragraph style named ‘Normal’.
‘General|Normal’ would identify the paragraph style ‘Normal’ in the group ‘General’.
Make sure you do not insert any space characters before or after the vertical bar character.
Adding a Configuration Table
- Create a new master page in your InDesign template. Name it ‘Conditional keeps’ with whatever prefix your template uses (Z, X, or XC usually).
- Download ConditionalKeepsTable.idms (attached below).
- Go to File and then Place.
- Browse to the ConditionalKeepsTable.idms.
- Paste the snippet on the ‘Conditional keeps’ master page. A ‘Conditional keeps’ layer will be created.