This content has been marked as final. Show 8 replies
How much extra white space? There is some built-into every MathType EPS and there' no way to detect how much in any particular file. You just have to live with it -- but I'm talking about 2 or 3 points, maximum.
the white space measure's 3 to 4 pts. So this may be ignored!
thanks for your advice
a r u l
It's not so much "may be ignored" -- you don't have a lot of choice.
what you may need to do is crop the bounding box, that is the frame, of the placed MathType equation. As far as I've found out cropping of about 2 points on either side (left and right) is a good choice.
The frame of a placed equation is the parent of the parent of its link. You get the absolute frame dimensions by looking for its "geometric bounds". When you've got the array, you can set it accordingly.
I shall soon publish a convenient interface for MathType 5.1/6.x and InDesign CS3 for MacOSX. With a single key stroke from within InDesign you insert or edit MathType equations at the correct baseline and with optional cropping of the correpsonding bounding boxes. The development is in a late beta stage.
Hi Helmut Glunder
Thanks for your suggestion
here is my script but I am struck
var myeq = app.selection;
var myeqmeasure = myeq.geometricBounds;
var top = myeqmeasure;
var bottom = myeqmeasure;
var left = myeqmeasure;
var right = myeqmeasure;
myeq.geometricBounds = [top, left-2, bottom, right-2];
can you tel me where I went wrong in this?
a r u l
1. myeq.geometricBounds = [top, left+2, bottom, right-2];
(As I've written, "geometric bounds" gives you the absolute frame dimensions. Consequently, you must add 2 points to the left bound and subtract two points from the right bound of the frame.)
2. omit: myeq.fit (FitOptions.frameToContent);
(Fitting the frame to the content after the cropping, evidently removes any cropping.)
3. Make sure the units are set to points in InDesign.
Here is an AppleScript for left/right-cropping of a selected graphics object:
-- Make sure that InDesign's "units" are set to points!
tell application "Adobe InDesign CS3"
set the_frame to first item of selection
set b_list to geometric bounds of the_frame
set (item 2 of b_list) to (item 2 of b_list) + 2.0
set (item 4 of b_list) to (item 4 of b_list) - 2.0
set geometric bounds of the_frame to b_list
a r u l
Have you rectified the script and is it working. May u please send me the script. email@example.com
thanks and regards,