Text wrap works differently fro anchored objects than it does for free-floating, and differently for inline and custom anchors.
For inlines text wrap affects text following the anchor point. For Custom positioned anchors only text in lines following the anchor point are affected. This is by design to prevent endless composition looping when wrap would shift the position of the anchor on the page.
@Paolo – the anchor has to be before the first paragraph you want to wrap.
You could use a special paragraph before and setting its leading to zero. Just a suggestion…
Thank you both for answering.
Peter, this is what I was fearing. I never found looping issues with FrameMaker, where adding this type of anchored frame was an everyday task. I really wonder what made InDesign different.
Laubender, inserting the anchor in a paragraph preceeding the anchored frame position is what I did (as in the first example I reported). Frankly, I find this solution far from the ideal one. Frames running on the side of a paragraphs are as old as marginalia on codices. I'm shocked to discover that Adobe thinks this is an exception.
I don't follow the logic. I don't want to anchor it to the previous paragraph, but to the current one. Having to add a 'hidden' paragraph before the one I want to attach an object to is tricky and might led to errors.
On a second thought, I think that keeping the anchored frame on a separate paragraph could have advantages, since you can manage it separately from the referring text.
However, even reducing the font size to 0.1pt and the leading to 0pt, with no space before or after the paragraph, no space before the following paragraph, seems to leave some noticeable space before the referring paragraph:
I wonder if there is some other parameter to look for, to reduce this space to zero.