1 00:00:06,800 --> 00:00:09,680 Hi there! In this video we’re going to learn to   2 00:00:09,680 --> 00:00:13,280 type in the chemical formulae in  InDesign, so let’s get started. 3 00:00:14,320 --> 00:00:19,600 I already have some of the formulae typed in here,  so I’m going to ensure that nothing is selected,   4 00:00:20,240 --> 00:00:24,960 and then click the small plus button at the bottom  of the character styles panel to create a style.   5 00:00:26,000 --> 00:00:30,560 Double-click the new style, and rename  it ‘superscript.’ So basically I need   6 00:00:30,560 --> 00:00:34,960 the charges to be superscripted, which  means, a little raised from the baseline.   7 00:00:35,680 --> 00:00:39,520 Let’s go to ‘basic character formats’,  and in the position dropdown list,   8 00:00:39,520 --> 00:00:44,400 select either ‘superscript’, or ‘opentype  superscript’, both should work just fine,   9 00:00:44,400 --> 00:00:49,760 and hit okay. Similarly create another  character style, and rename it ’subscript.’   10 00:00:49,760 --> 00:00:55,520 We’ll need this for the valences. Now go to ‘basic  character formats’ tab, and from the ‘position’   11 00:00:55,520 --> 00:01:00,000 dropdown menu, select ‘subscript’, or  ‘opentype subscript’, and hit okay. 12 00:01:01,200 --> 00:01:06,240 Time to move on to paragraph styles, so click the  small plus button at the bottom of the paragraph   13 00:01:06,240 --> 00:01:12,240 styles panel, and then double-click the new style,  and rename it, should you want to, I’ll keep it   14 00:01:12,240 --> 00:01:18,080 as it is. Let’s click the ‘GREP style’ tab on  the left, and then click ‘new grep style.’ From   15 00:01:18,080 --> 00:01:23,120 the ‘apply style’ dropdown, select ‘superscript’  character style that we created a few moments ago.   16 00:01:23,760 --> 00:01:29,360 Click the ‘to text’ option, and type in these  symbols, without any spaces: \(\d*(\-|\+)\) 17 00:01:29,360 --> 00:01:34,400 That’s backslash, then open parenthesis,  then another backslash, then the letter d,   18 00:01:35,040 --> 00:01:39,840 then the asterisk sign, then another  open parenthesis, then a backslash,   19 00:01:40,880 --> 00:01:46,960 then a hyphen, then pipe, then  another backslash, then a plus sign,   20 00:01:47,760 --> 00:01:53,840 then close parenthesis, then a  backslash, and finally close parenthesis. 21 00:01:53,840 --> 00:01:57,920 You don’t have to remember that, that’s why  I just copied and pasted here, because even   22 00:01:57,920 --> 00:02:03,360 I don’t remember that. So once you’ve fed the code  in, click ‘new grep style’ to create another one.   23 00:02:04,400 --> 00:02:07,760 From the ‘apply style’ dropdown,  select ‘subscript’ character style   24 00:02:07,760 --> 00:02:13,680 that we created a few moments ago. Click the  ‘to text’ option, and type in these symbols,   25 00:02:13,680 --> 00:02:15,840 without any spaces: (?<=[A-Z]|[a-z])\d{1,2} 26 00:02:15,840 --> 00:02:23,760 That’s open parenthesis, then a question mark,  then less than sign, then equal sign, then open   27 00:02:23,760 --> 00:02:33,360 bracket, then a capital A, then a hyphen, then  a capital Z, then closed bracket, then pipe,   28 00:02:34,320 --> 00:02:41,280 then open bracket, then a lower case ‘a’,  then a hyphen, then a lower case ‘z’,   29 00:02:42,000 --> 00:02:48,720 then closed bracket, then close parenthesis,  then a backslash, then the letter d,   30 00:02:49,760 --> 00:02:58,640 then open brace, then 1, then a comma,  then 2, and finally, close brace. 31 00:02:59,520 --> 00:03:03,600 Like I mentioned earlier, you don’t have to  remember that, that’s why even I just copied, and   32 00:03:03,600 --> 00:03:10,240 pasted here, because even I don’t remember that.  So once you’ve fed the code in, click okay. Now   33 00:03:10,240 --> 00:03:15,040 select the text box, and then click the paragraph  style you’ve just created, and you’ve got yourself   34 00:03:15,040 --> 00:03:21,040 the chemical formulae typed in InDesign.  Let’s add some leading space, and we’re done. 35 00:03:22,240 --> 00:03:33,600 Alright guys! That’s all for now, I’m going to  see you in the next one pretty soon. Good bye!