Copy link to clipboard
Copied
Dear Team,
When I used the "text wrap" style with "anchor" option, the first line overlapped the background of the picture.
Could you perhaps suggest a way to have this anchor-style text wrap properly?
Text Wrap with anchor option applied output (wrong output):
I need the below output:
Thanks
kk
Inline anchor with max negative offset
and then adjust it slightly
If you anchor it in the centre it will be in the middle.
If you anchor it on the left it will be on the left.
What do you want to do here? Re-anchor to the start of the paragraph.
Copy link to clipboard
Copied
Hi @kanagakumar, I believe the problem your describe is a known issue, and I really hope someone has a better answer than mine, but I just had a play with it and got it to work by putting the photo's frame inside another text frame, which is anchored to the main text. See attached demo.indd.
- Mark
Copy link to clipboard
Copied
You cannot wrap the first line due to technical reasons. Developers have tried, but InDesign would come into a never ending loop and work would be impossible. Therefore you must either anchor in the previous line or not use an anchor at all. It is not a bug but a technical limitation.
Copy link to clipboard
Copied
Hi @Willi Adelberger, that's interesting. Do you know what the technical limitation is? It surprises me because Indesign seems quite happy to wrap the first line around an anchored text frame (as in my example). What would be technically different about a graphic frame I wonder....
- Mark
Edit: maybe the complexities around clipping paths and wrapping shapes...
Copy link to clipboard
Copied
Do you know what the technical limitation is?
By @m1b
OP have Anchor Point in the middle of the text - TextWrap is pushing text - but also pushes AnchorPoint - so it would be neverending loop.
But in some cirumstances - like setting alignment of the Anchored Object to the edge of the TextFrame - problem shouldn't occure as there wouldn't be any text on the left of the Anchored object.
As long as Object is not affecting text in previous Paragraph(s).
Divide & Conquer algorithm could be used - but it would be rather too slow.
Copy link to clipboard
Copied
Dear Mark,
Thank you for your response.
Since the input file is XML based, the XML structure would be impacted if I changed the inline format (your input).
Can you suggest alternative way, without affect xml structure.
Thanks
kk
Copy link to clipboard
Copied
Dear Mark,
Thank you for your response.
Since the input file is XML based, the XML structure would be impacted if I changed the inline format (your input).
Can you suggest alternative way, without affect xml structure.
By @kanagakumar
Post Processing - dedicated script would move objects based on specified rules.
In this case - all - or according to applied ParaStyle - anchored object should be re-anchored to the start of Paragraph - or to the end of previous Paragraph or new Paragraph should be added.
Possibilities are endless.
Copy link to clipboard
Copied
Inline anchor with max negative offset
and then adjust it slightly
Copy link to clipboard
Copied
Dear Eugene Tyson,
I tried to your method, but output is not comming. The photo placed in the center of the paragraph.
see below the screen shot. Kindly let me know if I'm doing incorrectly.
Thanks
kk
Copy link to clipboard
Copied
If you anchor it in the centre it will be in the middle.
If you anchor it on the left it will be on the left.
What do you want to do here? Re-anchor to the start of the paragraph.
Copy link to clipboard
Copied
Dear Eugene Tyson,
Thank you very much for your guidance.
Thanks
kk
Copy link to clipboard
Copied
No prob - glad it's working for you.
Copy link to clipboard
Copied
Great!