Superscript and subscript

Your LQ can also print superscripts and subscripts, which you can use for mathematical formulas, footnotes, and other items that require numbers or letters above or below the usual print line. ESCape “S0” turns on superscript and ESCape "S1" turns on subscript. ESCape “T” turns off either one. You can see them in action with the program below :

10 LPRINT "The formula for water is H";

20 LPRINT CHR$(27)"S1";"2"CHR$(27)"T";

30 LPRINT

"0."

40 LPRINT

CHR$(27)"@"

The

f o r m u l a f o r w a t e r i s H 2 O .

Now that you see how to use the ESCape sequences for superscript and subscript, you can devise your own examples.

International characters

As you know, languages other than English require a few extra characters. The LQ has provided for printing in many languages by having 13 sets of international characters in its ROM (Read Only Memory).

In order to print any of these characters, you first select one of the following character sets and then use the individual characters within that set.

0

USA

7

Spain

1

France

8

Japan

2

Germany

9

Norway

3

United Kingdom

10

Denmark II

4

Denmark I

11

Spain II

5

Sweden

12

Latin America

6

Italy

 

 

You can select any character set with an ESCape code. In BASIC it has the following format:

LPRINT CHR$(27)"R"CHR$(n)

5-15