Superscripts and subscripts
When you need to reference footnotes or write math formulas, your
printer’s superscripts and subscripts will come in handy. Here’s a
short program to illustrate how easy it is to use them:
NEW
10 LPRINT “LOOK! ‘I;
20 LPRINT CHR$(27) CHR$(83)
‘SELECT SUPERSCRIPT
30 LPRINT “SUPERSCRIPTS ;
40 LPRINT CHR$(27) CHR$(84)
‘CANCEL SUPERSCRIPT
50 LPRINT “AND ‘I;
60 LPRINT CHR$(27) CHR$(83)
‘SELECT SUBSCRIPT
70 LPRINT “SUBSCRIPTS II;
;
CHR$(O);
-
-
CHR$(l);
80 LPRINT CHR$(27) CHR$(84);
‘CANCEL SUBSCRIPT
90 LPRINT “ON ONE LINE.”
LOOK ! SUPERSCRIPTS AND SUBSCRIPTS ON ONE LINE.
Figure 6-4. Superscript and subscript printing.
Line spacing and reverse line feed
You learned about line spacing and how to use escape codes to
adjust it in Section 5. It’s just as easy, you’ll find, to perform all of
these functions when programming in BASIC. -
In the following program, we show you how to use each of these
features; in addition, we’ll show you how to program your printer --
to do a reverse line feed-a useful feature if you ever create charts -
and tables. When you run this program, watch the platen as the last
statement comes up, to verify reverse line feed:
NEW
10 LPRINT CHR$(27) CHR$(48);
20 LPRINT “THIS COMMAND SETS THE LINE SPACING”
30 LPRINT “TO 1/8TH INCH,THE EURROPEAN STANDAR
0
,“8 LPRINT CHR$(27) CHR$(49) --
50 LPRINT “NOW THE LINE WILL BE TOUCHING.THIS”
60 LPRINT “LINE SPACING IS SET TO l/lOTH INCH. -
I,
70 LPRINT CHR$(27) CHR$(50) -
50