Trying to find solution for adjusting baseline and leading on 1000s mathtype inline equations in indd.
What i want is script which can read from ALL eps links baseline info and move it to correct position and after that adjust leading of surrounding text to +166% (2/3 more than baseline) of that baseline.
Here is little code which move (selected) equation to correct position but not adjust leading of text line.
var fp = app.selection.graphics.itemLink.filePath;
var f = File(fp);
var fs = f.read();
var baseline = fs.match(/%%Baseline:\s+(\S+)/);