Table 5-4 Superscript And Subscript Commands - Star Micronics SG-10 User Manual

Star micronics printer user's manual
Table of Contents

Advertisement

ued.Therefore,
BASIC didn't send a carriage return and line feed
at the end of those lines. We just did this to illustrate that all
these control codes can be used in the middle of a line. It's easy
to underline or
italicize
only part of a line.
n Superscripts
and subscripts
SG-lo/15 can print in two different heights of characters.
The
smaller characters are called
superscripts
and
subscripts
and are
half the height of normal characters.
Superscripts
print even
with the tops of regular printing while
subscripts
print even with
the bottom
of regular printing.
They are frequently
used to
reference footnotes,
and in mathematical
formulas.
Table 5-4 has the codes for using superscripts and subscripts.
Table 5-4
Superscript and subscript commands
Function
Superscript
ON
Subscript
ON
Super
& subscript OFF
Mode
Control code
STAR
<ESC > '23" 0
IBM
< ESC > '3" 0
STAR
<ESC > "S"
1
IBM
< ESC > "S" 1
STAR
<ESC> "T"
IBM
<ESC>
"T"
Try this program to see them work:
10 'Demo subscripts and superscripts.
20 LPRINT "Look! " ;
30 LPRINT CHR$(27) "S" CHR$(@) ; 'Superscript on.
44) LPRINT "Superscripts " ;
50 LPRINT CHR$(27) "T" ; 'Cancel superscripts.
60 LPRINT "& " ;
70 LPRINT CHR$(27) "S" CHR$(l) ; 'Subscripts on.
80 LPRINT "subscripts " ;
90 LPRINT CHR$(27) "T" ; 'Cancel subscripts.
188 LPRINT "on one line."
LooC:: !
s3dL,prrrcr
3. c>t.sm F, -. rc,brcript.u
on
me
iine.
Here line 30 turns on superscripts with < ESC > "S" CHR$(O).
It's turned
off in
line
50 with
< ESC > "T". Then, between
printing text, subscripts are turned on in line 70 with < ESC >
40
-
-

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sg-15

Table of Contents