Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Keep command for directory

Return to Member Forum

  • Author
    Posts
    • #83768
      Neil Shand
      Member

      Struggling to get my head round the keep command.

      I’m datamerging into a Directory template – data looks like this although not all fields are always present
      (Some have a section header above, some have no URL etc)

      HILLARYS BLINDS LTD
      Colwick Business Park, Colwick, Nottingham NG4 2JR
      Tel: 0115 9617425
      http://www.hillarys.co.uk

      Ideally I’d like to keep this data together – so each column starts with a new entry.
      I don’t care about it being ragged at the bottom of the columns.
      Been messing around with keep but when I merge they’re still splitting and I’m out of time.

      Any assistance greatly appreciated

    • #83769
      Ari Singer
      Member

      Make a separate paragraph style for each kind of entry (such as’section head’, ‘name’, ‘address’, ‘tel’ and ‘website’), Then apply the following keep settings for each paragraph style respectively.

      For ‘name’: ‘Keep with Next: 2 Lines’ and check ‘Keep Lines Together’ and select ‘All Lines in Paragraph’.

      For ‘address’: check ‘Keep with Previous’, ‘Keep with Next: 1 Lines’ and check ‘Keep Lines Together’ and select ‘All Lines in Paragraph’.

      For ‘tel’: check ‘Keep with Previous’ and check ‘Keep Lines Together’ and select ‘All Lines in Paragraph’.

      For ‘website’: check ‘Keep with Previous’ and check ‘Keep Lines Together’ and select ‘All Lines in Paragraph’.

      For ‘section head’: ‘Keep with Next: 3 Lines’ and check ‘Keep Lines Together’ and select ‘All Lines in Paragraph’.

    • #83770

      I’ve never used data merge, but may be able to help with your keep together options.

      For the first line, tell it to start a new column and keep with the next line.
      For the second line, tell it to keep with the previous line AND the next line
      Do the same thing for the third line.
      For the last line, tell it to only keep with the previous line.

      The only problem is that some have section headers or no URLs. I think you’d have to have separate style sheets for the first line and last (i.e., the first line following a section head would not start a new column, but instead would be set up for keep with previous AND next line. And the last line (replacing the URL), would be just to keep with previous.

      I don’t know if you can automate that or not. If not, for those with URLs and sections heads, you would have to apply the different styles.

      EDIT: I assume you are using paragraph style sheets for all entry lines.

    • #83773
      Neil Shand
      Member

      Brilliant, thanks guys!!!

      I’ll give that a crack

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads