source: trunk/third/transcript/man/psrev.1p @ 9216

Revision 9216, 3.1 KB checked in by ghudson, 28 years ago (diff)
A man page for the psrev emulation script.
Line 
1.TH PSREV 1 "31 May 1996" "MIT Athena"
2.ds PS P\s-2OST\s+2S\s-2CRIPT\s+2
3.SH NAME
4psrev \- select or reverse the page order of a PostScript file
5.SH SYNOPSIS
6.B psrev
7[
8.B \-R
9] [
10.BI \-s pagespec
11] [
12.I file
13]
14.SH DESCRIPTION
15.I psrev
16is a script which reads in the specified \*(PS language
17.I file
18(or the standard input if no file is named) and, if the input conforms
19to the \*(PS language document structuring conventions, reverses and
20selects specified pages for printing, and writes the resulting file on
21the standard output.
22.PP
23.I psrev
24is no longer a part of the Transcript package from Adobe.  Transcript
25now contains
26.IR pslpr ,
27which provides equivalent functionality in addition to several more
28advanced options.  In order to facilitate the transition to Transcript
294.1, Athena release 8.0 contains a simple script that understands old
30.I psrev
31options and invokes
32.I pslpr
33with appropriate arguments.  However, this script will probably be
34removed in the next Athena release, and the users are encouraged to use
35.I pslpr
36instead.
37.sp
38The possible options are:
39.TP
40.BI \-s " pagespec"
41specifies a range (or several ranges) of pages to be printed.
42.I Pagespec
43is a string, not containing spaces, of the form ``pagerange[,pagespec]''.
44.I Pagerange
45may be a single page number or a range
46of the form ``N-M'' which means print pages N through M.
47.sp
48With original
49.IR psrev ,
50-N would print from the beginning of the document to page N, and M-
51would print from page M to the end of the document.  With the current
52script, -N is equivalent to 1-N, and M- is equivalent to M-9999; these
53may not be equivalent to the old meanings if your document uses an
54unorthodox page numbering.
55.sp
56The analogous
57.I pslpr
58option is
59.BI -i pagerange
60which can be specified multiple times for multiple ranges.  Thus,
61.I psrev
62``-sM-N,P-Q,...'' is equivalent to
63.I pslpr
64``-iM-N -iP-Q ...''.
65.I pslpr
66does not accept ranges of the form ``-N'' or ``M-''.
67.TP
68.B -R
69will not reverse the page order (the default is to reverse).
70.sp
71Note that the meaning of the -R option in
72.I pslpr
73is exactly opposite from
74.IR psrev .
75.SH EXAMPLES
76The following command reads a \*(PS language file called infile.ps and
77outputs pages 3 through 19, 37 through 60 and page 90 to outfile.ps.
78.RS .5i
79psrev -R -s3-19,37-60,90 printfile.ps > outfile.ps
80.RE
81Here are two ways to accomplish the same effect using
82.IR pslpr :
83.RS .5i
84pslpr -p outfile.ps -i3-19 -i37-60 -i90 infile.ps
85.br
86pslpr -p- -i3-19 -i37-60 -i90 infile.ps > outfile.ps
87.RE
88.PP
89In the next example, a text file is processed by enscript, creating a
90\*(PS language file which is page-reversed and printed on printer
91named ``ajax'':
92.RS .5i
93enscript -p- textfile | psrev | lpr -Pajax
94.RE
95Or, using
96.I pslpr
97again:
98.RS .5i
99enscript -p- textfile | pslpr -R -Pajax
100.RE
101.SH ENVIRONMENT
102.IP PSRESOURCEPATH
103path name to use for accessing printer resource information
104for downloadable resources
105.IP PSTEMPDIR
106path name of a temporary directory to use instead of /usr/tmp
107for spooled temporary files
108.br
109.SH "SEE ALSO"
110transcript(1), pslpr(1), enscript(1), postscript(7)
111.SH "NOTES"
112\*(PS is a registered trademark of Adobe Systems Incorporated.
Note: See TracBrowser for help on using the repository browser.