Copy link to clipboard
Copied
Hello
Anyone know how to align mathtype equations in InDesign CS 4 automatic? I read many discussions topics here about scripts that apply equations and align, but I want to know if there are one way to use any script just to align the equations automatic in InDesign for MAC OS, there are any script that can do just that for Mac?
Thanks
Jonas!
Copy link to clipboard
Copied
Hi Guys
I'm just write this applescript to select mathtype equations and applying align in my story automatic
tell application "Adobe InDesign CS4"
set myDocument to active document
tell myDocument
set graphics from myDocument to (select graphic line)
set matchText to "%%Baseline: "
set theBaseline to ""
-- read in the EPS file
open for access myFile
set fileLines to read myFile as string using delimiter {return}
close access myFile
-- find the line with the baseline
set lapz to the number of items in fileLines
repeat until (lapz = 0) or theBaseline begins with the matchText
set theBaseline to item lapz of fileLines
set lapz to (lapz - 1)
end repeat
-- extract the baseline number
set theBaseline to characters -2 thru -1 of theBaseline as string
-- return the baseline number
return theBaseline & "pt" as string
end tell
end tell
I don't know what's wrong to select the mathtype equations in my document story to apply the baseline, anyone can help me please?
Copy link to clipboard
Copied
Hello,
If you work on PC, I think I can help you by my system of scripts (MT-Script).
You can read more about it on my site (http://mtscript.ru) or in Scribd publication (http://www.scribd.com/doc/73272275/MT-Script-or-How-to-Work-With-MathType-Equations-in-InDesign).
So, what you can do with my scripts? I think... all you need to prepare your publication very and very quickly.
For example,
I'm very pleased to help you with MathType equations in InDesign.
BUT if it's usefull for you I can create a limited version for Mac which can paste, adjust equations and exporting InDesign publication to RTF with editable equations.
The functionality to create new equations and edit them in InDesign will be restricted because of I don't work with Mac and can't create a "bridge" program to start MathType directly from my scripts on Mac. Sorry.
Thank you.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now