source: trunk/third/transcript/man/enscript.1p @ 9217

Revision 9217, 6.8 KB checked in by ghudson, 28 years ago (diff)
Remove all comments about the SysV spooling system, since we always use the BSD one. Changes to get along with catman better (the NAME section has to use no special formatting and include a \- after the name).
Line 
1.TH ENSCRIPT 1 "18 August 1992" "Adobe Systems"
2\" Copyright (c) 1985,1987,1990,1991,1992 Adobe Systems Incorporated. All Rights Reserved.
3\" ATTN GOVERNMENT END USERS: See notice of rights in file XPSLIBDIRX/Notice
4\" RCSID: $Header: /afs/dev.mit.edu/source/repository/third/transcript/man/enscript.1p,v 1.2 1996-10-14 05:09:41 ghudson Exp $
5.ds PS P\s-2OST\s+2S\s-2CRIPT\s+2
6.SH NAME
7enscript \- convert text files to PostScript language format for printing
8.SH SYNOPSIS
9.B enscript
10[
11.B -\s-11BcGghlmoqRr2\s+1
12] [
13.BI -v columns
14] [
15.BI -L lines
16] [
17.BI -f bfont
18] [
19.BI -F hfont
20] [
21.BI -b header
22] [
23.BI -p out
24]
25.br
26[
27.BI -s size
28] [
29.BI -S feature=value
30] [
31.BI -T characters
32] [
33.I spoolopts
34] [
35.I files
36]
37.SH DESCRIPTION
38.I enscript
39reads in plain text files, converts them to \*(PS language, and spools them
40for 
41printing on a \*(PS printer.  Fonts, headings, limited formatting
42options, and spooling options may be specified.
43.sp
44For example:
45.RS
46enscript -Paleph boring.txt
47.RE
48prints a copy of the file called boring.txt on the printer called
49aleph.
50.RS
51enscript -2r boring.c
52.RE
53prints a two-up landscape listing of the file called boring.c on
54the default printer (see below).
55.sp
56Font specifications have two parts:
57a font name as known to the \*(PS printer (e.g., Times-Roman, Times-BoldItalic,
58Helvetica, Courier), and a point size (1 point=1/72 inch; 8 point
59is a good small point size).  So Courier-Bold8 is 8 point Courier Bold,
60Helvetica12 is 12 point Helvetica.
61.sp
62The environment variable ENSCRIPT may be used to specify defaults.  The
63value of ENSCRIPT is parsed as a string of arguments
64.I before
65the arguments
66that appear on the command line.  For example "ENSCRIPT=\'-fTimes-Roman8\'"
67sets the default body font to 8 point Times Roman.
68.sp
69The possible options are:
70.TP
71.B -1
72sets in
731
74column. One column is the default.
75.TP
76.B -2
77sets in
782
79columns.
80.TP
81.BI -v columns
82output is set in
83.I columns
84number of columns.  This is an extension of the
85.B -2
86switch.
87.TP
88.B -r
89rotates the output 90 degrees (landscape mode).
90This is good for output that requires a wide page or for program listings
91when used in conjunction with
92.B -2.
93.br
94"
95.B
96enscript -2r files
97" is a nice way to get program listings.
98.TP
99.B -R
100don't rotate, also known as portrait mode (the default).
101.TP
102.B -G
103prints in gaudy mode: causes page headings, dates, and page numbers to be
104printed
105in a flashy style, at some slight performance expense.
106.TP
107.B -l
108simulates a line printer: make pages 66 lines long and omit headers.
109.TP
110.B -B
111omits page headings.
112.TP
113.B -c
114truncates ("cuts") lines that are longer than the page width.
115Normally, long lines are wrapped around to the following line on the page.
116.TP
117.BI -b header
118sets the string to be used for page headings to
119.IR header . 
120The default header is constructed from the file name, its last
121modification date, and a page number.  You can include elements from the
122default header in your header by specifying %f for file name, %d for date,
123or %n for page number.  If you need a \'%\' character in the header, it must
124be specified by "%%".
125.TP
126.BI -L lines
127set the maximum number of lines to output on a page.
128.I Enscript
129usually computes how many lines to put on a page based on point size,
130and may put fewer lines per page than requested by
131.IR lines .
132.TP
133.BI -f bfont
134sets the font to be used for the body of each page.
135The default is Courier10 unless two-column rotated mode is used, in which
136case the default is Courier7.
137.TP
138.BI -F hfont
139sets the font to be used for page headings.
140The default is Courier-Bold10.
141.TP
142.BI -p out
143causes the \*(PS file to be written to the named file rather than
144being spooled for printing.  As a special case,
145.B -p
146.I-
147will send the resulting\*(PS language code to the standard output.
148.TP
149.B -g
150causes the fact that a file is garbage to be ignored.  Normally, any file
151with more than a small number of nonprinting characters is suspected of
152being garbage and not printed; this option means "print it anyway."
153.TP
154.B -o
155if
156.I enscript
157cannot find characters in a font, the missing characters are listed.
158.TP
159.B -q
160causes
161.I enscript
162to be quiet about what it is doing.
163.I Enscript
164won't report about pages, destination, omitted characters, etc. 
165Fatal errors are still reported to the standard error output.
166.TP
167.B -h
168suppresses printing of the job burst page.
169.TP
170.BI -s size
171chooses a paper size for printing.  This size must match one of the
172*PaperSize keywords in the \*(PS Printer Description file, such as
173Letter, Legal, or A4.
174.TP
175.BI -S feature=value
176chooses a printer feature, such as manual feed or duplex.  If
177.I value
178is omitted, a value of true is assumed.  These features must match a
179keyword in the \*(PS Printer Description file.  For example,
180"enscript -S ManualFeed" turns on manual feed.
181.TP
182.BI -T characters
183sets the width of a tab to be
184.I characters
185 number of characters.  This is
186especially useful to get columns to line up correctly when printing with a variable width font.
187.TP
188.BI -P printer
189causes the output to be sent to the named printer
190unless
191.BI -p file
192is specified. In that case, the printer name is used to access the
193printer's \*(PS Printer Description file for information, and the
194output is written to
195the specified file instead of being spooled for printing.
196.TP
197.BI -# n
198causes
199.I n
200copies of the output to be produced.  The default is one.
201.TP
202.B -m
203causes the printer daemon to send mail upon job completion.
204.TP
205.BI -J name
206sets the job name for use on the burst page.  Otherwise, the name of the
207first input file will be used.
208.TP
209.BI -C class
210set the job classification for use on the burst page.
211.PP
212.SH ENVIRONMENT
213.IP ENSCRIPT
214string of options to be used by
215.I enscript
216.IP PSLIBDIR
217path name of a directory to use instead of XPSLIBDIRX
218for
219.I enscript
220prologue and font metric files
221.IP PSTEMPDIR
222path name of a temporary directory to use instead of XPSTEMPDIRX
223for temporary files.
224.IP "PRINTER"
225the name of a printer (as in the
226.B -P
227option) for
228lpr
229to use.  If no
230.B -P
231option is specified,
232lpr
233will use this printer.  If neither
234.B -P
235nor PRINTER is set,
236.I enscript
237will spool to a printer named "PostScript".
238.SH FILES
239.TP 2.2i
240XPSLIBDIRX/*.afm
241font metrics files
242.TP
243XPSLIBDIRX/enscript.pro
244prologue for
245.I enscript
246 files
247.br
248.SH "SEE ALSO"
249pr(1), transcript(1), psfonts(1), ps630(1), lpr(1), lpq(1), lprm(1)
250.SH AUTHOR
251Adobe Systems Incorporated
252.br
253Gaudy mode by Guy Riddle of AT&T Bell Laboratories
254.SH BUGS
255.I Enscript
256generates temporary files which are spooled for printing.  The temporary file
257names are used by the spooling software (e.g.,
258lpq ),
259rather than the symbolic job name passed to
260lpr .
261.sp
262There are too many options.
263.SH NOTES
264\*(PS is a registered trademark of Adobe Systems Incorporated.
265.br
266Times and Helvetica are registered trademarks of Linotype.
267.br
268Unix is a trademark of AT&T Bell Laboratories.
269
Note: See TracBrowser for help on using the repository browser.