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