Debian Codegraph @

texk/dvidvi/doubside.com

raw
1 $! Given a DVI file, this command file carries out some of the steps
2 $! needed to print '.dvi' files double sided. The fancy pagination
3 $! is done by Tom Rokicki's DVIDVI program.
4 $!
5 $! We assume that the following symbols have been defined:
6 $! doubside :== @disk$utils:[utilities.tex.dvidvi]doubside
7 $! dvidvi :== $disk$utils:[utilities.tex.dvidvi]dvidvi
8 $!
9 $ if (p1 .nes. "") then goto file_given
10 $ type sys$input
11
12 Usage: doubside file[.dvi]
13
14 $ exit
15 $
16 $ file_given:
17 $ on warning then exit
18 $ dvidvi -m 2:-1 'p1' part1 ! create part1.dvi
19 $ dvidvi -m 2:0 'p1' part2 ! create part2.dvi
20 $!
21 $! Now explain how to preview or PSPRINT the new DVI files.
22 $!
23 $ type sys$input
24
25 PART1.DVI and PART2.DVI have been created; each part contains the pages that
26 must be printed on the same side of the paper.
27
28 To print the document double sided, carry out the following steps (assuming
29 you are using a LaserWriter):
30
31 1. $ psprint /nobanner /notify part1
32
33 2. When this job has finished, take the output and put it back into
34 the input cassette without changing the orientation in any way.
35
36 3. $ psprint part2
37
38 4. Depending on the number of pages, the final output may not be collated.
39 You may need to change the placement of the bottom sheet(s).
40
41 $ exit
42