Here's a possible solution which uses a hidden style in the current format (a style is needed because the tag string is rather long and it requires lot of repetition of parameters).
It requires that you supply the image name, height and width.
In the suitable library of styles create the following hidden style:
WARNING: you cannot paste these tags to the style editing window, must type them exactly as they are. |
Assuming you want to insert a image "ad201.eps", which height is 120pt and width is 82pt, with 1pt border and 2pt margin, insert the following tag >boximg 1,0,-LD/2,82,120,2,"ad201"< this creates an offset of half a line between itself and previous paragraph, aligns left, and creates an automatic vertical offset for the next paragraph. >boximg 2,20,0,82,120,0,"ad201"< this creates a space of entire line between itself and previous paragraph, aligns left, but moves 20pt right, puts the rule of 2pt without margin, and creates an automatic vertical offset for the next paragraph. The tag has 7 parameters: 1. rule weight 2. horizontal offset from the left margin, moves the border and the image 3. vertical offset from about 1 line below the previous paragraph, positive values move down, negative move up 4. width of image, if not exact, the image is distorted horizontally 5. height of image, if not exact, the image is distorted vertically 6. margin between border and image (do not include weight) 7. image name, without eps extension. |