Atari XL manual Print Toggles, Control Strings, Init

Models: XL

1 77
Download 77 pages 13.49 Kb
Page 36
Image 36

The Last Word 3.0 Reference Manual

6.2.1 PRINT TOGGLES

Start LW with an empty text file. In your printer manual, find the codes for "ITALICS ON". For the EPSON compatible example, the sequence is 27, 52. In the editor, type:

ITALICS ON 27,52 <Return>

Italic off would be 27,53, so on the next line needs to be:

ITALICS OFF 27,53 <Return>

All 6 pairs of ON/OFF toggles (underline, italic, bold, superscript, subscript and international font) work the same way. In a document, the first in a file will turn italics on, the second off, the third on again, and so on (see initialization string later). The only exception are the “International ON¦OFF” code sequences. These are automatically sent before and after any international characters in the document. This means you can select any font built-into the printer, without affecting the rest of your text when printing non-international characters.

6.2.2 CONTROL STRINGS

The CRLF statement allows you to set up a code string for the carriage return/linefeed sequence you want to send to the printer at the end of every line. For an EPSON compatible printer, you would type:

CRLF 13,10

This will sent an ASCII carriage return and linefeed sequence to the printer at the end of each line. The ICD Printer Connection sends the line feeds for you, however, so most of the time you can just have:

CRLF 155

This is Atari’s normal End of Line character and is the default in LW, so unless you want the CRLF sequence to be anything other than 155, you needn’t include a CRLF instruction in your printer driver.

The INIT code is just sent to the printer at the top of every document you print. You might want to send a printer reset code every time you print. To do so, type:

INIT

Follow this with a space and a comma-separated list of the escape codes for “Reset Printer” in your printer manual. If you don't want an initialization string sent to the printer, simply remove the “INIT” line from the printer driver file.

6.2.3 INTERNATIONAL CHARACTERS

LW includes 29 special “International” characters. These are the characters <CTRL+A> to <CTRL+Z>, <CTRL + comma>, <CTRL + full stop> and <CTRL+ semi colon>. When using a font which redefines these characters and accented or “International” characters, it’s important to be able to coax the same accented

6-36

Page 36
Image 36
Atari XL manual Print Toggles, Control Strings, Init