Hi there!
In this video we’re going to learn to type in the algebraic formulae in InDesign, so
let’s get started.
I already have a few formulae typed in here, but the squares and cubes, need to be superscripted,
so we’re going to do that using styles, and since you’ve already done styles, you
should not face difficulty following me.
Let’s ensure that nothing is selected, and go to character styles, and click the small
plus button at the bottom of the panel to create a new style.
Double-click the new style, and rename it ‘superscript’, and then move on to ‘basic
character formats.’
In the position dropdown, click either the ‘superscript’ option, or the ‘opentype
superscript’ option, and hit okay.
Now switch to ‘paragraph styles’ panel, and click the small plus button at the bottom
of the panel, to create a new style.
Double-click the new style, and rename it, should you want to.
I’d leave it, as it is.
Click the ‘GREP style’ option on the left, and then click the ‘new grep style.’
In the ‘apply style’ dropdown menu, select the only character style we made, which is
‘superscript’, and then click the ‘to text’ option, and this is a tricky bit cuz
you need to type in a few characters, so pay close attention.
Type in without any spaces these symbols: (?<=[+()a-z-])\d{1,2}(?=[\s{1}|)])
That’s left parenthesis, and then question mark, then less than sign, then equal sign,
then open bracket, then plus, then open parenthesis, and then close parenthesis, then the letter
a in lowercase, then a hyphen, then the letter z in lowercase, then another hyphen, then
closed bracket, then close parenthesis, then backslash, then the letter d in lowercase,
then open brace, then 1, then a comma, and then 2, then close brace, then open parenthesis,
then a question mark, then equal sign, then open bracket, then backslash, then the letter
s in lowercase, then open brace, then 1, then close brace, then pipe, then close parenthesis,
then closed bracket, and finally, another close parenthesis.
You don’t have to remember that, that’s why I just copied and pasted here, because
even I don’t remember that.
So once you’ve fed the code in, hit okay.
Next, select the text box, and click the paragraph style you created, and the numbers shall be superscripted.
Alright guys!
That was a short one, so I’m going to see you in the next one, in just a bit.
Good bye!