Skip to main content
Inspiring
September 17, 2020
Question

In-line anchored object (equation) management.

  • September 17, 2020
  • 17 replies
  • 5781 views

Dear all,

I have managed to write equations in MS Word, export to PDF, edit the PDF in Illustrator, exported it as SVG, placed it as an anchored object inline in the InDesign document and then activated the Text Wrap for the object.

As you can see from the video the text that is colliding is brought to the next line but the space (leading?) between the two lines is not increased (as it would in Apple Pages or MS Word). 

 

How can I achieve that? What do I have to change? Paragraph Style? Something in the Text Wrap?

Also, second question, is there an easier way to insert equations in InDesign that doesn't involve scripting or expensive plugins? I'm still a beginner in InDesign so I do not feel comfortable with scripting.

Thanks 

This topic has been closed for replies.

17 replies

Community Expert
September 23, 2020

Hi Inélsòre,

back to your first post from some days ago. You said:

"I have managed to write equations in MS Word, export to PDF, edit the PDF in Illustrator, exported it as SVG, placed it as an anchored object inline in the InDesign document"

 

So you already have the equation graphics in Adobe Illustrator. Great. One step is missing at this point:  Convert the graphics to 100% Black ink in Illustrator,  save them as AI files with PDF preview and place the AI files in InDesign. Do not use the SVG files.

 

Regards,
Uwe Laubender

( ACP )

Community Expert
September 23, 2020

Hi Inélsòre,

at one point in one of your replies you mentioned that the equation graphics are from SVG files.

Are you planning for black ink printing only? Or do you like to print your document with color images to CMYK inks?

 

Warning:

SVG colors principally are imported as RGB colors. And a RGB black cannot* be converted to 100% Black ink only in the CMYK color space when you export to PDF for the printing company with InDesign.

 

* There is a way, but the resulting PDF is for black ink printing only. You may find some discussions about this topic in the InDesign forum from some years ago.

 

So, if you plan for color elements in your document and color printing to CMYK inks ( e.g. with offset printing ) you should open the SVG equation graphic files with Adobe Illustrator and convert them to 100% CMYK black ink, save them as AI files with included PDF and place the the AI files instead the SVGs. For details see the Adobe Illustrator forum or the help files. E.g. this one on colors with Adobe Illustrator: https://helpx.adobe.com/illustrator/using/adjusting-colors.html

 

FWIW: Do separate discussions for the potential issues if they arrise.

 

Thanks,
Uwe Laubender

( ACP )

Community Expert
September 23, 2020

Inélsòre asked:

"…how do you create a text frame that, once anchored inside the main text frame, moves the text to its sides? "

 

If the object that is anchored, your small text frame, is anchored with option "Inline Anchored" text will be moved away automatically. If you copy/paste an object to a text insertion point the object will be anchored "Inline Anchored" by default.

 

You can check and change the type of anchoring if you select the anchored object and invoke the Anchored Object Options panel. More on this:

https://helpx.adobe.com/indesign/using/anchored-objects.html

 

Regards,
Uwe Laubender

( ACP )

Inspiring
September 23, 2020

Thanks Uwe for these new messages. 

I am going to send you a PM with details on this in order not to clutter the forum. 

Feel free to answer if and when you have time in the next days. 

Community Expert
September 23, 2020

Hi Inélsòre,

sorry, but I think you need a hands-on live training. First a basic course for InDesign, then a course that exactly fits your needs. The forum is not the right communication platform for this.

 

Regards,
Uwe Laubender

( ACP )

Inspiring
September 23, 2020

I am following the Classroom in a Book guide (+handbook entries when needed +videos) but after the first 6 lessons I didn't find help for this. Possibly it will be in the next lessons, but I am working on this book now and I need to proceed. 

Where can I find a course that fits my needs? 

 

I will ask one last time as after all these attempts, I really think I did my best to follow the instructions given and I really do not understand why things are not working: could you please answer my last questions and tell me why this is not working? Come on... pasting from your document doesn't produce the same results ... 

If you do not feel like writing, which I will understand, could you please make a screen-recording of the steps you followed to create this? For sure it will be fast for you and it will be over soon. 

 

I am the one to be sorry, because I know I am taking someone else's time, but I have to say this: I do not like being abandoned to myself so near to the solution and after all these attempts. I really do not like it and it does not feel good. 

Community Expert
September 22, 2020

Relax.

 

And then read through this:

To anchor a frame to a text insertion point by drag and drop:

https://indesignsecrets.com/drag-drop-anchored-objects.php

 

FWIW: I know, if you this all the first time it's complex as hell.

Be asured that anchoring an object to an insertion point of a text frame that is anchored itself requires no special steps.

 

