Debian Codegraph @

texk/dvidvi/dvidvi.1

raw ◀ ▶
1 Debian patch touch this file
•1 .TH DVIDVI 1 "February 2011"
2 .SH NAME
3 .PP
4 dvidvi \- selects and/or re-arranges pages in a TeX dvi file
5 .SH SYNOPSIS
6 .PP
7 dvidvi [param] infile outfile
8 .SH DESCRIPTION
9 .SS Introduction
10 .PP
11 The dvidvi program converts a dvi file into another dvi file, with perhaps
12 certain changes.
13 .br
14 .SS Parameters
15 .PP
16 -f n page n is first page selected
17 .br
18 -l n page n is last page selected
19 .in +10
20 .ti -10
21 -n n select at most n pages. Notice that n is the number of pages
22 selected, independently of the number of pages actually
23 contained in a sheet
24 .ti -10
25 -i { n1..n2 | n1 }[,...]
26 .br
27 include pages (ranges allowed). When this option is
28 used, ONLY the specified pages are selected. However,
29 we can exclude from these pages with the option -x
30 .ti -10
31 -x { n1..n2 | n1 }[,...]
32 .br
33 exclude pages (ranges allowed)
34 .ti -10
35 -q work in quiet mode, that is do not print in the screen
36 messages of how the work is being done.
37 .ti -10
38 -r reverse the order of the pages.
39 .PP
40 The page numbers for the above options -f -l -i and -x can be specified
41 in different ways.
42 .in +4
43 .ti -4
44 1) If a number n is given, it is interpreted as the n'th page from the
45 beginning of the .dvi file. Of course, this number is independent of the
46 page number assigned by TeX.
47 .ti -4
48 2) TeX page numbers are those who are actually written in the page;
49 these page numbers can be modified, for example, by using the TeX commands
50 \\pagenumbering, \\setcounter{page}{n}, and \\addtocounter{page}{n}.
51 A TeX page number can be specified by preceding the number n with the
52 character @. Thus, if you specify -f @25 -l @30 you select the pages
53 between 25 and 30, these numbers being those assigned by TeX.
54 .ti -4
55 3) However, several pages can have the same TeX page number in a .dvi file.
56 For example, the introductory pages in a book are numbered i, ii, and so on
57 until the first chapter begins and then, the pages are numbered 1, 2, etc.
58 In this case, the pages numbered i and 1 in the .dvi file have the same TeX
59 page number. If you want to select for example the second occurrence of the
60 page numbered 1, you can specify a page number as (@2)1. Thus @1 is equivalent
61 to (@1)1. For example, if you specify -f (@2)1 -l(@2)10 you select the pages
62 between 1 and 10 of the first chapter, not the introductory pages between
63 i and x.
64 .PP
65 There is another parameter that tells dvidvi how you want to change page
66 layout and specifications. This is the -m parameter.
67 .in +4
68 .ti -4
69 * The number preceding the colon is the modulo value. Everything will be
70 done in chunks of pages this big. If there is no colon, than the default
71 value is assumed to be one. The last chunk of pages is padded with as many
72 blank pages as necessary.
73 .ti -4
74 * Following the colon is a comma-separated list of page numbers. These
75 page numbers are with respect to the current chunk of pages, and must lie
76 in the range zero to the modulo value less one. If a negative sign
77 precedes the number, then the page is taken from the mirror chunk; if there
78 are m chunks, then the mirror chunk of chunk n is the chunk numbered m-n-1.
79 Put simply, it is the chunk numbered the same, only from the end. This can
80 be used to reverse pages. If no number is given, the page number defaults
81 to 1.
82 .ti -4
83 * Following each page number is an optional offset value in parenthesis,
84 which consists of a pair of comma-separated dimensions. Each dimension is
85 a decimal number with an optional unit of measure. The default unit of
86 measure is inches, or the last unit of measure used. All units are in true
87 dimensions. Allowable units of measure are the same that TeX allows: in,
88 mm, cm, pt, pc, dd, and cc.
89 .SS Copyright
90 dvidvi 1.0, Copyright (C) 1988-2011, Radical Eye Software
91 Anyone may freely use, modify and/or distribute this program and
92 documentation, or any portion thereof, without limitation.
93 .SH EXAMPLES
94 .PP
95 .in +10
96 .ti -10
97 -m - Reverses the order of the pages. This time, both the modulo and the
98 page number are defaulted.
99 .ti -10
100 -m 2:0 Selects the first, third, fifth, etc. pages from the file. Print
101 this one after printing the next, taking the paper out of the
102 feed tray and reinserting it into the paper feed.
103 .ti -10
104 -m 2:-1 Selects the second, fourth, etc. pages, and writes them in reverse
105 order.
106 .ti -10
107 -m 4:-1,2(4.25in,0in)
108 .ti -10
109 -m 4:-3,0(4.25in,0in)
110 .br
111 Useful for printing a little booklet, four pages to a sheet,
112 double-sided, for stapling in the middle. Print the first one,
113 put the stack back into the printer upside down, and print the
114 second. The `in' specifications are superfluous.
115 .ti -10
116 -m ,(1pt,1)
117 .br
118 Scare your system administrator! Actually, things are so blurry with this
119 option, you may want to send enemies letters printed like this. *Long*
120 letters.
121 .ti -10
122 -m 4:0(5.5in,4.25),3(0,4.25)
123 .ti -10
124 -m 4:1(0in,4.25),2(5.5,4.25)
125 .br
126 Print a four-page card on one sheet. Print the first, rotate the paper 180
127 degrees and feed it again. (PostScript people can do funny tricks with
128 PostScript so this isn't necessary.)