1DVITODVI(1) General Commands Manual DVITODVI(1)
2
3
4
6 dvitodvi - rearrange pages in a DVI file
7
9 dvitodvi [ -q ] [ -i infile ] [ -o outfile ] [ -wwidth ] [ -hheight ]
10 pagespecs [ infile [ outfile ] ]
11
13 Dvitodvi rearranges pages from a DVI file, creating a new DVI file.
14 Dvitodvi can be used to perform a large number of arbitrary re-arrange‐
15 ments of Documents, including arranging for printing 2-up, 4-up, book‐
16 lets, reversing, selecting front or back sides of documents, scaling,
17 etc.
18
19 pagespecs follow the syntax:
20
21 pagespecs = [modulo:][mag@]specs
22
23 specs = spec[+specs][,specs]
24
25 spec = [-]pageno[(xoff,yoff)]
26
27 modulo is the number of pages in each block. The value of modulo should
28 be greater than 0; the default value is 1. The optional mag parameter
29 adjusts the file's magnification by the magnification specified. The
30 magnification and modulo can be specified in reverse order if desired.
31 specs are the page specifications for the pages in each block. The
32 value of the pageno in each spec should be between 0 (for the first
33 page in the block) and modulo-1 (for the last page in each block)
34 inclusive. The optional dimensions xoff and yoff shift the page by the
35 specified (positive) amount. xoff and yoff are in PostScript's points,
36 but may be followed by the units cm or in to convert to centimetres or
37 inches, or the flag w or h to specify as a multiple of the width or
38 height. If the optional minus sign is specified, the page is relative
39 to the end of the document, instead of the start.
40
41 If page specs are separated by + the pages will be merged into one
42 page; if they are separated by , they will be on separate pages. If
43 there is only one page specification, with pageno zero, the pageno may
44 be omitted.
45
46 The -w option gives the width which is used by the w dimension speci‐
47 fier, and the -h option gives the height which is used by the h dimen‐
48 sion specifier. These dimensions are also used (after scaling) to set
49 the clipping path for each page.
50
51 Dvitodvi normally prints the page numbers of the pages re-arranged; the
52 -q option suppresses this.
53
55 This section contains some sample re-arrangements. To put two pages on
56 one sheet (of landscaped A3 paper), the pagespec to use is:
57
58 2:0+1(21cm,0)
59
60 To reduce an A3 page to A4 size, the pagespec to use is:
61
62 700@(-.3in,-.3in)
63
64 To select all of the odd pages in reverse order, use:
65
66 2:-0
67
68
70 Angus Duggan, from dviselect(1), by Chris Torek, University of Maryland
71
73 dviconcat(1), dvibook(1), dviselect(1), latex(1), tex(1)
74 MC-TeX User's Guide
75 The TeXbook
76
78 Dvitodvi does not adjust some of the parameters in the postamble. This
79 may be a problem if these values are used to size certain structures in
80 the output conversion programs.
81
82
83
84 DVITODVI(1)