Regards,
Uwe Laubender

( ACP )

Inspiring
September 22, 2020

Tried a few more things and trying now to narrow to more precise questions:

  1. When I activate insertion point into anchored text frame, then Cmd-D to Place, the inserted equation just disappears. Why? I know it is there so I went to Links > selected it > Ctrl-click to contextual menu > Anchored Object > Options > Custom and got to something similar to yours. Any more straightforward way? Inserting it outside and then drag-n-dropping as in the article didnt move it by a single hair... Shift-dragging did, though, so I went that route. 
  2. The yellow text frame, which we could call the Parent TF maybe. How do I make it of the same height as yours automatically? When I create an anchored TF at insertion point it is 1x1in by default. 
  3. How do I make it vertically aligned as yours? It looks floating a tiny bit above baseline. 

Getting nearer, I hope.

And yes, first time ... thanks.

Community Expert
September 22, 2020

There are several strategies possible. One of it:

Prepare a graphic frame as a placeholder that should hold the image or graphic later.

Anchor this frame as described in the InDesign Secrets article by drag and drop to the desired insertion point.

Resize the anchored frame, adjust its position, set frame fitting options*. Watch this:

https://helpx.adobe.com/indesign/how-to/indesign-fitting-graphics-to-frames.html

 

Now copy/paste the little text frame, in my example document v3 in yellow, to another textframe's insertion point.

All preparations are done now.

 

For every new equation graphic you want to use in your text you are using a duplicate of that prepared combination of frames: Select the anchor character of the anchored text frame in yellow and copy it to the clipboard. Select an insertion point in your main text and paste.

 

The next step is to fill the anchored graphic frame, the placeholder frame, still empty, with a loaded image or graphic in the cursor. Select the frame and use the Place command. Because you defined fitting options in advance the placed image or graphic will fill the frame as defined.

 

 

Regards,
Uwe Laubender

( ACP )

Community Expert
September 22, 2020

Anchored objects:

https://helpx.adobe.com/indesign/using/anchored-objects.html

 

To anchor a frame to a text insertion point by drag and drop:

https://indesignsecrets.com/drag-drop-anchored-objects.php

 

In the Object Styles dialog you'll find Anchored Object Options and options for Text Wrap & Other as well.

Simply scroll down all the tabs in the dialog to find them. Working with object styles is described here:

https://helpx.adobe.com/indesign/using/object-styles.html#about_object_styles

 

In my sample document you can inspect what I did where.

Simply experiment with this.

 

Regards,
Uwe Laubender

( ACP )

Inspiring
September 22, 2020

I am sorry if I annoyed you to the point that I cannot get a step-by-step instruction to what is holding me. 

I understand if you do not feel like helping any further, you have already done a lot and I deeply thank you for this. 

As things stand now, I cannot reproduce what you did.

Inserting the first anchored text frame is done, even if its size seems to need manual adjustment every time until someone tells me how not to, but then, anchoring the equation frame inside the first one it just doesnt give the desired results. I activate text insertion with the Text tool (as the first frame is a "text" one), then Object > Anchored Object > Insert and select the file. 

Result? It just disappears inside the frame, not reacting as yours does. 

Have I made a mistake here? I don't know ... I cannot know ... 

 

I will appreciate it if you will want to show me these last steps, but I will understand it if you will not want to. 

Should this be the case I hope someone will come to the rescue sooner or later. Until then, I will need to find a different path as this one is not allowing me in. 

Thank you.

 

PS: I had already read the Anchored objects guide, there's nothing there about anchoring within an anchored object and from what I tried it is clear it does not work in the same way as an ordinary anchored object. I always look in the guide before asking.

Community Expert
September 22, 2020

Hi Inélsòre,

the second solution, basically Pickory's idea, is the one that you can fine-tune to the most:

[1] The height of the text frame that is anchored to the main text determines the leading to the text above, for the whole line, the text wrap you will apply to the bottom will govern the leading to the next line.

[2] All the details for anchoring the equation frame inside the other text frame will allow you to find a relative vertical position that fits your needs.

You may need four or five object styles for four or five cases, but if done you are able to control all aspects of leading very fast for a variety of equations.

 

Regards,
Uwe Laubender

( ACP )

Inspiring
September 22, 2020

Thank you, I have not yet created object styles, but I will once I am sure I have understood what I am doing.

I just tried to reproduce these steps but, I seem unable to.

I can't find many of the things you show, for example the "details of the applied object style". I created a new Object Style but I see too many options compared to your screenshot.

I opened your document but when I get into the Object Style Options dialog, nothing looks like your screenshot. Where should I go there?  

