Question about defining custom paragraph styles in Pages I have been using Pages to wrote TV Show scripts, as I've found it to be less restrictive than celtx, and cheaper than final draft.

It's been working really well, I just defined a bunch of custom paragraph styles, and I select the relevant one as needed.

This doesn't take much overhead, but there are a few things I would like to be able to do.

Basically, there are certain things that should be enforced between the styles. I've attached a screenshot of a script I've written to better illustrate what I'm referring to:



In most cases, when there is the name of a character, i.e. PHIL, or CLAIRE, it should be followed by the paragraph style that you see in the screenshot. Is there someway to have it set up so that when I press enter to go to a new line while I'm entering a characters name, the paragraph style of the new line is that of the dialog?

Also, when there is a name heading at the bottom of the page, the dialog is the first thing at the top of the next page, but the name heading should be grouped with the dialog on the next page. Is there some way to enforce this? The problem is illustrated in the below image.



Thanks!
You control both those issues from the MORE tab on the Text Inspector window.

The drop-down Following Paragraph Style will determine what the next paragraph's style settings are.

For example, if your paragraph style for character names is called CHARACTERS and for dialog it is called DIALOG what you do is select a bit of text that is using the CHARACTERS style, then in the MORE tab, set the Following Paragraph Style to DIALOG.

Likewise, you set the page break parameters in the same MORE tab.

By selecting the Keep with following paragraph will force the CHARACTERS style to always be on the same page as the next paragraph. If there is enough room to display the CHARACTERS line and at least 3 lines of the DIALOG the text will start on the current page and then continue on the next page. If there isn't enough room to display the CHARACTERS line and at least 3 lines of the DIALOG, the whole group will be pushed onto the next page.



According to Apple:


  Keeping Paragraphs Together on a Page
  
  You can choose to make two paragraphs appear on the same page. The last line of the first paragraph will always remain on the same page as the beginning of the next paragraph, unless you insert a page or section break between them.
  
  This is most useful for single-line, header paragraphs that you want to keep with the topic paragraphs following.
  To keep paragraphs together on a page:
  
  
  Click the paragraph that you want to keep with the paragraph following it.
  Click Inspector in the toolbar, click the Text button, and then click More.
  Select “Keep with following paragraph.”
  


If you want to keep the entire paragraph on the same page (so, not have it break across pages, you select Keep lines together.


  Keeping an Entire Paragraph on the Same Page
  
  You can make all the lines in a paragraph always appear on the same page.
  
  To avoid breaking a paragraph across pages:
  
  
  Click the paragraph whose lines you want to remain together.
  Click Inspector in the toolbar, click the Text button, and then click More.
  Select “Keep lines together.”
  


Once your style is set, you then either create a new paragraph style or you redefine the existing paragraph style to reflect the changes you just made.