48

and are half the height of normal characters. Superscripts print evenly with the tops of regular printing while subscripts print evenly with the bottom of regular printing. They are frequently used to reference footnotes, and in mathematical formulas.

Table 4-4 has the codes for using superscripts and subscripts.

Table 4-4

Superscripts and subscripts commands

Function

Superscript ON Subscript ON

Super and subscript OFF

Control code

<ESC > ‘73”0

<ESC > ‘3” 1

<ESC > “T”

Try this program to see them work:

10 ’ Demo of superscripts and subscripts

20 LPRINT “Look! ‘I;

30LPRINT CHR$(27) ; “SO”;

40LPRINT “SUPERSCRIPTS ‘I;

50LPRINT CHRZ(27) ; “T”;

60 LPRINT “& ” ;

70LPRINT CHR$(27) ;“Sl”;

80LPRINT “SUBSCRIPTS ‘I;

90LPRINT CHR$(27) ; “T” ; 100 LPRINT “on one line. ”

/

y’i,.,Jy r:FYqf.i;f::;T’s.Jp .T’F!j p

j+.j,,,H(iiL[:‘:pzZxF:“~‘I”fzj

r>n e

1 I. r-1e s

 

i..,I:?0 il.:

I_..

 

i- n

 

Here

line 30 turns on superscripts

with < ESC >

2”

0. It’s

-.

turned off in line 50 with < ESC > “T”. Then between printing

 

text, subscripts are turned on in line 70 with < ESC > “S” 1,

 

and finally off in line 90. Again, everything prints on one line

 

because

of the semicolons.

 

 

 

 

 

CHANGING THE PRINT PITCH

In “printer talk,” the number of characters that can be printed in one inch is called the print pitch or character pitch. Normally, your printer is set for 10 characters per inch, which is called

Page 54
Image 54
Star Micronics NR-10, NR-15 user manual Lprint Superscripts ‘I, Lprint Subscripts ‘I, Changing the Print Pitch