I have a project with a collection of poems. Each poem is a single document. In the compiled output each poem will start on a new page. So far so good. Many of the poems are in the format of stanzas, with a blank line between each stanza. I want to avoid having a stanza span multiple pages. So I defined a Scrivener style called PoemStanza, and ticked the ‘keep with next’ option in this style. When compiled to Word/doc this works fine, and Word sees a style with the ‘keep with next’ option set.
My problem is that I have set up an overriding style for PoemStanza in the Compile step:
but now when Word sees the PoemStanza style, the ‘keep with next’ option is no longer set - and there is no way it appears to set this explicitly in the Comple definitions for the PoemStanza style.
Is there any way to fix/achieve control over keeping the lines in a stanza together on a single page and also override the style for those lines (so I can adjust the font/margins etc for the poems in the print stage with different choices for different compile targets)?
(I guess I can run some VB in Word to fix up the PoemStanza style definition but that’s an extra manual step I’d like to avoid).
Many thanks
With the focus in the text editor in that compile styles pane, you can toggle the Keep With Next setting through the main menu just as when working in the main project window.
You can also in future create a new override style based on an existing project style by choosing that style from the “+” dropdown menu. Then you can edit the things you want to change while leaving other settings like KWN unaltered.
1 Like
I’m sorry, I don’t see any way to toggle a Keep with Next setting in the compile styles pane text editor.
Did you mean use the Format→Paragraph option on the main menu bar at the top of the screen when the compile styles pane has focus? I get this when I try that:
I presume it’s showing the version of the main Scrivener PoemStanza style rather than the ‘override’ version in the compile process - as it shows ‘keep with next’ set (but not changeable).
The second method (creating a new override style based on an existing project style) works perfectly though - many thanks - problem solved.
From the screenshot it looks like the focus is over in the lefthand sidebar where “Styles” is selected. Make sure you’ve clicked into the editor area on the right where you can adjust the formatting for the selected style. When the editor has focus, you should be able to access most of those commands in the main Format menu, including toggling the Keep With Next settings.
2 Likes
Yes, that did it - I did not have focus on the text in the editor area (though you can’t actually edit the text itself). Brilliant - many thanks.
1 Like