Skip to main content
Known Participant
August 18, 2008
Question

Indesign Vs Mathtype

  • August 18, 2008
  • 8 replies
  • 1630 views
I have problem while I am placing eps file created using mathtype into Indesign. Extra white space is appear around the image text!

How can I find the extra white space around the image and get close crop box

Please advice me

thanks

regards
a r u l
This topic has been closed for replies.

8 replies

Participating Frequently
February 12, 2009
Hi arul,

Have you rectified the script and is it working. May u please send me the script. sachinrewa@gmail.com

thanks and regards,
sachin
hm_arulAuthor
Known Participant
August 19, 2008
Thanks Herbie

regards
a r u l
Participating Frequently
August 19, 2008
Arul,

since I'm not familiar with javascript I can only tell you about obvious deficiencies of your script code:

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
end tell

HTH

Herbie
hm_arulAuthor
Known Participant
August 19, 2008
Hi Helmut Glunder

Thanks for your suggestion

here is my script but I am struck

var myeq = app.selection[0];
var myeqmeasure = myeq.geometricBounds;

var top = myeqmeasure[1];
var bottom = myeqmeasure[3];
var left = myeqmeasure[2];
var right = myeqmeasure[4];

myeq.geometricBounds = [top, left-2, bottom, right-2];
myeq.fit (FitOptions.frameToContent);

can you tel me where I went wrong in this?

thanks

regards
a r u l
Participating Frequently
August 18, 2008
Arul,

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.

Best

Herbie
Inspiring
August 18, 2008
It's not so much "may be ignored" -- you don't have a lot of choice.

Dave
hm_arulAuthor
Known Participant
August 18, 2008
Thanks Dave,

the white space measure's 3 to 4 pts. So this may be ignored!

thanks for your advice

regards
a r u l
Inspiring
August 18, 2008
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.

Dave