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 Control code
Superscript ON < ESC > ‘73” 0
Subscript ON < ESC > ‘3” 1
Super and subscript OFF < ESC > “T”
Try this program to see them work:
10 Demo of superscripts and subscripts
20 LPRINT “Look! ‘I;
30 LPRINT CHR$ (27) ; “SO”;
40 LPRINT “SUPERSCRIPTS ‘I;
50 LPRINT CHRZ(27) ; “T”;
60 LPRINT “& ;
70 LPRINT CHR$(27) ;“Sl”;
80 LPRINT “SUBSCRIPTS ‘I;
90 LPRINT CHR$ (27) ; “T” ;
100 LPRINT “on one line.
i ..,_ I:? 0 il.:
/ y’i ,.,J y r: FYq f.i; f::; T’s .J p .T’ F!j p
I_..
j+.j,,,H(iiL[:‘:pzZ x F:“~‘I”fzj
i- n r> n e 1 I. r-1 e s
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