
                    PRINTING UNBOUND BOOK GALLEYS
                      WITH WORDSTAR FOR DOS 7.0

                  Copyright 1994 by Robert J. Sawyer
                              76702,747

                       Saturday, June 25, 1994

For years I've wanted to get WordStar to do printouts on my LaserJet
that look like open pages of a book, to simulate unbound galleys for
my novels.  That is, I wanted it to produce landscape sheets that look
something like they have two book pages printed side by side on them,
like so:

   2 / ROBERT J. SAWYER                  END OF AN ERA / 3

       ====================     ==========================
   =====================        ====================
       ====================         ======================
   ========================     ==========================
   ========================     =========
   ========================         ======================
   ================             ==========================
       ====================     ==========================

The problem was getting WordStar to print both the left and the right
page headers on the same physical sheet of paper WITH DIFFERENT PAGE
NUMBERS FOR EACH ONE.

I'd tried all kinds of tricks (using merge-math to increment page
numbers, using snaking columns, .XL 00 page over-printing, ^OZ in 
header lines, etc. etc.).

Nothing worked.  But finally a solution came to me that does work.

First, set up your landscape pages with different even and odd page
offsets, and different even and odd page headers.  I use these dot
command to do that:

 .pr or=l
 .pl 8.5"
 .poe .8"
 .poo 5.8"
 .rm 4"
 .h1e # / ROBERT J. SAWYER
 .h1o <Header Odd>END OF AN ERA / #

(The "Header Odd" style sheet used in the .h1o line has the right
margin set to 4", and justification set to flush right.)

Now, the trick:  Print the file using your normal LaserJet PDF, but in
WordStar's print dialog box TYPE A FILENAME (such as "GALLEYS.PCL") in
the "Redirect to" field.  This will produce a file on disk containing
all the commands WordStar would normally send to your printer (such as
font-selection strings and other printer commands -- including the
form-feed commands at the end of each page).

Now, open GALLEYS.PCL in WordStar's NON-DOCUMENT mode, and issue this
macro to strip out EVERY OTHER form-feed command (just read this macro
code into WordStar's ^MD macro editor to create the macro):

======================================================================


Sub Main
    AutoRestore(ON)
    CmdTags(ON)
    HideDots(OFF)
    Key("^Qg^L")

Loopgarou:  Key("^L")
            IfException
            ACK: Key("{Enter}")
            stop
            End IfException
            Key("^G")
            Key("^L")
            IfException
            ACK: Key("{Enter}")
            stop
            End IfException
            Goto Loopgarou
End Sub

======================================================================


When done, save the file AND EXIT WORDSTAR.

^L is the form-feed command; the above macro strips out every second
occurence of it.  This leaves you with a file that will only form feed
after odd-numbered pages.  In other words, it will print an
even-numbered page and the following odd-numbered page ON THE SAME
SHEET OF PAPER.  Since two logical document pages are being printed
before the form feed, you get two different page numbers on the same
physical sheet of paper.

DON'T print GALLEYS.PCL from WordStar.  Rather, just send it to
the printer directly from the DOS prompt with the command:

   COPY /B GALLEYS.PCL PRN

Voila!  A printout that takes advantage of all the fancy formatting
you can do with WordStar, but has the kind of page numbering needed to
simulate book galleys.

======================================================================

Toronto writer Robert J. Sawyer is author of the science-fiction
novels GOLDEN FLEECE (December 1990), FAR-SEER (June 1992), FOSSIL
HUNTER (May 1993), FOREIGNER (March 1994), END OF AN ERA (October
1994), and HOBSON'S CHOICE (May 1995).
