Anchored Objects with text wrap, need vertical space

Hi.  I'm a fairly new InDesign user and have just this past week learned about anchored objects, threading text frames, numbered lists, and some other fun options. So far InDesign has done most everything I need fairly elegantly. However, I have not been able solve one issue.
In my book I have numerous pages that have this issue; I'll just describe one case. On this page there are 4 graphics running down the right side of the page. These are not anchored graphics. They do have text wrap defined on the left side and bottom. There is text that wraps lovely on the left.
Each of these four graphics has a specific paragraph it needs to top align with. However, the text it aligns with may not take up as much vertical space as the graphic does. When I anchor each graphic with the paragraph it needs to align with, the four graphics overlap each other.
At the moment, to make it look right, I have placed each graphic individually and added a blank paragraph above each paragraph of text that should align with a graphic and use the Space Above of each blank paragraph to have it align with the graphic.
I'm not even sure what to search to try and solve this. I looked briefly into compound paths, but that didn't look like it would help.
I hope this is clear and thank you for any assistance at all.
Andrea

No problem. Click your cursor somewhere in the paragraph that ought to be aligned with the next image down, then run this Javascript.
It's not entirely accurate, as it uses the font size to do a minimal adjustment where it actually should use the font's cap height -- but you cannot get to that through scripting. This final adjustment is necessary because ID does know the baseline, and your first line ought to dip just below this to have the top of the first line aligned to the top of the image.
//DESCRIPTION:Align paragraph with image.
// Jongware, 15-Jul-2010
if (app.selection.length == 1 && app.selection[0].hasOwnProperty ("baseline") && app.selection[0].paragraphs[0].index > 0)
     // find nearest image on the right
     ypos = app.selection[0].paragraphs[0].lines[0].baseline;
     pg = app.selection[0].parentTextFrames[0];
     while (1)
          if (pg instanceof Character)
               pg = pg.parentTextFrames[0];
          if (pg instanceof Spread || pg instanceof Page)
               break;
          if (pg instanceof Document || pg instanceof Application)
               exit(0);
          pg = pg.parent;
     img = pg.allGraphics;
     dist = 999999;
     nearest = null;
     for (i=0; i<img.length; i++)
          if (img[i].geometricBounds[0] > ypos && Math.abs(img[i].geometricBounds[0] - ypos) < dist)
               dist = Math.abs(img[i].geometricBounds[0] - ypos);
               nearest = img[i];
     if (nearest == null)
          alert ("no image found nearby!");
     else
          prevm = app.activeDocument.viewPreferences.verticalMeasurementUnits;
          app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
          top = nearest.geometricBounds[0];
          ypos = app.selection[0].paragraphs[0].lines[0].baseline;
          if (ypos < top)
               app.selection[0].paragraphs[0].spaceBefore = top-app.selection[0].pointSize-app.selection[0].parentStory.paragraphs.previousItem(app.selection[0].paragraphs[0]).lines[-1].baseline;
          app.activeDocument.viewPreferences.verticalMeasurementUnits = prevm;
