| 1 |
$! Given a DVI file, this command file carries out some of the steps |
| 2 |
$! needed to produce an A5 booklet suitable for folding and stapling. |
| 3 |
$! It is assumed the user has set up a page format suitable for A5 paper. |
| 4 |
$! The fancy pagination is done by Tom Rokicki's DVIDVI program. |
| 5 |
$! Note that 148mm = A5 width = half A4 height. |
| 6 |
$! |
| 7 |
$! We assume that the following symbols have been defined: |
| 8 |
$! a5booklet :== @disk$utils:[utilities.tex.dvidvi]a5booklet |
| 9 |
$! dvidvi :== $disk$utils:[utilities.tex.dvidvi]dvidvi |
| 10 |
$! |
| 11 |
$ if (p1 .nes. "") then goto file_given |
| 12 |
$ type sys$input |
| 13 |
|
| 14 |
Usage: a5booklet file[.dvi] |
| 15 |
|
| 16 |
$ exit |
| 17 |
$ |
| 18 |
$ file_given: |
| 19 |
$ on warning then exit |
| 20 |
$ dvidvi -m 4:-1,2(148mm,0mm) 'p1' part1 ! create part1.dvi |
| 21 |
$ dvidvi -m 4:-3,0(148mm,0mm) 'p1' part2 ! create part2.dvi |
| 22 |
$! |
| 23 |
$! Now explain how to preview or PSPRINT the new DVI files. |
| 24 |
$! |
| 25 |
$ type sys$input |
| 26 |
|
| 27 |
PART1.DVI and PART2.DVI have been created; each part contains the pages that |
| 28 |
must be printed on the same side of the paper. In both parts, each A4 page |
| 29 |
contains two side-by-side A5 pages from your original document. |
| 30 |
|
| 31 |
To preview these DVI files you need to tell DVItoVDU to display each page |
| 32 |
in a landscaped orientation; for example: |
| 33 |
|
| 34 |
$ dvitovdu /xsize=11.7in /ysize=8.3in part1 |
| 35 |
|
| 36 |
To create an A5 booklet suitable for folding and stapling, carry out the |
| 37 |
following steps (assuming you are using a LaserWriter): |
| 38 |
|
| 39 |
1. $ psprint /land /nobanner /notify part1 |
| 40 |
|
| 41 |
2. When this job has finished, take the output and put it back into |
| 42 |
the input cassette without changing the orientation in any way. |
| 43 |
|
| 44 |
3. $ psprint /land part2 |
| 45 |
|
| 46 |
4. Depending on the number of pages, the final output may not be collated. |
| 47 |
You may need to change the placement of the bottom sheet(s). |
| 48 |
|
| 49 |
$ exit |
| 50 |
|