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

Revision 15459, 6.8 KB checked in by zacheiss, 24 years ago (diff)
Make nroff actually display a dash, so that we tell users to type "-p -" to send output to stdout, instead of telling them "-p".
RevLine 
[9089]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
[15459]4\" RCSID: $Header: /afs/dev.mit.edu/source/repository/third/transcript/man/enscript.1p,v 1.3 2001-01-03 05:20:51 zacheiss Exp $
[9089]5.ds PS P\s-2OST\s+2S\s-2CRIPT\s+2
6.SH NAME
[9217]7enscript \- convert text files to PostScript language format for printing
[9089]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
[15459]146\- will send the resulting\*(PS language code to the standard output.
[9089]147.TP
148.B -g
149causes the fact that a file is garbage to be ignored.  Normally, any file
150with more than a small number of nonprinting characters is suspected of
151being garbage and not printed; this option means "print it anyway."
152.TP
153.B -o
154if
155.I enscript
156cannot find characters in a font, the missing characters are listed.
157.TP
158.B -q
159causes
160.I enscript
161to be quiet about what it is doing.
162.I Enscript
163won't report about pages, destination, omitted characters, etc. 
164Fatal errors are still reported to the standard error output.
165.TP
166.B -h
167suppresses printing of the job burst page.
168.TP
169.BI -s size
170chooses a paper size for printing.  This size must match one of the
171*PaperSize keywords in the \*(PS Printer Description file, such as
172Letter, Legal, or A4.
173.TP
174.BI -S feature=value
175chooses a printer feature, such as manual feed or duplex.  If
176.I value
177is omitted, a value of true is assumed.  These features must match a
178keyword in the \*(PS Printer Description file.  For example,
179"enscript -S ManualFeed" turns on manual feed.
180.TP
181.BI -T characters
182sets the width of a tab to be
183.I characters
184 number of characters.  This is
185especially useful to get columns to line up correctly when printing with a variable width font.
186.TP
187.BI -P printer
188causes the output to be sent to the named printer
189unless
190.BI -p file
191is specified. In that case, the printer name is used to access the
192printer's \*(PS Printer Description file for information, and the
193output is written to
194the specified file instead of being spooled for printing.
195.TP
196.BI -# n
197causes
198.I n
199copies of the output to be produced.  The default is one.
200.TP
201.B -m
202causes the printer daemon to send mail upon job completion.
203.TP
204.BI -J name
205sets the job name for use on the burst page.  Otherwise, the name of the
206first input file will be used.
207.TP
208.BI -C class
209set the job classification for use on the burst page.
210.PP
211.SH ENVIRONMENT
212.IP ENSCRIPT
213string of options to be used by
214.I enscript
215.IP PSLIBDIR
216path name of a directory to use instead of XPSLIBDIRX
217for
218.I enscript
219prologue and font metric files
220.IP PSTEMPDIR
221path name of a temporary directory to use instead of XPSTEMPDIRX
222for temporary files.
[9217]223.IP "PRINTER"
[9089]224the name of a printer (as in the
225.B -P
226option) for
227lpr
228to use.  If no
229.B -P
230option is specified,
231lpr
232will use this printer.  If neither
233.B -P
234nor PRINTER is set,
235.I enscript
236will spool to a printer named "PostScript".
237.SH FILES
238.TP 2.2i
239XPSLIBDIRX/*.afm
240font metrics files
241.TP
242XPSLIBDIRX/enscript.pro
243prologue for
244.I enscript
245 files
246.br
247.SH "SEE ALSO"
[9217]248pr(1), transcript(1), psfonts(1), ps630(1), lpr(1), lpq(1), lprm(1)
[9089]249.SH AUTHOR
250Adobe Systems Incorporated
251.br
252Gaudy mode by Guy Riddle of AT&T Bell Laboratories
253.SH BUGS
254.I Enscript
255generates temporary files which are spooled for printing.  The temporary file
256names are used by the spooling software (e.g.,
257lpq ),
258rather than the symbolic job name passed to
259lpr .
260.sp
261There are too many options.
262.SH NOTES
263\*(PS is a registered trademark of Adobe Systems Incorporated.
264.br
265Times and Helvetica are registered trademarks of Linotype.
266.br
267Unix is a trademark of AT&T Bell Laboratories.
268
Note: See TracBrowser for help on using the repository browser.