Homepage
Mellel's Blog
Get the Image Inline

Get the Image Inline

People often never come to me and ask: Ori from Mellel, how to you manage to insert inline images so smoothly in the text? Whenever I (never) hear such a question, I always smile wrily and say: Well, that’s complicated.
But also simple. Let’s say you have this text, and you wish to insert an image into it:

Just inserting the image (Choosing Insert > Image… and selecting the image) would not bring a satisfying result:

You can resize the image to fit:
• Click on the image and then click the Edit button to start editing the image size.
But this doesn’t solve the problem: the image still causes an awkward line spacing and is not positioned correctly within the line it was inserted:

Further action is required:
1. Open the Paragraph palette, and then change the line spacing units from lines to points.
2. Click on the image and then click the Edit button, and in the Edit Image attributes pop-up menu uncheck the option Adjust fixed Line Spacing. This option is very useful when an image is set as the only object in a line and you want it to adhere to line-spacing rules. In this case, with the image within the text, you want it not to change the line spacing you’ve set.
3. Still in the Edit Image attributes pop-up menu set the Vertical Position of the image (-4 or -5 points will do in the case here).

Step 3 is quick and straightforward, but it is not part of a style, and this will force you to repeat this step with every image. Another way is to use styles to position the image:
1. Select the image in the text (i.e., not by clicking it), and open the Character palette.
2. In the Styles pane of the Character palette select a variation (e.g. E or F), and in the Attributes pane set Baseline Shift to something that fits the image. (e.g., -4 or -5).
3. Save the changes to the style.

From here on, with future image, all you’ll need to do is select the image and apply the variation to it to create the desired baseline shift.

Comments

All rights reserved to Mellel, 2002-2019.