This image shows three paragraphs aligned with their respective images (it won't work on the first paragraph, but that ought not to be necessary anyhoo).

Similar Messages

  • Anchored objects and text wrap

    HI, I have some large images that I want to anchor to the top of the page extending to the off sides to the spine. I've tried and tried with the 0 space paragraph, etc to get the text to wrap properly. It's usually just a fragment of the last sentence prior to the image that runs under the image (and there is no alert that it IS under there!
    Using CS5.5
    Thoughts?

    The issue is that the images are always supposed to be hugging the top or bottom and outer margins. when the image is at the top or say is a 2 page spread aligning at the top margin how can I anchor it to a paragraph content?  The big issue is when the  line wrap only partially and there is no visual cue that something is wrong.  I have tons of images in this multi doc ms that need to hang around the attending subject matter BUT with a majority of the images starting at the top margin, it is dangerous to anchor them becasue of the mis-wrap. Ha, I even thought I could put a non anchored empty text frame under the image.  That fixes the flow under the icture issue - until the image moves.
    Thoughts?   Workarounds?

  • Text Wrap disables vertical justification

    Hi,
    I am using InDesign CS3 5.0.4 on Windows XP Pro SP3.
    I have the following problem: I have a text frame with vertical centrered text in it. Now when I put some object with text wrap near it, the vertical justification is just ignored (also blanked out in text frame options) and the text justifies at the top of the text frame. I think this is very annoying and I don't understand why this works the way it does. I remember this problem also ocurred in QuarkXPress but I hoped Adobe would do it better :)
    I hope someone can explain this to me. Thanks.
    Frank

    How near is near? If the object is too close to the text for comfort it's going to need text wrap or there'll be a
    collision. And vertical justification will be lost.
    Does the object span the full depth of the text frame? If so, just ignore text wrap, narrow the text frame and take its
    edge away from the object. If the object cuts into the text frame so some lines are wrapped and others are not, then the
    vertical justification will be lost.
    You could fiddle it by eye by breaking the text into three frames, with the text in the top frame aligned to the bottom,
    the text in the middle and bottom frame aligned to the top. Then align the text in all the frames to the same baseline
    grid (you can set a grid for each frame), and jiggle the depths appropriately.
    k

  • How do i set text in a object so that object expands with text and has even space on both sides of the object in illustrator cc?

    how do i set text in a object so that object expands with text and has even space on both sides of the object in illustrator cc?

    if you see all the different panel. I past the info in and have to manually expand the width of every panel. Is there a way of pasting the text in and the panel moves to the right with so that there is an even space on both sides of the blue panel?

  • Anchoring objects to text in InDesign CS5.0

    Hi,
    I'm trying to convert a heavily styled book with lots of photos and charts to Kindle. When I export to Kindle, it's a mess. Is it possible to anchor objects to text in CS5? I know CS5.5 can do it, but I'm having a hard time figuring it out in CS5.
    Any helpful hints for making this conversion as easy as possible ... and without knowing any HTML would be greatly appreciated.
    Thanks!

    I highly recommend Elizabeth Castro's ebook to learn the basics of creating EPUB files—"EPUB Straight to the Point"
    Formatting ebooks - EPUB Straight to the Point
    Here is how she suggests you do it in InDesign CS5:
    Place the cursor in the flow of your book where you want to illustration to go (at the beginning of a paragraph).
    Press Return to create a separate paragraph for the illustration
    Apply an Illustration paragraph style. She suggests setting autoleading so the paragraph expands to the height of the illustration.
    Choose File > Place to place the illustration in that paragraph.
    If you need a caption, press return to create a new paragraph and apply the Caption style.

  • Placing multiple page pdf as anchored objects in text

    I am trying to place a multilple page pdf as in anchored object in text. Ideally I'd like it to flow in and size to the column width. Is this possible? Im running ID 5.5 on windows 7. Ive tried the script for MultiPageImporter-but I cant seem to get it place the pdfs in text. Any ideas?

    If you use the mutlipage importer to import the PDF into a New Document that has the same width as your text frame (perhaps a bit smaller).
    Then Export that to PDF from InDesign.
    You should now have a smaller PDF.
    Then in your document you want to place that PDF choose File>Place and select the New PDF you created.
    Make sure the Show Import Options is ticked.
    Import all the Pages.
    You now have to manually place the PDF into the document into the text to anchor them.
    If you need to do this automatically I suggest visiting the Scripting Forum - forums.adobe.com/community/indesign/indesign_scripting

  • ID CS5: Problem with Text Wrap being Forgetful :(

    I am having a problem with text wrap. Whenever I open this INDD file I am working on now, some of the images shift from having what I call "actual" text wrap to having "false" text wrap. "Actual" text wrap *actually* wraps the text around the image as it is supposed to; "false" text wrap says that "Wrap Around Bounding Box" is applied to the image yet no text is wrapped. After opening the file, making sure to unset and reset the text wrap on each offending image to show an "actual" text wrap WITHOUT changing layer order, saving the file, closing, and reopening, some images have "false" text wrap again! This is a 77 page document with images on every page.
    Another occurrence is if I largely change the flowed text. If I must remove a paragraph on page 7, for example, then the "actual" text wrapped images on page 10, 12, and 18 change to "false" text wrapped images and I have to reset the text wrap on each image. There are often images in between offending ones that DO NOT change, but it doesn't seem to be the same ones each time. So once image A, C, and D will change to "false" text wrap, while B, E, and F are fine; the next time, A, B, and F are wrong and the others are fine. This is driving me crazy as I have never in 8 years of using InDesign encountered a problem using Text Wrap. Please note:
    Ignore Text Wrap IS NOT selected.
    The text box IS below the images.
    The copy is flowed throughout the document.
    Preferences>Composition>"Text Wrap Only Affects Text Beneath Selected"" DOES NOT FIX IT.
    "Wrap around bounding box" IS showing as selected for the image/images.
    There is NO CLIPPING PATH / PHOTOSHOP PATH / ALPHA PATH on these images.
    The images / text box order is not changed between being correct and being incorrect.
    Anyone else with this trouble? And, if so, how did you fix it? Thanks,
    A. Henson
    InDesign 7.0.3
    iMac i7
    8GB RAM
    OS X 10.6.6

    @henson26,
    I emailed you offline to see if you can provide me with an example file that shows the problem.
    Matthew

  • At my wits end: Placing anchored object inline with text & wrap

    Granted I never learned InDesign the way I should.  Once upon a time I fared well with Aldus Pagemaker.  But I've just spent the last two hours trying to resolve a massive gap in my knowledge and I can't do it.  I'm exasperated and desperate for help.
    What I want to do:  I have a tech manual with lots of text and need to place graphic objects in a way that the text will wrap around the object and if I need to edit the text, the graphic will move with where I inserted the graphic.
    What happens:
    1.  I have a text frame with text.  I place the cursor at the beginning of the paragraph and click File> Place, thereafter choosing a graphic.
    2.  Using the selection tool, I click the graphic and then click the icon "wrap around bounding box".
    3.  The text shifts a teeny bit but does not wrap around the object.
    4.  Object is, however, inline/anchored, with text.
    OR
    1.  With nothing selected I click File> Place, thereafter choosing  a graphic.
    2.  I place the graphic on the lower part of the page over a blank space.
    3.  I move the graphic over the text and then click the icon "wrap around bounding box".
    4.  The text flows but when I edit the text, it does not flow around the graphic.
    Conclusion:
    I am retarded.  I even went through Lynda's example here:  http://www.adobe.com/designcenter/video_workshop/?id=vid0073   I was able to place my object in her document and watch the text flow around the text wrapped graphic.
    I read the help docs (I'm a big fan of reading).
    The only thing I can think of is I've set my text box up wrong or I have no idea.  I'm so frustrated I am seriously almost in tears.
    My example document (I'm under an NDA and can't release my original document, but I duplicated what I've done in the previous one) is here for anyone who can tell me what I've done wrong.  Thank you kindly.
    http://www.xandria.ca/test01.indd

    Alrighty, this is bizarre.  I couldn't leave well enough alone and I'm still trying to hammer this one out.  But I just followed my first method described in the original message and then...
    I clicked and dragged the edge of my graphic and the text began to flow around it and it moves with the text.
    What on earth?
    While I can do this for each image, I'd rather not.  What am I still doing wrong, although I seem to have a half baked workaround.
    Cheers.

  • Problem with text wrap on anchored objects

    Hi, I'm using CS5 on a Macbook Pro OS 10.6.8
    I'm laying out a multiple page biographies section of a conference program and I need to anchor the photo boxes to the beginning of each new bio. I made a photo box and assigned it the proper text wrap attributes. But when I copy and paste the photo box into the text, it sits on the line of type and the text is not wrapping properly at all. I've included a screen shot to illustrate the problem. I want it to wrap as shown in the right column. But what I get is what you see in the left column.
    Any help would be greatly appreciated.
    Diane

    But then I'd have to do that every time I place hundreds of these boxes, right? Instead I've created a style sheet for the paragraphs with with boxes to have a 6 line drop cap and that seems to be working. Probably a wierd work-around. I'm open to another more straightforward method of getting the anchored box to sit within the copy every time I paste it in.

  • How does one Float a Graphic Object with Text? (Don't want the Graphics Frame stationary)

    I now know just enough InDesign to be dangerous.  So, help me from blowing myself up.
    SITUATION:
    I desire a Callout/Quote Box to emphase a quote--to separate it from the flowing text of the manuscript.  So, I created a curved-edge rectangle (graphic object) to make the "box", then filled it with the quoted text).  All was well in the land of Adobe Novice UNTIL I deleted some text above the newly-created graphic box/quote box.  I need the graphic to flow with (stay embedded in; hold its position in) the text outside the manuscript, not say anchored to page.
    QUESTION:
    Is there a way to have a graphic object which is placed in a manuscript flow with the manuscript text, so that it "holds its position" relative to the text.  For example, if I delete a paragraph of text above the graphic object, I want the graphic object to adjust accordingly.
    ASIDE:
    I am open to any other tricks or methods others use to insert callout or quote-boxes within the flowing text of a manuscript/book.
    Thanks in advance.

    Create your callout. If you will use it often, you can actually grab it and drag it to the desktop for reuse in any Document; it becomes an InDesign Snippet (.inds).
    Copy the callout graphic, insert your text curser into the text frame where you want the callout. You've just Anchored an Object.
    This is where you want to read up on Anchored Objects. You can highlight and baseline shift the callout (often necessay for anchored objects) , change leading, apply text wrap with standoff (you would select it with the selection tool for this), all of which are way beyond what I have ever tried, but managed it in less than 3 minutes. Basically treat it as a selection of type. The challenges will be line breaks, keep with, gosh knows.
    Bob mentioned CS5.5 has more friendly features, which I am not familiar with, and are beyond quick replies.
    Work through the above at your discretion, ask more DIRECT questions as needed, and you will get help. 

  • Problem with interspersed response -- opening vertical space fail

    mail.app version 5.3 (1283) on MacOS 10.7.5
    I can top- or bottom- post and do so when appropriate, generally in very simple email conversations. 
    BUT, for more complex threads, I commonly want to open some space between each paragraph of each incoming message to insert my response.  (Incoming paragraphs are typicallly separated by a blank line or two.)  Mail.app provides horizontal bar quoting indicators at the left to mark the progress of the thread over many exchanges, though this mechanism often seems not to be very well supported by the email clients of my correspondents. (I often end up increasing the quoting manually to restore a semblance of the correct quoting of a thread.  Oh, well...)
    I've been using mail.app only since I installed 10.7, shortly after it was released.  With varying success, especially when using formatted as opposed to plain text. Exchanges with some people work more or less flawlessly.   The most common difficulty: I have trouble opening up vertical space below an incoming, quoted paragraph in which to type my response to that para. Up until today, I've always been able to find a way, by exeriment of where I put the cursor, using shift-enter instead of enter, etc, etc.
    But for a message I just received, I cannot.  Every attempt I make to open some vertical space results in ... trouble.  If I put the cursor on a blank line between incoming paragraphs and command "decrease quote level" I get 8 inches [!] or so of quoted vertical space, followed by 8 more inches or so of unquoted vertical space, followed by the following paragraph and the rest of the thread, apparently intact.  That's not right!  
    Fortunately, I can undo and resume ... to do what?  I get a similar result if I try placing the cursor that line and hit "enter".  Or "Enter".  Or "shift-enter".
    Yeah, it looks like I've opened 10 inches in which to insert my response to the first paragraph, but first I need to get rid of most of the inserted quoted vertical space -- an impossible task, as far as I can see.  If I put the cursor on the first line of unquoted space and backspace, the 10 quoted inches stay the same and characters delete from the end of the previous quoted parag.
    What's going on?   Are there any methods of recovering some semblance of normal operation so I can answer this incoming message? (OK, I've given up and responded by top-posting.)   I note that I can view the source of the incoming message, but I see no way to view the source of the response, to see what exactly is going on. What is actually being inserted in the formatted text source that creates the mess I observe?
    In this case, viewing the incoming source seems to reveal only one apparent client name: Zimbra.   Is that a client?  Could Zimbra and mail.app have ... issues with each other?
    Are there any mail.app add-ins that might help?   Work-arounds?   (Yeah, probably converting to plain text would solve the problem, but that has other issues.)   Any applicable help or articles?
    Am I missing anything incredibly obvious?
    TIA

    mail.app version 5.3 (1283) on MacOS 10.7.5
    I can top- or bottom- post and do so when appropriate, generally in very simple email conversations. 
    BUT, for more complex threads, I commonly want to open some space between each paragraph of each incoming message to insert my response.  (Incoming paragraphs are typicallly separated by a blank line or two.)  Mail.app provides horizontal bar quoting indicators at the left to mark the progress of the thread over many exchanges, though this mechanism often seems not to be very well supported by the email clients of my correspondents. (I often end up increasing the quoting manually to restore a semblance of the correct quoting of a thread.  Oh, well...)
    I've been using mail.app only since I installed 10.7, shortly after it was released.  With varying success, especially when using formatted as opposed to plain text. Exchanges with some people work more or less flawlessly.   The most common difficulty: I have trouble opening up vertical space below an incoming, quoted paragraph in which to type my response to that para. Up until today, I've always been able to find a way, by exeriment of where I put the cursor, using shift-enter instead of enter, etc, etc.
    But for a message I just received, I cannot.  Every attempt I make to open some vertical space results in ... trouble.  If I put the cursor on a blank line between incoming paragraphs and command "decrease quote level" I get 8 inches [!] or so of quoted vertical space, followed by 8 more inches or so of unquoted vertical space, followed by the following paragraph and the rest of the thread, apparently intact.  That's not right!  
    Fortunately, I can undo and resume ... to do what?  I get a similar result if I try placing the cursor that line and hit "enter".  Or "Enter".  Or "shift-enter".
    Yeah, it looks like I've opened 10 inches in which to insert my response to the first paragraph, but first I need to get rid of most of the inserted quoted vertical space -- an impossible task, as far as I can see.  If I put the cursor on the first line of unquoted space and backspace, the 10 quoted inches stay the same and characters delete from the end of the previous quoted parag.
    What's going on?   Are there any methods of recovering some semblance of normal operation so I can answer this incoming message? (OK, I've given up and responded by top-posting.)   I note that I can view the source of the incoming message, but I see no way to view the source of the response, to see what exactly is going on. What is actually being inserted in the formatted text source that creates the mess I observe?
    In this case, viewing the incoming source seems to reveal only one apparent client name: Zimbra.   Is that a client?  Could Zimbra and mail.app have ... issues with each other?
    Are there any mail.app add-ins that might help?   Work-arounds?   (Yeah, probably converting to plain text would solve the problem, but that has other issues.)   Any applicable help or articles?
    Am I missing anything incredibly obvious?
    TIA

  • Anchored objects behind text

    Is there a way to make an anchored box sit behind text? I have a section title with section numbers. I would like to place a piece of art behind all the section numbers. The box always comes out on top. I can create a new paragraph style with autonumbering for the section into it, place it over the art, group it, and then anchor it. The only problem is, now the section numbers won't show up in the running head. Any ideas? I'm using CS3. I used to be able to do this in FrameMaker. Thanks.

    Can't be done with anchored objects - sorry.
    But you can convert your text to a table - and that can put a background in there.
    OR
    Use Paragraph Rules to highlight a line of text or a pargraph of text
    http://www.theindesigner.com/blog/episode-49-paragraph-rules-rule

  • Images as anchored objects in text

    I use CS4 on a Mac. I'm working on a book with photos of my art in the text. Before I've used Place to insert all images. (I use Picasa to straighten and crop my photos, they are all jpgs in high resolution, the photos are in a separate folder on my Mac).
    To make the pictures anchored objects in-line, I first place the graphic, then according to the instructions I cut, then paste in text, select image, then set the anchored object above the text etc.
    http://www.adobe.com/designcenter/video_workshop/?id=vid0073
    My question is what happens to the image when you cut and paste. Does it retain it's placed format, like file size and resolution? It seems my InDesign file should be bigger with the added images.
    Should I be worried?

    When use File>Place to insert an image to InDesign - InDesign creates a low-res thumbnail to act as a "placeholder" to the original image.
    It's very cumbersome on the computer when viewing the images in full resolution within InDesign. As it could be displaying 10mb for each image and 10 images would 100 mb per page, quite a lot to render; for example.
    Anchoring objects has no bearing on the file size (well maybe a little).
    The file size and resolution is not affected when you place an image. But the Resolution is affected if you SCALE the image any amount.
    If you go to the Window>Info panel and select an image then you can see TWO options ACTUAL and EFFECTIVE PPI.
    Actual refers to what the original PPI of the image is (ppi = pixels per inch and refers to resolution)
    And Effective shows the the PPI after the image has been scaled.
    For example if you place a 72 ppi image and scale it 24% it will now be Effectively 300 ppi (100/24)*72=300
    For printing you should ensure that the image quality is 300 ppi (it's a general rule of thumb and it's not entirely accurate but that's what most printing places operate at as a standard).
    For the record - you should resave images as JPG if you make ANY alteration to them (as a rule of thumb) saving as JPG over and over can add jpeg artifacts to the image which will degrade the image over time, as jpeg is a lossy format (information is removed with each save). A better way would be to save as TIFF as this is a LOSSLESS format - in that no data is removed upon saving.
    I wouldn't recommend Picassa for your image editing. You should get Photohsop or failing that a free open source program like GIMP.

  • Scrollable frame is text: anchored object in text can not be button?

    Following example: A textframe. With an anchored object (group). Paste textframe in other frame to make scrollable frame (pan only). Select anchored frame in already pasted into textframe, make button for anchored object (go to state).
    Does not work, button does nothing (and yes a converted it to a button after the paste into other frame as last step).
    Not possible?
    DPS v18

    If you want the button in the scrollable frame to control an MSO state, the button/scrollable frame needs to be part of the MSO. It is an InDesign limitation that buttons cannot control videos, audio clips, or MSOs unless they're on the same "level" in the document.

  • Problems with Text Wrap

    Hello,
    I'm new and getting more and more frustrated trying to wrap text around a couple of images in InDesign.
    I saved my picture file as, Save for Web & Devices in Photoshop, and in the text wrap options I clicked "wrap around object shape" and under contour options I chose Detect Edges. I don't know what I'm doing wrong and all of my searches for possible errors are coming up short.
    Does anyone know what I could be doing wrong?
    Thank you so much for your help!

    Err, is this related to scripting somehow? You know you are posting in the scripting forum?

Maybe you are looking for