Skip navigation
Currently Being Moderated

Way to keep paragraphs together?

Aug 30, 2012 2:54 PM

Tags: #cs5

I'm working on a large honor roll of donors and volunteers. I need a way to keep lines of text together when they are separate paragraphs.

 

Category name

Category description

Name of person 1

Name of person 2

Name of person 3

Name of person ...

 

This formatting repeats throughout the listing. I need a way to keep the category name, description and at least three individuals together without having to insert a column break. I also need to make sure that at least three individual names stay together if it breaks to another column. I understand how I could do this if all of these were in one paragraph, but is there a way to keep lines together that are separate paragraphs?

 

I've looked at paragraph styles, character styles, etc., but haven't stumbled on the right way to do this. Appreciate any help you can provide.

 
Replies
  • Currently Being Moderated
    Aug 30, 2012 2:59 PM   in reply to limback

    Keep options...

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2012 4:10 PM   in reply to limback

    What Peter said:

     

    Screen Shot 2012-08-30 at 4.09.26 PM.png

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 6:40 AM   in reply to limback

    limback wrote:

     

    Category name

    Category description

    Name of person 1

    Name of person 2

    Name of person 3

    Name of person ...

     

    This formatting repeats throughout the listing. I need a way to keep the category name, description and at least three individuals together without having to insert a column break. I also need to make sure that at least three individual names stay together if it breaks to another column.

    What is supposed to happen when you have four, or five, names and it needs to break? Which column gets the three names? You are going to probably need at least two paragraph styles for the names, one with a keep with next option or a keep with previous option, and one without so that you can control where you want the break to happen. There's really not a way to apply these automatically unless every listing has the same number of paragraphs. It would be simpler, and possible to automate, if you wanted to keep ALL of the lines in a listing together and leave a blank space at the bottom of the column if there was not enough sapce, but I sense this isn't that sort of listing.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 7:03 AM   in reply to limback

    So you are saying you want category name, category description, and at least three names to remain at the bottom of a column, or the whole thing should move?

     

    If I have that right you want one style for the category name, with a keep option to keep with next, and a next style that is the category description. The category description style also needs a keep with next, and a next style, which should be name style 1. You need two more name styles, both based on name style 1. Name style 1 has a keep with next optioin and name style 2 as the next style, name style two also has the keep option, but uses name style 3 as the next style, name style 3 has no keep option and sames tyle for next style.

     

    Applying the category name and descriptions styles to category names and descriptions should be self evident, I think. You apply Name style 1 to the first name, name style 2 to the second, and name style 3 to ALL other names in the list. You can apply all of these styles correctly to an entire category by clciking the the category name, then hold the shift key and click inthe last name in the category, selecting all of the paragraphs (or at least part of all the paragraphs) in a category. In the Paragraph Styles panel right click on the Category Name style, then choose Apply Category Name and Next Style, and that block will be styled.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 7:22 AM   in reply to limback

    Perhaps you could replace the paragraph returns separating your names with forced line breaks (Shift + Enter/Return). These could then have a paragraph style that specifies that three lines must be kept together at the beginning and at the end. Your category name and category descriptions could have styles that keep with the next one line, and category name would also specify that all lines are kept together.

     

    If you need to use a GREP search to replace the returns, it could look like this: Find what: (.+)\r(?!\r) Change to: $1\n Find format and change format would both be your person name paragraph style.

     

    I agree that this is not quite as ideal as one might like (using the forced line breaks instead of proper paragraph returns), but it seems to work fine with my simple trial.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 8:29 AM   in reply to Peter Spier

    If indeed no listing should break across a boundary, a table with one listing per cell could work, taking advantage of InDesign's fabulously magical inability to break cells across boundaries.

     

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     

    Peter Spier wrote:

     

    So you are saying you want category name, category description, and at least three names to remain at the bottom of a column, or the whole thing should move?

     

    If I have that right you want one style for the category name, with a keep option to keep with next, and a next style that is the category description. The category description style also needs a keep with next, and a next style, which should be name style 1. You need two more name styles, both based on name style 1. Name style 1 has a keep with next optioin and name style 2 as the next style, name style two also has the keep option, but uses name style 3 as the next style, name style 3 has no keep option and sames tyle for next style.

     

    Applying the category name and descriptions styles to category names and descriptions should be self evident, I think. You apply Name style 1 to the first name, name style 2 to the second, and name style 3 to ALL other names in the list. You can apply all of these styles correctly to an entire category by clciking the the category name, then hold the shift key and click inthe last name in the category, selecting all of the paragraphs (or at least part of all the paragraphs) in a category. In the Paragraph Styles panel right click on the Category Name style, then choose Apply Category Name and Next Style, and that block will be styled.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 8:45 AM   in reply to limback

    Ah, yes, that would be a problem.

     

    It’s getting pretty unwieldy now, but you could do as Peter Spier suggested then create similar styles to go at the end that keep with the previous paragraphs. Then you could use a GREP search to apply these.

     

    It’s not a very elegant solution, and it certainly feels like there should be an easier way to do it.

     

    I’m on CS4 which doesn’t have the keep with previous option, so I can’t try it out.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 9:57 AM   in reply to limback

    limback wrote:

     

     

    Peter - I think that would keep the group at the beginning of the listing, but not at the end. So if I have six names in my list and I have space for four at the bottom of the column, it would leave just two hanging at the top of the next column. I actually would need it to push one extra name to the top of that column too.

    Well, see, you weren't clear about that earlier, and that's why I asked about cases of 4 or five names where it would be impossible to have 3 names in both columns.

     

    Sounds like you worked something out, but I can't tell what it is (I don't think Peter G's idea for a table will work if there are enough names that they occupy two columns). A fourth name style could be added that has a keep with previous option, and that style applied to the last three names, but you'd have to do that manually. I think. I don't know a way to automaticall select the last three names in the group.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 10:13 AM   in reply to Peter Spier

    A fourth name style could be added that has a keep with previous option, and that style applied to the last three names, but you'd have to do that manually. I think. I don't know a way to automaticall select the last three names in the group.

     

    As I suggested above, you could use a GREP search to apply these styles. Something like:

     

    Find what: (.+\r.+\r.+\r)(?=\r)

    Change to: $1

    Find Format: Paragraph Style: [Person name style]

    Change Format: Paragraph Style: [Last three people style]

     

    Is this what you did, limback?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 10:27 AM   in reply to Graham van de Ruit

    Graham, I may be misreading the GREP query here, but it looks to me as if it depends on having a blank paragraph between the last name and the next category name. I'm not sure you can rely on that being there, and as a mater of good typesetting it probably shouldn't be. In a case where that blank paragraph ends up at the top of a column it will leave a blank line where there shouldn't be one. In my opinion it's better form to use Space Before on the category names.

     

    That said, IF the blank line already exists in the text, I would day go for it and use it, then run another search to remove empty paragraphs.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2012 10:37 AM   in reply to Peter Spier

    Ah, true. I did think of that at some point, then forgot. So it could depend on the workflow and how the text is generated (whether that blank line is there or not).

     

    I had a similar problem with a project of my own recently, except I wanted entire listings to remain together (they’re not very long). I achieved this by putting each listing into an anchored text frame. (The text was all generated with a script—I wouldn’t like to have to do this manually.) I was using the Space Before there as well, so I should have remembered.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points