--- insert few minutes of browsing the options here...

Finally, feeling even more lost, I surrendered to copy-pasting your frames into my document which, luckily, also imported the styles. I understood some of those options but far from all of them. 

 

Now, how do I insert the anchored equation frame inside the anchored text frame? What I've tried so far just places the SVG image inside the frame and from there I am stuck once more. 

In general, the process of inserting anchored objects is quite obscure to me right now, as you will have noticed...

Assuming I have to reproduce this alone, how do I insert the first text frame so that it is positioned properly? 

 

 

Community Expert
September 22, 2020

Hm. I think, I have one solution that could fit.

 

It requires:

[1] Auto leading set to 150% with the paragraph style.

[2] Text wrap is applied to the inline anchored objects with option "Jump Object"

[3] Text forced to the baseline grid. Be it to a grid of the text frame or the document grid.

[4] Baseline grid distance is set to 9 Pt, half of the effective leading which is 18 Pt derived from the point size of the text that is 12 Pt.

 

Screenshot from my German InDesign where I show the various behaviors of inline anchored objects.

I used the baseline grid of the text frames, underneath the baseline grid of the document in gray:

 

 

InDesign 2020 document can be downloaded from my Dropbox:

https://www.dropbox.com/s/ziyvn6mu4dux6nj/v2-Leading%20help-EDITED-15.1.2.226.indd?dl=1

 

Also experimented with your solution, a text frame ( in yellow below ) anchored to the main text. In that frame anchored the equation frame. Auto leading applied to the text as before. But this time the text is not forced to the baseline grid:

 

 

Details of the applied object styles I did:

 

 

The height of the frame will dicatate an increase of leading above. The leading below will be dictated from the text wrap of the anchored text frame. In this sample I added 1.5 mm at the bottom:

 

Now to the anchored equation frame: text wrap is turned off!

 

The used anchored object settings:

 

Download link to that document:

https://www.dropbox.com/s/i2b5ggorbjycsat/v3-Leading%20help-EDITED-15.1.2.226.indd?dl=1

 

Regards,
Uwe Laubender

( ACP )

 

Inspiring
September 22, 2020

Thanks Uwe, both very interesting solutions! 

I thought I could not add a baseline grid only to a single text frame. 

That solution, though, looks worse to me than the second, unless I can put a finer, smaller baseline grid (a whole 9pt empty line is too much to my eyes). How does the text automagically jumps to the second line? Thanks to Auto-Leading? If so, brilliant! 

The second solution, though harder to achieve, looks much neater and will most probably be my choice. Again, I didnt know one could anchor an object inside an anchored object! Down the rabbit-hole we go! 

 

I apologise for the beginner questions but this is my first big project in InDesign, I am a music engraver getting his feet wet with serious layout! 

Will report back as soon as I have managed to try all this (later today). 

Inspiring
September 22, 2020

For some reasons unknown to me setting up a document grid (via InDesign > Preferences > Grids) influences all the document AND when I create a grid for a single text frame (or story), that frame doesn't show any grid, rather it stays white and the custom grid gets applied to the whole document. 

I repeat: the custom grid overwrites the document one. 

What am I missing? 

Community Expert
September 22, 2020

Hi Pickory,

the issue, as I understood it, is a aesthetical one:

If an inline anchored object is in a line of text the next line of text should move a bit down.

Just a bit. Not a whole line down. Moving it a whole line down is possible without doubt.

 

Regards,
Uwe Laubender

( ACP )

Legend
September 22, 2020

Hi Uwe,

 

Ah, 'aesthetics', beauty is in the eye of the beholder.

 

Could be acheived by tweeking the contianer anchore, not very elegent though.

 

P.

Community Expert
September 22, 2020

Hi Inélsòre,

I will do more tests.

The behavior of inline anchored objects with text wrap is a bit strange when a second line of text is involved with another anchored object. Auto leading is not working as expected, text wrap is not working as expected. Maybe we should rethink the case. Applying a different value for leading to a whole line of text is no good option in case you edit text before and the composition of line width change.

 

Regards,
Uwe Laubender

( ACP )

Inspiring
September 22, 2020

Thank you very much for your help. 

I will keep working on this chapter until the whole amount of text is inserted, then I will add the images and see where these lines end up to. 

What doesnt convince me by now, as you have just seen and said, is how these anchored objects influence the text around them. Most ways of how they react seems not totally logical. 

 

I will keep testing on my side and report back if I discover something before you do.

Kind regards

I.

Legend
September 22, 2020

Hi, 

 

I might not be understanding the problem fully. Anchore a text frame that does not upset the leading and then anchore your graphic into that frame. see pic.

 

P.