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

How to automatically add horizontal line between images

Return to Member Forum

  • Author
    Posts
    • #14385393
      Jeff
      Member

      I have columns of placed graphics that I would like to add a horizontal line between each image, much like adding a vertical line between columns using Text Frame Options or the Object Style Optons dialog.

      I have looked for a script and in object styles but cannot seem to locate anything helpful.

      Any ideas would be greatly appreciated.

    • #14385395

      Between the images, but not under them? I’m trying to imagine what you’re trying to do.

      I’m guessing you mean a single horizontal line from margin to margin beneath each row of images? Or something else.

      AM

    • #14385397
      Jeff
      Member

      I am thinking of a horizontal line/rule spanning the guide column and placed in the gap between placed image frame. It should only appear beneath a placed image/object if another image/object exists.

    • #14385398

      Is there any text — title, caption, or similar — above or below the images?

    • #14385402
      Jeff
      Member

      No, the text is in adjacent columns. The images are unadorned with any other attributes other than being placed in the document.

    • #14385405
      Godfried Vonk
      Participant

      Is it an option to use a table of only 1 column and … rows to place the images in and use a cell style to place the lines between them?

    • #14385429
      Nick B
      Participant

      Hi Jeff

      If your images are anchored in a paragraph, can you use a paragraph style to add a paragraph rule above or below (you would need to use a second style for either the first or last para that you don’t want the rule in), and then use an object style to position the image using the reference point to make it sit under or above the rule? You have to watch the behaviour of the images at the top and/or bottom of each column, but that’s a general Indesign thing.

      Often the quickest way is to use a table for formatting/layout as Godfried suggested.

      Nick

    • #14385434

      Hiya Jeff,

      I haven’t been able to find a script, sorry. And you’re right, you won’t find an option in Object Styles because there’s no “Rule Above/Below” option for objects as there is for text.

      I was fooling around with this, and I think I’ve hit on a way you can quickly accomplish this with a little bit of prep work.

      You can create a text frame the height of the area where you want the top-most and bottom-most images to go, and a rough width. Then drag out an empty image frame and cut/paste it into the text frame so it’s anchored. Add a return after it, then paste the same empty frame inside, add a return, etc. Let’s say you have 4 image frames. Then create a style for the empty returns with a Rule Above or Below with the offsets you want so it appears in between the images, and apply that to the empty paragraphs.

      Now you can File > Place, select the images you want for that column, and click inside each to place them. As you adjust their heights the rule will move up/down accordingly. The rule cannot be adjust to fit different widths though … it’ll be the width of the column holding the anchored images, plus/minus any horizontal offsets.

      Would that work? I took a couple screen shots of my test, one in Normal mode and one in Preview.

      https://www.dropbox.com/s/swqg67h7hxsnyjo/rules%202.png?dl=0
      https://www.dropbox.com/s/gxf422fp5y7dv40/rules1.png?dl=0

      Then you can copy/paste that completed column elsewhere, and place new images inside the duped ones.

      AM

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