Customized 2-Column Tasword Printouts

See all articles from Update April 1991
Author(s): Robert Hartung
Publication: Update Magazine
Pub Details: Update April 1991
Date: April 1991
Pages: 16

The following revisions to the listing for two-column printouts of Tasword files will create a customized routine to do up to 33 double-wide characters as a centered page header followed by a 64-character line for the author’s name and address (line 9712). A CHR$ 136 graphic character ▖ as the first character in any line will cause that line to be in double-wide font for sub-titles. Elite (12 c.p.i.) mode is assumed, with a left margin pre-set at 7, and column-width to 40 (line 9705). Header centering must be adjusted in the Tasword file itself.

A blank line must be inserted in the text file ahead of the first line that prints out as the right-hand column. This is not necessary if the heading is printed first in regular Tasword mode and then the first line of text is selected as the starting point for printing from the routine. Change lines per page at line 9709 (+18 for 1/8″ LF).

Lines 9700-1 and printer codes in lines 9704, 9712, 9730, 9745 assume Tom Woods‘ ProFile printer driver has been installed in a 121-byte line 9999 REM statement. If you are using an Oliger or other printer driver, or if your printer does not use Epson codes, revise these lines accordingly, EG: LET / p=o: POKE 23300, 60: POKE 23301,3: LPRINT CHR$ 27;”W1″; etc. Include the line 9700 LF definition.

Omit lines 10-70 and GO TO line 9700 from main Tasword menu if merged with abbreviated Tasword listing. Use Keywords in prompts wherever possible to conserve memory. If a$=”c” upon exit from Tasword menu then the printer-set in lines 9702-4 will return to the menu, as will any BREAK or error during printout.

— Bob Hartung

  20 CLEAR VAL "33000"
30 ON ERR RESET
40 INPUT "LOAD tasfile - f"'"Do LPRINT - d ";a$
50 IF a$="f" THEN INPUT "File name: ";a$: LOAD /a$CODE
60 IF a$="d" THEN GO TO VAL "9700"
70 GO TO VAL "40"
9700 LET LF=VAL "6": LET b=VAL "PEEK 23627+PEEK 23628*256-121": LET i=VAL "INT (b/256)": LET j=VAL "b-i*256"
9701 CLS : POKE VAL "26703",j: POKE VAL "26704",i: LET o=NOT PI: LET I=SGN PI
9702 ON ERR RESET : LPRINT "↑1B2";: INPUT "ENTER skips printer-set ";d$: IF d$="" THEN GO TO VAL "9705"
9703 LET d$="": INPUT "Prtr CODE -1 TO STOP ";b: IF b<>-I THEN LET d$=d$+CHR$ b: PRINT b;" ";: GO TO VAL "9703"
9704 LPRINT d$;: INPUT "1/6 OR 1/8: ";LF: LPRINT ("↑1B0" AND LF=VAL "8");: IF a$="c" THEN LPRINT : GO TO VAL "22"
9705 LET LM=VAL "7": LET cols=VAL "40": DIM d$(VAL "16")
9706 INPUT "1st LINE TO PRINT ";ln1: LET ln1=ln1-I: LET tasfile=VAL "ln1*64+33280": LET b=I: LET ct=I
9709 ON ERR GO TO VAL "9800": LET pglines=VAL "58"+VAL "18*(LF=8)"
9710 FOR N=tasfile TO VAL "52480" STEP VAL "64"
9711 LET x=VAL "0+(PEEK N=136)": LET j0=N+cols-I-VAL "19*x": PRINT AT INT PI,o;
9712 IF ct<INT PI AND NOT ln1 THEN LPRINT d$+("↑0E" AND ct=I);: FOR J=N+I*(ct=I) TO N+VAL "33+30*(ct=I+I)": LPRINT CHR$ PEEK J;: NEXT J: LET ct=ct+I: LPRINT : NEXT N
9730 LPRINT d$( TO LM)+("↑1BW1" AND x);
9735 FOR J=N TO j0
9740 IF PEEK j<VAL "128" THEN PRINT CHR$ PEEK J;: LPRINT CHR$ PEEK J;
9741 NEXT J
9743 LET cols2=N+pglines*VAL "64"
9744 LET j0= cols+cols2-VAL "20*(PEEK cols2=136)"
9745 LPRINT ("↑1BW0" AND x)+" "+("↑0E" AND PEEK cols2=VAL "136");
9746 PRINT AT INT (PI*PI),o;
9747 FOR j=cols2 TO j0
9749 IF PEEK j<VAL "128" THEN PRINT CHR$ PEEK j;: LPRINT CHR$ PEEK j;
9750 NEXT j
9751 LPRINT
9755 INPUT "": PRINT #o;AT I+I,o;" BREAK TO STOP LPRINT ";pglines;" LINE ";ct
9762 IF ct=pglines THEN LET ct=I: LET N=cols2+I: GO TO VAL "9900"
9765 LET ct=ct+I
9770 NEXT N
9800 PRINT FLASH I'" STOP LPRINT ": PAUSE VAL "100": LPRINT : GO TO VAL "20"
9900 LET b=b+I: INPUT "Insert PAGE ";(b);b$
9920 GO TO VAL "9770"
9999 REM Create 121-byte REM line to store printer code here.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.