Manual page for DITORDER(1)
ditorder - reverse, reorder, repeat, and select troff pages
ditorder [ -r -o<list> -c# -C# -d ] file
performs reordering operations of eroff and ditroff
can do page order reversal,
select specific pages to be printed,
repeat selected or all pages,
and reorder pages for duplex copying.
The options are:
Print only the pages in list,
a sequence of comma separated numbers,
or number pairs separated by hyphens ``-''.
For example, -o1-10,7,50-40 prints
1 though 10,
and pages 50 down to 40,
in the order specified.
A number of the form -N means 1 to page N.
A number of the form N- means page N to the end of the document.
Print pages in reverse order.
Not applicable if the -o switch is used.
Print # copies of each page.
Each page is printed # number of times.
For example, -c3 prints a two page document in this order: 1,1,1,2,2,2.
Print # copies of each document.
Each document is printed # number of times.
For example, -C3 prints a two page document in this order: 1,2,1,2,1,2.
Print in duplex ordering.
It is assumed one is printing two-up -- two pages per sheet.
Pages are printed as follows:
sheet 1: 1,3,
sheet 2: 4,2,
sheet 3: 5,7,
sheet 4: 8,6,
This enables adjacent sheets to be printed or copied back to back
and maintain the correct page number sequence.
The remaining argument is assumed to be a
file name of troff(1) output.
If no file name, or ``-'' is specified,
the standard input is read.
Eroff, will call this processor if the -O option is used.
A typical use of eroff(1) to print duplex pages in reverse
to a PostScript printer would be:
eroff -Tps -mm -Or -Od file.t
using troff directly and
Elan's PostScript driver eps,
the same results would be obtained via:
troff -mm -Tps file.t | ditorder -r -d | eps | lp -dps
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97