start ----------------- ULTRA SOLUTIONS By Mark A. Heath Copyright(c) 1989 MindCraft Publ. Corp. Concord, Ma 01742 Block Operations: ----------------- :! Select Subscript text :! Select Superscript text :! Select boldface text :! Select Centered text :! Select Group of text :! Select underlined text ----------- : B then up rpt : else if Y < B then down rpt : else begin : { Move cursor to rightmost col. of selection } posn X,Y : if X < R then right rpt : else if X > R then left rpt : else ba-Ctrl-_ :{ Perform appropriate action at bottom of selection } begin : { Move cursor to top line of seleciton } posn X,Y : if Y > T then up rpt : else begin : { Move cursor to leftmost col. of selection } posn X,Y : if X > L then left rpt : else if X < L then right rpt : else C = C + 20 : ba-Ctrl-_>! Perform appropriate action at top Select block, perform operation #C. Used by ba-down ba-up ba-b ba-c ba-g ba-u ----------- : B then { Switch T & B, R & L } A = T : T = B : B = A : A = L : L = R : R = A : else if T = B then { Do we need to switch L & R } if L > R then A = L : L = R : R = A>! Reset T,B,L,R if necessary, used by ba-Ctrl-\ ----------- :! Perform operation #C, used by ba-Ctrl-\ --------------------- Page Numbers: (sa-#) --------------------- #: 94 then K = K - 32 : elseoff : { Get a key, convert it to uppercase if necessary } if K = 89 then sa-M : { Set Marker #254 (save initial position } zoom oa-Z oa-1 ba-ctrl-W : { Remove headers, footers, top & bottom mgns } oa-1 oa-O print "TM" : rtn print ".5" : rtn print "BM" : rtn print ".5" : rtn esc { Set top and bottom margins } ba-ctrl-V : ba-ctrl-X { Prompt for page numbers } else : msg '' : zoom>! Insert Page Numbers ----------- :! { Make a blank footer } Other pages: top Used by sa-# ------------ :! { Put page number in the blank footer } Other pages: bottom Used by sa-# ------------ :! { Make a blank footer for the bottom } Other pages: None. Used by sa-# ------------ : 94 then K = K - 32 : elseoff : { Get uppercase key } if K = 27 then goto ba-ctrl-X : { ESC pressed, exit } else if K = 66 then ba-ctrl-Z : { Do Left/Center/Right } else : ctrl-L ctrl-L : { make footer blank } elseoff : sa-K print "2" : rtn $1 = "Not found" : if $1 = screen 1, 24, len $1 then { No more pages, quit } spc oa-1 zoom : stop : else : rtn msg 'Other Pages: T)op B)ottom N)one' : K = key : if K > 94 then K = K - 32 : elseoff : { Get uppercase Key } if K = 27 then goto ba-ctrl-X : { ESC pressed, exit } else if K = 84 then ba-ctrl-R : stop : else : { Top } if K = 66 then ba-ctrl-S : stop : else : { Bottom } ba-ctrl-T>! { None } Prompt for page numbers. Used by sa-# ------------ :! Removes headers, footers, bottom margins, and top margins. Used by sa-# ------------ :! Go back to original spot and stop macro ------------ : 94 then K = K - 32 : elseoff : { Get uppercase key } if K = 27 then goto ba-ctrl-X : { ESC pressed, exit } else if K = 76 then oa-O print "PP" : rtn esc else : { Page number: Left } if K = 67 then up oa-O print "CN" : rtn esc down oa-O print "PP" : rtn esc down oa-O print "UJ" : rtn esc : up sa-right : else : { Page number: Centered } if K = 82 then ba-right : left left left oa-O print "PP" : rtn esc>! { Page number: Right } Do Left/Center/Right for all pages. Used by sa-# :! Go to left margin (Used by sa-right) :! Go to end of line (Used by sa-#) :! Go to right margin K:P! Calculate page numbers and find page (Used by sa-#) ------------------------ Make Title Page: (sa-T) ------------------------ T:! Make a title page G:M254! Goto marker 254 (set with sa-M) (Used by sa-T and sa-#) M:SM254! Set marker 254 (Used by sa-T and sa-#)