Skip to main content
hamdifem
Inspiring
September 23, 2014
Question

I want to make fractional box

  • September 23, 2014
  • 1 reply
  • 365 views

as the picture, how to drawing only the first line of the paragraph for




var box1 = app.selection [0].texts[0].insertionPoints.item(-1).textFrames.add();

box1.geometricBounds = [0, 0, 6.4, 7];

var y1 = "1234"

var y2 = "\r5678";

var txt = box1.texts[0].insertionPoints.item(-1).contents = y1 + y2;

box1.texts[0].underline=true;  //Paragraph ???

box1.underlineOffset = 1; // Paragraph ???

box1.anchoredObjectSettings.anchorYoffset = -2.283;

box1.texts[0].appliedFont = "Swis721 BT\tRoman";

box1.texts[0].pointSize = 8;

box1.texts[0].justification = Justification.CENTER_ALIGN;

box1.texts[0].leading = 12;

This topic has been closed for replies.

1 reply

hamdifem
hamdifemAuthor
Inspiring
September 23, 2014

finally

var box1 = app.selection [0].texts[0].insertionPoints.item(-1).textFrames.add();

box1.geometricBounds = [0, 0, 6.4, 7];

var y1 = "1234"

var y2 = "\r5678";

var txt = box1.texts[0].insertionPoints.item(-1).contents = y1 + y2;

box1.anchoredObjectSettings.anchorYoffset = -2.283;

box1.texts[0].appliedFont = "Swis721 BT\tRoman";

box1.texts[0].pointSize = 8;

box1.texts[0].justification = Justification.CENTER_ALIGN;

box1.texts[0].leading = 12;

box1.paragraphs[0].ruleBelow = true;

box1.paragraphs[0].ruleBelowOffset = 1.075;

box1.paragraphs[0].ruleBelowLineWeight = 0.5;

Obi-wan Kenobi
Legend
September 23, 2014

?

… so easy to do it with en equations editor as MathType or MathMagic! 

hamdifem
hamdifemAuthor
Inspiring
September 24, 2014

yes

you're opening

are you waiting for opening

settings are you doing

you are saving

are you waiting for

You're going back

matt programs wretched