home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume27 / psf3 / part08 < prev    next >
Text File  |  1992-01-20  |  40KB  |  1,456 lines

  1. Newsgroups: comp.sources.misc
  2. From: tony@ajfcal.cuc.ab.ca (Tony Field)
  3. Subject:  v27i099:  psf3 - Postscript print filter system, v3, Part08/09
  4. Message-ID: <1992Jan21.013538.11814@sparky.imd.sterling.com>
  5. X-Md4-Signature: 49f968825a9b6e1a928d85f9f0f47a02
  6. Date: Tue, 21 Jan 1992 01:35:38 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: tony@ajfcal.cuc.ab.ca (Tony Field)
  10. Posting-number: Volume 27, Issue 99
  11. Archive-name: psf3/part08
  12. Environment: ISC, SUNOS, SYSVR3, DOS
  13. Supersedes: psf2: Volume 12, Issue 4-9
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then unpack
  17. # it by saving it into a file and typing "sh file".  To overwrite existing
  18. # files, type "sh file -c".  You can also feed this as standard input via
  19. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  20. # will see the following message at the end:
  21. #        "End of archive 8 (of 9)."
  22. # Contents:  man/psf.1 man/psf.doc
  23. # Wrapped by ajf@trifid on Sat Jan 18 22:55:51 1992
  24. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  25. if test -f 'man/psf.1' -a "${1}" != "-c" ; then 
  26.   echo shar: Will not clobber existing file \"'man/psf.1'\"
  27. else
  28. echo shar: Extracting \"'man/psf.1'\" \(17637 characters\)
  29. sed "s/^X//" >'man/psf.1' <<'END_OF_FILE'
  30. X.\" $Id: psf.1,v 3.2 1992/01/19 05:52:13 ajf Exp ajf $
  31. X.TH PSF 1 ""
  32. X.SH NAME
  33. Xpsf \- postscript filter
  34. X
  35. X.SH SYNOPSIS
  36. X
  37. X.B psf
  38. X[
  39. X.B -1|2|4
  40. X] [
  41. X.B -b
  42. X.I n
  43. X] [
  44. X.B -c
  45. X.I n
  46. X] [
  47. X.B -f
  48. X.I n
  49. X] [
  50. X.B -g
  51. X.I type
  52. X] [
  53. X.B -h
  54. X]
  55. X    [
  56. X.B -H
  57. X.I text
  58. X] [
  59. X.B -i
  60. X.I n
  61. X] [
  62. X.B -l
  63. X.I n
  64. X] [
  65. X.B -L
  66. X.I n
  67. X] [
  68. X.B -m
  69. X.I n
  70. X] [
  71. X.B -n
  72. X] 
  73. X    [
  74. X.B -p
  75. X.I n
  76. X] [
  77. X] [
  78. X.B -R
  79. X.I n
  80. X] [
  81. X.B -r
  82. X.I n
  83. X] [
  84. X.B -s 
  85. X] [
  86. X.B -t
  87. X.I n
  88. X] 
  89. X    [
  90. X.B -u
  91. X.I f.def
  92. X] [
  93. X.B -v
  94. X] [
  95. X.B -w 
  96. X] [
  97. X.B -x
  98. X] 
  99. X    [
  100. X.B -z
  101. X]
  102. X.I file... >out.file
  103. X
  104. X where -1|2|4    print 1,2 or 4 up on a page (default = 1)
  105. X       -b n      select paper bin n
  106. X       -c n      print columns (based on Courier font)
  107. X       -d        allow double sided printing
  108. X       -f n      font number/name (default = 0 = Courier)
  109. X       -g type   page type (default = letter)
  110. X       -h        put file name as header on each page
  111. X       -H text   put text as header on each page
  112. X       -i n      indent left margin n points
  113. X       -l n      print lines per page
  114. X       -L n      page length in lines
  115. X       -m n      indent top margin in points
  116. X       -n        set portrait (narrow) format
  117. X       -p n      set point size to n
  118. X       -R n      remove n lines from beginning of file
  119. X       -r n      remove n lines between pages
  120. X       -s        show page stats (line+column count)
  121. X       -t n      set tabs to n (default = 8)
  122. X       -u f.def  use this printer definition file
  123. X       -v        print pages in reverse
  124. X       -w        set landscape (wide) format
  125. X       -x        draw cross with 4-up page
  126. X       -z        force postscript translate (spooler only)
  127. X       file..    name of files to be printed (or stdin)
  128. X
  129. X   Fonts selection with -f n  (printer dependent)
  130. X       0 Courier               1 Helvetica
  131. X       2 Times-Roman           3 AvantGarde-Book
  132. X       4 Bookman-Light         5 NewCenturySchlbk-Roman
  133. X       6 Palatino-Roman        7 Helvetical-Narrow
  134. X       8 Garamond-Light        9 Korinna-Regular
  135. X       a Helvetica-Condensed   b ZapfChancery-MediumItalic
  136. X.fi
  137. X
  138. X.SH DESCRIPTION
  139. X
  140. X.I Psf
  141. Xaccepts text and filters it to print on postscript printers.
  142. XThe print may be "1-up", "2-up", or "4-up" on a page. 
  143. X.I Psf
  144. Xis a general purpose filter for most text and programme listings.  By
  145. Xusing various escape sequences (described below), any portion of the text
  146. Xmay be printed in different fonts and at different point sizes.
  147. X
  148. XIf "letter" sized paper is used, the page is assumed to have 63 lines and
  149. X80 columns wide.  For "legal" sized paper, the effective size is 81 lines
  150. Xby 80 columns.  These dimensions account for the "print region" (excluding
  151. Xmargins) of the page.
  152. X
  153. XThe actual number of print lines and characters per line may be
  154. Xover-ridden by specifing suitable options.
  155. X
  156. XThe most commonly used options are page rotation, 
  157. Xsetting point size, column count and line count:
  158. Xall of which allow you to place more printed information on a page.
  159. XAdditional options are for special formatting purposes and may be
  160. Xused if desired.
  161. X
  162. XSpecial formatting for 
  163. X.I nroff'ed
  164. Xdocuments and mail box
  165. Xprinting are encapsulated in shell scripts such as
  166. X.I psfnroff
  167. Xand
  168. X.I psfmbox.
  169. XThese scripts hide some of the more complex options.
  170. X
  171. X.SH EXAMPLES
  172. X
  173. XGeneral text may be printed with a command such as:
  174. X.nf
  175. X
  176. X    psf this.file that.fil | lp
  177. X.fi
  178. X
  179. XIf page rotation and print scaling
  180. Xis desired, typical commands are:
  181. X
  182. X.nf
  183. X    psf -                  (show help information)
  184. X    psf my.file my2.fil    (normal print)
  185. X    psf -2  my.file        (print 2 up on a page)
  186. X    psf -2xn my.c          (typical source listing)
  187. X    psf -4x my.file        (print 4 up on a page)
  188. X    psf -p8 my.fil         (print 8 point)
  189. X    psf -l66 -c132 -w a.b  (print 66 lines, 132 cols, landscape)
  190. X.fi
  191. X
  192. X.SH PRINT SIZE
  193. XTwo ways are available to adjust the print size.
  194. XIf the
  195. X.B point size
  196. X(using the
  197. X.B -p
  198. Xoption) is used, choosing a smaller point
  199. Xsize than the default of 12 results in smaller letters and more
  200. Xprinted lines.
  201. XChoosing a larger points size results in larger letters and reduces
  202. Xthe number of printed lines and columns on a page.
  203. X
  204. XA table of various point sizes, page sizes and their associated
  205. Xline and column count is printed with:
  206. X
  207. X.nf
  208. X      psf -s
  209. X.fi.
  210. X
  211. XIf the
  212. X.B column count (-c)
  213. Xor the
  214. X.B line count (-l)
  215. Xis adjusted, the number of printed rows and colums can be changed
  216. Xform the defaults for the paper size.
  217. XFor example, a 132 column, 60 line page in landscape layout
  218. Xmay be selected with:
  219. X
  220. X.nf
  221. X      psf -w -c132 -l60 my.fil | lp
  222. X.fi
  223. X
  224. XIf "unfortunate" row and column counts are selected,
  225. Xthe resulting letters could be squashed or elongated.
  226. X
  227. X.SH OPTIONS
  228. X.TP
  229. X.B \-1\|2\|4
  230. XSpecify the number of logical pages that are to be printed
  231. Xon a physical page.  By default, 
  232. X.I psf
  233. Xwill print one logical page per physical page.  
  234. X
  235. XIf two logical pages are specified
  236. Xwith 
  237. X.B -2
  238. X, then two pages are printed in "landscape" format:
  239. X
  240. X.nf
  241. X      +-----------+-----------+
  242. X      |           |           |
  243. X      |   pg 1    |   pg 2    |
  244. X      |           |           |
  245. X      +-----------+-----------+
  246. X.fi
  247. X
  248. XIf two-up printing in portrait layout is desired, use
  249. X.I -2n
  250. X(i.e. two up, narrow).  On letter sized paper this gives
  251. Xtwo logical pages: each is 80 columns by 126 lines.
  252. XThis layout may be preferred for programme listing.
  253. X
  254. X
  255. XIf four logical pages are specified with 
  256. X.B -4
  257. X, then the pages
  258. Xare printed in "portrait format:
  259. X
  260. X.nf
  261. X      +-----------+-----------+
  262. X      |           |           |
  263. X      |   pg 1    |   pg 2    |
  264. X      |           |           |
  265. X      +-----------+-----------+
  266. X      |           |           |
  267. X      |   pg 3    |   pg 4    |
  268. X      |           |           |
  269. X      +-----------+-----------+
  270. X.fi
  271. X
  272. XEach logical page printed in 2-up or 4-up format contains the same number
  273. Xof lines and print columns as if it were printed in 1-up portrait format.
  274. XThe characters may be compressed or expanded horizontally to fill to the
  275. Xlogical page width.  For example, printing with:
  276. X
  277. X.nf
  278. X       psf -4 my.text | lp
  279. X.fi
  280. X
  281. Xcreates four miniature pages, each of which would contain 63 print
  282. Xlines and 80 characters on a line.
  283. X
  284. XPrinting 2-up or 4-up preserves the number of lines on a logical printed
  285. Xpaged. Identical results (in terms of lines and columns on a logical
  286. Xpage) are realized with 1-up, 2-up or 4-up printing.
  287. X
  288. XClipping is performed in 2-up and 4-up printing.  If the line lengths on
  289. Xthe left half of the page exceed the logical page width, the lines will
  290. Xbe truncated.
  291. X
  292. X.TP
  293. X.B \-b n
  294. XSelect paper bin 
  295. X.I n.
  296. XIf this option is not specified, the
  297. Xdefault paper bin is used.
  298. X
  299. X.TP
  300. X.B \-c n
  301. XSets the number of print columns on a line.  The character width is based
  302. Xon the Courier font (10 pitch, character width of 7.2 points).  The text
  303. Xis scaled to print the desired number of characters over the entire page
  304. Xwidth.  Setting the character count does NOT alter the number of print
  305. Xlines.
  306. X
  307. XThe option 
  308. X.B -c40
  309. Xon letter sized paper
  310. Xhorizontally elongates the characters to twice normal width.
  311. XSimilarily, 
  312. X.B -c160
  313. Xon letter size paper compresses the characters
  314. Xto one half normal width.
  315. X
  316. X.TP
  317. X.B \-d
  318. XPrepare for double sided printing.  The resulting print stream
  319. Xis written to
  320. X.I psfbook.psd
  321. Xwhich must be subsequently filtered with 
  322. X.I psfdoub.
  323. XRefer to the man page for
  324. X.I psfdoub
  325. Xfor operational details.
  326. X
  327. X.TP
  328. X.B \-f n
  329. XAny of the standard postscript 
  330. Xfonts may be selected in lieu
  331. Xof the default Courier.  These are selected from the following
  332. Xtable:
  333. X.nf
  334. X
  335. X         0 Courier
  336. X         1 Helvetica
  337. X         2 Times-Roman
  338. X         3 AvantGarde-Book
  339. X         4 Bookman-Light
  340. X         5 NewCenturySchlbk-Roman
  341. X         6 Palatino-Roman
  342. X         7 Helvetica-Narrow
  343. X         8 Garamond-Light
  344. X         9 Korinna-Regular
  345. X         a Helvetica-Condensed
  346. X         b ZapfChancery-MediumItalic
  347. X.fi
  348. X
  349. XThe target printer may not have exactly these fonts.  To see which
  350. Xfonts are configured, display the psf usage information with:
  351. X
  352. X.nf
  353. X    psf -
  354. X.fi
  355. X
  356. XSince Courier is the only fixed-pitch font, it is usually used for
  357. Xprinting of man pages or programme listings.  The other fonts are
  358. Xproportionally spaced.
  359. X
  360. XThe selected font becomes the new "default font".
  361. X
  362. XThe font may be specified either by the font number or the font name.  For
  363. Xexample, the Courier font could be selected with either option '-f 0' 
  364. Xor '-f Courier'.  If the selection is by name, then only a few of the
  365. Xcharacters of the name must be provided.  The NewCenturySchlbk-Roman font
  366. Xcould be selected with the option '-f New'.
  367. X
  368. X.TP
  369. X.B \-g type
  370. XSets the working paper type.  The 
  371. X.I type
  372. Xmay be one of
  373. Xthe following with the default number of lines and
  374. Xcolumns (assuming 12 point, 10 pitch Courier characters):
  375. X
  376. X.nf
  377. X        type       lines     columns
  378. X       -------     -----     -------
  379. X       letter       63         80
  380. X       legal        81         80
  381. X       a4           67         78
  382. X       b5           58         67
  383. X.fi
  384. X
  385. XThe number of lines/columns represents the number of possible
  386. Xlines/columns in the printable region of the postscript printer -
  387. Xexclusive of the unprintable margin area.
  388. X
  389. X.TP
  390. X.B \-h
  391. XThe file name, page number and current date are printed at
  392. Xthe top of each page.  The point size is automatically scaled to
  393. Xpermit the specified number of text lines to be printed to account
  394. Xfor the additional two lines consumed by the title line.
  395. X
  396. X.TP
  397. X.B \-H text
  398. XPlace a header (like 
  399. X.B -h
  400. X) however use 
  401. X.I text
  402. Xrather than the filename.
  403. X
  404. X.TP
  405. X.B \-i n
  406. XIndent the left margin by 
  407. X.I n
  408. Xpoints.  This may be used to center
  409. Xthe text in the page.
  410. X
  411. X.TP
  412. X.B \-l n
  413. XSets the number of printed lines per page.  The default is 63 lines for
  414. Xletter sized paper.  If more than 63 lines per page are specified, the
  415. Xpoint size is automatically reduced to accomodate the line count.
  416. X
  417. XThe number of printed lines specified by 
  418. X.B -l
  419. Xmay be less than
  420. Xthe number of possible print lines specified by 
  421. X.B -L.
  422. XFor example,
  423. Xthe default total number of print lines is 63 (as though you
  424. Xhad specified 
  425. X.B -L63
  426. X).  If you used the option 
  427. X.B -l20
  428. X, then only
  429. Xthe first 20 lines of the possible 63 would be printed.  A skip to new
  430. Xpage would be performed for the 21st line and the remainder
  431. Xof the page would be blank.
  432. X
  433. X.TP
  434. X.B \-L n
  435. XSpecifies the number of possible print lines available on the page.
  436. XIf 
  437. X.B -L
  438. Xis
  439. Xspecified, then the page scale is adjusted to accomodate the
  440. Xline count.   However, only the number of lines specified by the
  441. X.B -l
  442. Xoption will actually print.
  443. X
  444. X.TP
  445. X.B \-m n
  446. XMove the top margin down by 
  447. X.I n
  448. Xpoints.  This may be used to center
  449. Xthe text in the page.
  450. X
  451. X.TP
  452. X.B \-n
  453. XThe page is printed in portrait (narrow) format.  This is the default
  454. Xfor 1-up and 4-up printing.
  455. XIf portrait layout is desired for 2-up printing, then the 
  456. X.B -n
  457. Xoption must be specified.
  458. X
  459. X.TP
  460. X.B \-p n
  461. XSets the nominal point size to 
  462. X.I n
  463. Xpoints.  This is accurate only to "1-up" printing.  If "2-up" or "4-up" or
  464. X"1-up, landscape" printing is desired, the nominal point size is
  465. Xautomatically scaled.
  466. X
  467. XThe selected point size becomes the new "default point size".
  468. X
  469. X.TP
  470. X.B \-R n
  471. Xremoves
  472. X.I n
  473. Xlines from the beginning of the file.
  474. X
  475. X.TP
  476. X.B \-r n
  477. Xremoves
  478. X.I n
  479. Xlines between pages of the file.
  480. X
  481. XUse this option if the text
  482. Xfile has blank lines that must be removed between pages.
  483. XFor example, a typical "accounting" report may print 60 lines
  484. Xand 132 columns
  485. Xof text.  Usually, such reports have two blank lines before 
  486. Xthe first printed text on a page  and 6 blank lines to 
  487. Xskip to the top of the next page.
  488. X
  489. XTo generate exactly 60 printed lines with psf, the first
  490. Xtwo blank lines should be removed with
  491. X.B -R2
  492. Xand the blank lines between pages removed with
  493. X.B -r6:
  494. X
  495. X.nf
  496. X       psf -R2 -r 6 -l 60 -c 132 account.rpt | lp
  497. X.fi
  498. X
  499. XThe
  500. X.B -r
  501. Xand
  502. X.B -R
  503. Xmay be used together as needed.
  504. X
  505. XIf a skip to new page was caused by a formfeed imbedded in the
  506. Xtext file, then removal of lines is not performed for that page.
  507. X
  508. X.TP
  509. X.B \-s
  510. Xgenerates a display of commonly used page layouts, point sizes
  511. Xand the associated line and column counts for the Courier font.
  512. XThe display looks like:
  513. X
  514. X.nf
  515. X          point size:      8       10       12   
  516. X                        lin col  lin col  lin col
  517. X   -- Page Layout --    --- ---  --- ---  --- ---
  518. X    Letter  portrait:    95 120   76  96   63  80
  519. X    Letter landscape:    72 159   57 128   48 106
  520. X     Legal  portrait:   122 120   97  96   81  80
  521. X     Legal landscape:    72 204   57 164   48 136
  522. X        A4  portrait:   101 117   81  94   67  78
  523. X        A4 landscape:    70 170   56 136   46 113
  524. X        B5  portrait:    87 100   69  80   58  67
  525. X        B5 landscape:    60 146   48 117   40  97
  526. X.fi
  527. X
  528. XStatistics for point sizes between 6 and 16 are shown.
  529. X
  530. X.TP
  531. X.B \-t n
  532. XSets the width of the tab stops.  By default this is set to 8.  If the
  533. Xfirst line of a text file contains the string "ta=", then the tab stop
  534. Xwidth is automatically determined from this string.  For example, if the
  535. Xfirst text line contains "/* ta=4 */" then the tab width is automatically
  536. Xset to 4.  This feature is useful if programme source files use a tab
  537. Xspace of 4.
  538. X
  539. X.TP
  540. X.B \-u f.def
  541. Xcauses the specified file to be used rather than the 
  542. Xdefault printer definition file
  543. X.I psfprint.def.
  544. X
  545. X.TP
  546. X.B \-v
  547. XPrint pages in reverse order.
  548. X
  549. X.TP
  550. X.B \-w
  551. XThe page is printed in landscape (wide, horizontal format).
  552. XThis is the default for 2-up printing.  If 1-up or 4-up printing is
  553. Xdesired in landscape mode, then the 
  554. X.B -w
  555. Xswitch must be specified.
  556. X
  557. X.TP
  558. X.B \-x
  559. XDraws a cross in the to separate the logical pages.  This is
  560. Xeffective for 4-up or 2-up printing.  If 1-up is used,
  561. Xthis option is ignored.
  562. X
  563. X.TP
  564. X.B \-z
  565. XThis option applies to
  566. X.I psflpd
  567. Xuse for print filtering with
  568. X.I lpr
  569. Xor
  570. X.I psffilter
  571. Xused for print filtering with
  572. X.I lp
  573. Xspooling systems.
  574. XAscii to postscript translation is forced, even if the
  575. Xfile is already postscript code.  This
  576. Xallows the printing of a postscript programme.
  577. X
  578. X.SH PSF NOTES
  579. X
  580. X.I Psf
  581. Xfilters text in a "minimally conforming" postscript format (as
  582. Xspecified in the Postscript Language Reference Manual). 
  583. X
  584. XIf the text contains escape sequences (possibly generated by 
  585. X.I psfbs, psfmail
  586. Xor a text editor), the escape sequences are analyzed to
  587. Xperform limited font and underline selection.  The escape sequences
  588. Xare translated into appropriate postscript code.
  589. X
  590. XThe permitted sequences have the
  591. Xfollowing format:
  592. X.nf
  593. X
  594. X        ^E<command>
  595. X.fi
  596. X
  597. XThe following sequences are recognized:
  598. X
  599. X.nf
  600. X         ^EB     begin bold (in current font family)
  601. X         ^Eb     end bold
  602. X         ^EI     begin italics
  603. X         ^Ei     end italics
  604. X         ^EU     begin underline
  605. X         ^Eu     end underline.
  606. X         ^EFn    begin font 'n' (0..9, a..f)
  607. X         ^Ef     revert to default font
  608. X         ^EPnn   begin point size 'nn' (2 digits)
  609. X         ^Ep     revert to default point size
  610. X         ^E+     skip 1/2 line foreward
  611. X         ^E-     skip 1/2 line backward
  612. X
  613. X         "^E" is a true ctrl-E character, not
  614. X                the ascii text string "^", "E"
  615. X.fi
  616. X
  617. XNote that point sizes with ^EPnn must be two digits such as ^EP07 or ^EP14.
  618. X
  619. XSequences may be nested: bold, italic, underlined would be 
  620. Xgenerated with:
  621. X.nf
  622. X
  623. X     ^EB^EI^EUbold, italic and underlined^Eu^Ei^Eb
  624. X.fi
  625. X
  626. XFont numbers are consistent across printers.  However, the available fonts
  627. Xmay be different on different printers.  For a
  628. Xgiven printer, the font numbers available are as specified on the
  629. Xusage menu of 
  630. X.I psf
  631. X(generated with "psf -").
  632. X
  633. XAny unrecognized escape sequences are ignored.
  634. X
  635. X.SH PRINTER SPOOLING
  636. X
  637. XIf 
  638. X.I psffilter
  639. Xhas been installed as part of the lp/lpsched
  640. X.I lp
  641. Xspooling system,
  642. X.I psf
  643. Xoptions may be passed in the 
  644. X.I lp
  645. Xcommand line using the 
  646. X.B -o
  647. Xoption for 
  648. X.I lp
  649. X:
  650. X
  651. X.nf
  652. X        lp -o"-4xh" this.file that.file
  653. X           --------
  654. X.fi
  655. X
  656. XThe additional options of "banner" and "nobanner"
  657. Xmay be passed to the spooler to print or not print a banner page:
  658. X
  659. X.nf
  660. X        lp -o"nobanner -4xh" this.file that.file
  661. Xor
  662. X        lp -o"banner -4xh" this.file that.file
  663. X.fi
  664. X
  665. XThe spooler system also recognizes the
  666. X.B -z
  667. Xoption to force printing of postscript code.
  668. X
  669. XIf the spooler is
  670. X.I lp/lpsched,
  671. Xthen the spooler binary is normally
  672. X.I psffilter.
  673. XIf the spooler is 
  674. X.I lpr/lpd,
  675. Xthe binary is
  676. X.I psflpd.
  677. X
  678. XIf the system's spooler is
  679. X.I lpr/lpd
  680. Xthen options may not be passed to the print filter: usually
  681. Xthe system administrator has configured a number of different
  682. Xprinter names that use different default printing characteristics
  683. Xof
  684. X.I psf.
  685. X
  686. XFor example, printing 2-up on a page could be done with
  687. Xthe command:
  688. X
  689. X    lpr -P2up my.file
  690. X
  691. X.SH ENVIRONMENT
  692. XIf the environment variable
  693. X.B PSFLP 
  694. Xis set, then
  695. X.I psf
  696. Xand
  697. X.I psfdoub
  698. Xwill use the value as the name of the output print file.
  699. XIf this variable is not set, the default output file
  700. Xis
  701. X.I stdout.
  702. X
  703. XFor example.
  704. X
  705. X    set PSFLP=prn
  706. X
  707. Xwould be a convenient way to always direct the output
  708. Xof
  709. X.I psf
  710. Xto
  711. Xthe MSDOS printer
  712. X.I prn.
  713. X
  714. XIf the environment variable
  715. X.B PSFDEF
  716. Xis set,
  717. X.I psf
  718. Xuses the set value as the name of the
  719. X.I .def
  720. Xfile to use.
  721. X
  722. XFor example: 
  723. X
  724. X    set PSFDEF=/etc/psfprint.def
  725. X
  726. X.SH DIAGNOSTICS
  727. X.nf
  728. Xno alternate bins permitted
  729. Xpaper bin greater than maximum for printer
  730. XDouble sided or book in reverse ordered not supported
  731. XFont number invalid
  732. X        - use 'psf -' to see a list of fonts available
  733. Xcannot create work file
  734. Xcannot allocate enough memory
  735. XCannot open output file
  736. XUnknown file xxxx
  737. XBad psfprint.def file
  738. X        - the psfprint.def file is corrupted.  Contact
  739. X          your systems administrator.
  740. X.fi
  741. X
  742. X.SH BUGS
  743. XDouble sided reverse ordered printing with the
  744. X.B -dv
  745. Xoptions is not supported.
  746. X
  747. X.SH FILES
  748. X.nf
  749. X\/usr/spool/lp/model/psfprint.def:  printer definition file
  750. Xpsfbook.psd:  output file for double sided printing.
  751. X.fi
  752. X
  753. X.SH SEE ALSO
  754. X
  755. Xpsfmail psfbs psfman psfnroff psfmbox psfdoub lp lpadmin lpr lpd
  756. X
  757. X.SH AUTHOR
  758. X
  759. XTony Field.         tony@ajfcal.cuc.ab.ca
  760. END_OF_FILE
  761. if test 17637 -ne `wc -c <'man/psf.1'`; then
  762.     echo shar: \"'man/psf.1'\" unpacked with wrong size!
  763. fi
  764. # end of 'man/psf.1'
  765. fi
  766. if test -f 'man/psf.doc' -a "${1}" != "-c" ; then 
  767.   echo shar: Will not clobber existing file \"'man/psf.doc'\"
  768. else
  769. echo shar: Extracting \"'man/psf.doc'\" \(18761 characters\)
  770. sed "s/^X//" >'man/psf.doc' <<'END_OF_FILE'
  771. X
  772. X
  773. X
  774. X     PSF(1)               Unix System V            PSF(1)
  775. X
  776. X
  777. X
  778. X     NAME
  779. X      psf -    postscript filter
  780. X
  781. X
  782. X     SYNOPSIS
  783. X      psf [    -1|2|4 ] [ -b n    ] [ -c n ] [ -f    n ] [ -g type ]    [ -h ]
  784. X          [    -H text    ] [ -i n ] [ -l    n ] [ -L n ] [ -m n ] [    -n ]
  785. X          [    -p n ] [ ] [ -R    n ] [ -r n ] [ -s ] [ -t n ]
  786. X          [    -u f.def ] [ -v    ] [ -w ] [ -x ]
  787. X          [    -z ] file... >out.file
  788. X
  789. X       where -1|2|4       print 1,2 or    4 up on    a page (default    = 1)
  790. X         -b n       select paper    bin n
  791. X         -c n       print columns (based    on Courier font)
  792. X         -d       allow double    sided printing
  793. X         -f n       font    number/name (default = 0 = Courier)
  794. X         -g type   page    type (default =    letter)
  795. X         -h       put file name as header on each page
  796. X         -H text   put text as header on each page
  797. X         -i n       indent left margin n    points
  798. X         -l n       print lines per page
  799. X         -L n       page    length in lines
  800. X         -m n       indent top margin in    points
  801. X         -n       set portrait    (narrow) format
  802. X         -p n       set point size to n
  803. X         -R n       remove n lines from beginning of file
  804. X         -r n       remove n lines between pages
  805. X         -s       show    page stats (line+column    count)
  806. X         -t n       set tabs to n (default = 8)
  807. X         -u f.def  use this printer definition file
  808. X         -v       print pages in reverse
  809. X         -w       set landscape (wide)    format
  810. X         -x       draw    cross with 4-up    page
  811. X         -z       force postscript translate (spooler only)
  812. X         file..       name    of files to be printed (or stdin)
  813. X
  814. X         Fonts selection with -f n    (printer dependent)
  815. X         0 Courier         1 Helvetica
  816. X         2 Times-Roman         3 AvantGarde-Book
  817. X         4 Bookman-Light     5 NewCenturySchlbk-Roman
  818. X         6 Palatino-Roman     7 Helvetical-Narrow
  819. X         8 Garamond-Light     9 Korinna-Regular
  820. X         a Helvetica-Condensed     b ZapfChancery-MediumItalic
  821. X
  822. X
  823. X     DESCRIPTION
  824. X      Psf accepts text and filters it to print on postscript
  825. X      printers.  The print may be "1-up", "2-up", or "4-up"    on a
  826. X      page.    Psf is a general purpose filter    for most text and
  827. X      programme listings.  By using    various    escape sequences
  828. X      (described below), any portion of the    text may be printed in
  829. X      different fonts and at different point sizes.
  830. X
  831. X
  832. X
  833. X     Page 1                         (printed 1/18/92)
  834. X
  835. X
  836. X
  837. X
  838. X
  839. X
  840. X     PSF(1)               Unix System V            PSF(1)
  841. X
  842. X
  843. X
  844. X      If "letter" sized paper is used, the page is assumed to have
  845. X      63 lines and 80 columns wide.     For "legal" sized paper, the
  846. X      effective size is 81 lines by    80 columns.  These dimensions
  847. X      account for the "print region" (excluding margins) of    the
  848. X      page.
  849. X
  850. X      The actual number of print lines and characters per line may
  851. X      be over-ridden by specifing suitable options.
  852. X
  853. X      The most commonly used options are page rotation, setting
  854. X      point    size, column count and line count: all of which    allow
  855. X      you to place more printed information    on a page.  Additional
  856. X      options are for special formatting purposes and may be used
  857. X      if desired.
  858. X
  859. X      Special formatting for nroff'ed documents and    mail box
  860. X      printing are encapsulated in shell scripts such as psfnroff
  861. X      and psfmbox. These scripts hide some of the more complex
  862. X      options.
  863. X
  864. X
  865. X     EXAMPLES
  866. X      General text may be printed with a command such as:
  867. X
  868. X           psf this.file that.fil |    lp
  869. X
  870. X      If page rotation and print scaling is    desired, typical
  871. X      commands are:
  872. X
  873. X          psf -             (show help    information)
  874. X          psf my.file my2.fil    (normal print)
  875. X          psf -2  my.file         (print 2 up on a page)
  876. X          psf -2xn my.c         (typical source listing)
  877. X          psf -4x my.file         (print 4 up on a page)
  878. X          psf -p8 my.fil         (print 8 point)
  879. X          psf -l66 -c132 -w    a.b  (print 66 lines, 132 cols,    landscape)
  880. X
  881. X
  882. X     PRINT SIZE
  883. X      Two ways are available to adjust the print size.  If the
  884. X      point    size (using the    -p option) is used, choosing a smaller
  885. X      point    size than the default of 12 results in smaller letters
  886. X      and more printed lines.  Choosing a larger points size
  887. X      results in larger letters and    reduces    the number of printed
  888. X      lines    and columns on a page.
  889. X
  890. X      A table of various point sizes, page sizes and their
  891. X      associated line and column count is printed with:
  892. X
  893. X        psf -s
  894. X
  895. X      If the column    count (-c) or the line count (-l) is adjusted,
  896. X
  897. X
  898. X
  899. X     Page 2                         (printed 1/18/92)
  900. X
  901. X
  902. X
  903. X
  904. X
  905. X
  906. X     PSF(1)               Unix System V            PSF(1)
  907. X
  908. X
  909. X
  910. X      the number of    printed    rows and colums    can be changed form
  911. X      the defaults for the paper size.  For    example, a 132 column,
  912. X      60 line page in landscape layout may be selected with:
  913. X
  914. X        psf -w -c132 -l60 my.fil | lp
  915. X
  916. X      If "unfortunate" row and column counts are selected, the
  917. X      resulting letters could be squashed or elongated.
  918. X
  919. X
  920. X     OPTIONS
  921. X      -124 Specify the number of logical pages that    are to be
  922. X           printed on a physical page.  By default,    psf will print
  923. X           one logical page    per physical page.
  924. X
  925. X           If two logical pages are    specified with -2 , then two
  926. X           pages are printed in "landscape"    format:
  927. X
  928. X             +-----------+-----------+
  929. X             |         |         |
  930. X             |     pg 1     |   pg    2    |
  931. X             |         |         |
  932. X             +-----------+-----------+
  933. X
  934. X           If two-up printing in portrait layout is    desired, use
  935. X           -2n (i.e. two up, narrow).  On letter sized paper this
  936. X           gives two logical pages:    each is    80 columns by 126
  937. X           lines.  This layout may be preferred for    programme
  938. X           listing.
  939. X
  940. X
  941. X           If four logical pages are specified with    -4 , then the
  942. X           pages are printed in "portrait format:
  943. X
  944. X             +-----------+-----------+
  945. X             |         |         |
  946. X             |     pg 1     |   pg    2    |
  947. X             |         |         |
  948. X             +-----------+-----------+
  949. X             |         |         |
  950. X             |     pg 3     |   pg    4    |
  951. X             |         |         |
  952. X             +-----------+-----------+
  953. X
  954. X           Each logical page printed in 2-up or 4-up format
  955. X           contains    the same number    of lines and print columns as
  956. X           if it were printed in 1-up portrait format.  The
  957. X           characters may be compressed or expanded    horizontally
  958. X           to fill to the logical page width.  For example,
  959. X           printing    with:
  960. X
  961. X              psf -4 my.text | lp
  962. X
  963. X
  964. X
  965. X     Page 3                         (printed 1/18/92)
  966. X
  967. X
  968. X
  969. X
  970. X
  971. X
  972. X     PSF(1)               Unix System V            PSF(1)
  973. X
  974. X
  975. X
  976. X           creates four miniature pages, each of which would
  977. X           contain 63 print    lines and 80 characters    on a line.
  978. X
  979. X           Printing    2-up or    4-up preserves the number of lines on
  980. X           a logical printed paged.    Identical results (in terms of
  981. X           lines and columns on a logical page) are    realized with
  982. X           1-up, 2-up or 4-up printing.
  983. X
  984. X           Clipping    is performed in    2-up and 4-up printing.     If
  985. X           the line    lengths    on the left half of the    page exceed
  986. X           the logical page    width, the lines will be truncated.
  987. X
  988. X
  989. X      -b n Select paper bin    n. If this option is not specified,
  990. X           the default paper bin is    used.
  991. X
  992. X
  993. X      -c n Sets the    number of print    columns    on a line.  The
  994. X           character width is based    on the Courier font (10    pitch,
  995. X           character width of 7.2 points).    The text is scaled to
  996. X           print the desired number    of characters over the entire
  997. X           page width.  Setting the    character count    does NOT alter
  998. X           the number of print lines.
  999. X
  1000. X           The option -c40 on letter sized paper horizontally
  1001. X           elongates the characters    to twice normal    width.
  1002. X           Similarily, -c160 on letter size    paper compresses the
  1003. X           characters to one half normal width.
  1004. X
  1005. X
  1006. X      -d   Prepare for double sided    printing.  The resulting print
  1007. X           stream is written to psfbook.psd    which must be
  1008. X           subsequently filtered with psfdoub. Refer to the    man
  1009. X           page for    psfdoub    for operational    details.
  1010. X
  1011. X
  1012. X      -f n Any of the standard postscript fonts may    be selected in
  1013. X           lieu of the default Courier.  These are selected    from
  1014. X           the following table:
  1015. X
  1016. X            0 Courier
  1017. X            1 Helvetica
  1018. X            2 Times-Roman
  1019. X            3 AvantGarde-Book
  1020. X            4 Bookman-Light
  1021. X            5 NewCenturySchlbk-Roman
  1022. X            6 Palatino-Roman
  1023. X            7 Helvetica-Narrow
  1024. X            8 Garamond-Light
  1025. X            9 Korinna-Regular
  1026. X            a Helvetica-Condensed
  1027. X            b ZapfChancery-MediumItalic
  1028. X
  1029. X
  1030. X
  1031. X     Page 4                         (printed 1/18/92)
  1032. X
  1033. X
  1034. X
  1035. X
  1036. X
  1037. X
  1038. X     PSF(1)               Unix System V            PSF(1)
  1039. X
  1040. X
  1041. X
  1042. X           The target printer may not have exactly these fonts.
  1043. X           To see which fonts are configured, display the psf
  1044. X           usage information with:
  1045. X
  1046. X            psf    -
  1047. X
  1048. X           Since Courier is    the only fixed-pitch font, it is
  1049. X           usually used for    printing of man    pages or programme
  1050. X           listings.  The other fonts are proportionally spaced.
  1051. X
  1052. X           The selected font becomes the new "default font".
  1053. X
  1054. X           The font    may be specified either    by the font number or
  1055. X           the font    name.  For example, the    Courier    font could be
  1056. X           selected    with either option '-f 0' or '-f Courier'.  If
  1057. X           the selection is    by name, then only a few of the
  1058. X           characters of the name must be provided.     The
  1059. X           NewCenturySchlbk-Roman font could be selected with the
  1060. X           option '-f New'.
  1061. X
  1062. X
  1063. X      -g type
  1064. X           Sets the    working    paper type.  The type may be one of
  1065. X           the following with the default number of    lines and
  1066. X           columns (assuming 12 point, 10 pitch Courier
  1067. X           characters):
  1068. X
  1069. X               type      lines        columns
  1070. X              -------      -----        -------
  1071. X              letter       63          80
  1072. X              legal       81          80
  1073. X              a4       67          78
  1074. X              b5       58          67
  1075. X
  1076. X           The number of lines/columns represents the number of
  1077. X           possible    lines/columns in the printable region of the
  1078. X           postscript printer - exclusive of the unprintable
  1079. X           margin area.
  1080. X
  1081. X
  1082. X      -h   The file    name, page number and current date are printed
  1083. X           at the top of each page.     The point size    is
  1084. X           automatically scaled to permit the specified number of
  1085. X           text lines to be    printed    to account for the additional
  1086. X           two lines consumed by the title line.
  1087. X
  1088. X
  1089. X      -H text
  1090. X           Place a header (like -h ) however use text rather than
  1091. X           the filename.
  1092. X
  1093. X
  1094. X
  1095. X
  1096. X
  1097. X     Page 5                         (printed 1/18/92)
  1098. X
  1099. X
  1100. X
  1101. X
  1102. X
  1103. X
  1104. X     PSF(1)               Unix System V            PSF(1)
  1105. X
  1106. X
  1107. X
  1108. X      -i n Indent the left margin by n points.  This may be    used
  1109. X           to center the text in the page.
  1110. X
  1111. X
  1112. X      -l n Sets the    number of printed lines    per page.  The default
  1113. X           is 63 lines for letter sized paper.  If more than 63
  1114. X           lines per page are specified, the point size is
  1115. X           automatically reduced to    accomodate the line count.
  1116. X
  1117. X           The number of printed lines specified by    -l may be less
  1118. X           than the    number of possible print lines specified by -
  1119. X           L. For example, the default total number    of print lines
  1120. X           is 63 (as though    you had    specified -L63 ).  If you used
  1121. X           the option -l20 , then only the first 20    lines of the
  1122. X           possible    63 would be printed.  A    skip to    new page would
  1123. X           be performed for    the 21st line and the remainder    of the
  1124. X           page would be blank.
  1125. X
  1126. X
  1127. X      -L n Specifies the number of possible    print lines available
  1128. X           on the page.  If    -L is specified, then the page scale
  1129. X           is adjusted to accomodate the line count.   However,
  1130. X           only the    number of lines    specified by the -l option
  1131. X           will actually print.
  1132. X
  1133. X
  1134. X      -m n Move the    top margin down    by n points.  This may be used
  1135. X           to center the text in the page.
  1136. X
  1137. X
  1138. X      -n   The page    is printed in portrait (narrow)    format.     This
  1139. X           is the default for 1-up and 4-up    printing.  If portrait
  1140. X           layout is desired for 2-up printing, then the -n    option
  1141. X           must be specified.
  1142. X
  1143. X
  1144. X      -p n Sets the    nominal    point size to n    points.     This is
  1145. X           accurate    only to    "1-up" printing.  If "2-up" or "4-up"
  1146. X           or "1-up, landscape" printing is    desired, the nominal
  1147. X           point size is automatically scaled.
  1148. X
  1149. X           The selected point size becomes the new "default    point
  1150. X           size".
  1151. X
  1152. X
  1153. X      -R n removes n lines from the    beginning of the file.
  1154. X
  1155. X
  1156. X      -r n removes n lines between pages of    the file.
  1157. X
  1158. X           Use this    option if the text file    has blank lines    that
  1159. X           must be removed between pages.  For example, a typical
  1160. X
  1161. X
  1162. X
  1163. X     Page 6                         (printed 1/18/92)
  1164. X
  1165. X
  1166. X
  1167. X
  1168. X
  1169. X
  1170. X     PSF(1)               Unix System V            PSF(1)
  1171. X
  1172. X
  1173. X
  1174. X           "accounting" report may print 60    lines and 132 columns
  1175. X           of text.     Usually, such reports have two    blank lines
  1176. X           before the first    printed    text on    a page    and 6 blank
  1177. X           lines to    skip to    the top    of the next page.
  1178. X
  1179. X           To generate exactly 60 printed lines with psf, the
  1180. X           first two blank lines should be removed with -R2    and
  1181. X           the blank lines between pages removed with -r6:
  1182. X
  1183. X              psf -R2 -r 6 -l 60 -c 132    account.rpt | lp
  1184. X
  1185. X           The -r and -R may be used together as needed.
  1186. X
  1187. X           If a skip to new    page was caused    by a formfeed imbedded
  1188. X           in the text file, then removal of lines is not
  1189. X           performed for that page.
  1190. X
  1191. X
  1192. X      -s   generates a display of commonly used page layouts,
  1193. X           point sizes and the associated line and column counts
  1194. X           for the Courier font.  The display looks    like:
  1195. X
  1196. X             point size:      8      10       12
  1197. X                       lin col    lin col     lin col
  1198. X          -- Page Layout --    --- ---    --- ---     --- ---
  1199. X           Letter  portrait:    95 120     76  96      63  80
  1200. X           Letter landscape:    72 159     57 128      48 106
  1201. X            Legal  portrait:   122 120     97  96      81  80
  1202. X            Legal landscape:    72 204     57 164      48 136
  1203. X               A4  portrait:   101 117     81  94      67  78
  1204. X               A4 landscape:    70 170     56 136      46 113
  1205. X               B5  portrait:    87 100     69  80      58  67
  1206. X               B5 landscape:    60 146     48 117      40  97
  1207. X
  1208. X           Statistics for point sizes between 6 and    16 are shown.
  1209. X
  1210. X
  1211. X      -t n Sets the    width of the tab stops.     By default this is
  1212. X           set to 8.  If the first line of a text file contains
  1213. X           the string "ta=", then the tab stop width is
  1214. X           automatically determined    from this string.  For
  1215. X           example,    if the first text line contains    "/* ta=4 */"
  1216. X           then the    tab width is automatically set to 4.  This
  1217. X           feature is useful if programme source files use a tab
  1218. X           space of    4.
  1219. X
  1220. X
  1221. X      -u f.def
  1222. X           causes the specified file to be used rather than    the
  1223. X           default printer definition file psfprint.def.
  1224. X
  1225. X
  1226. X
  1227. X
  1228. X
  1229. X     Page 7                         (printed 1/18/92)
  1230. X
  1231. X
  1232. X
  1233. X
  1234. X
  1235. X
  1236. X     PSF(1)               Unix System V            PSF(1)
  1237. X
  1238. X
  1239. X
  1240. X      -v   Print pages in reverse order.
  1241. X
  1242. X
  1243. X      -w   The page    is printed in landscape    (wide, horizontal
  1244. X           format).     This is the default for 2-up printing.     If
  1245. X           1-up or 4-up printing is    desired    in landscape mode,
  1246. X           then the    -w switch must be specified.
  1247. X
  1248. X
  1249. X      -x   Draws a cross in    the to separate    the logical pages.
  1250. X           This is effective for 4-up or 2-up printing.  If    1-up
  1251. X           is used,    this option is ignored.
  1252. X
  1253. X
  1254. X      -z   This option applies to psflpd use for print filtering
  1255. X           with lpr    or psffilter used for print filtering with lp
  1256. X           spooling    systems.  Ascii    to postscript translation is
  1257. X           forced, even if the file    is already postscript code.
  1258. X           This allows the printing    of a postscript    programme.
  1259. X
  1260. X
  1261. X     PSF NOTES
  1262. X      Psf filters text in a    "minimally conforming" postscript
  1263. X      format (as specified in the Postscript Language Reference
  1264. X      Manual).
  1265. X
  1266. X      If the text contains escape sequences    (possibly generated by
  1267. X      psfbs, psfmail or a text editor), the    escape sequences are
  1268. X      analyzed to perform limited font and underline selection.
  1269. X      The escape sequences are translated into appropriate
  1270. X      postscript code.
  1271. X
  1272. X      The permitted    sequences have the following format:
  1273. X
  1274. X          ^E<command>
  1275. X
  1276. X      The following    sequences are recognized:
  1277. X
  1278. X           ^EB       begin bold (in current font family)
  1279. X           ^Eb       end bold
  1280. X           ^EI       begin italics
  1281. X           ^Ei       end italics
  1282. X           ^EU       begin underline
  1283. X           ^Eu       end underline.
  1284. X           ^EFn       begin font 'n' (0..9, a..f)
  1285. X           ^Ef       revert to default font
  1286. X           ^EPnn   begin point size 'nn' (2 digits)
  1287. X           ^Ep       revert to default point size
  1288. X           ^E+       skip    1/2 line foreward
  1289. X           ^E-       skip    1/2 line backward
  1290. X
  1291. X           "^E"    is a true ctrl-E character, not
  1292. X
  1293. X
  1294. X
  1295. X     Page 8                         (printed 1/18/92)
  1296. X
  1297. X
  1298. X
  1299. X
  1300. X
  1301. X
  1302. X     PSF(1)               Unix System V            PSF(1)
  1303. X
  1304. X
  1305. X
  1306. X              the ascii text string    "^", "E"
  1307. X
  1308. X      Note that point sizes    with ^EPnn must    be two digits such as
  1309. X      ^EP07    or ^EP14.
  1310. X
  1311. X      Sequences may    be nested: bold, italic, underlined would be
  1312. X      generated with:
  1313. X
  1314. X           ^EB^EI^EUbold, italic and underlined^Eu^Ei^Eb
  1315. X
  1316. X      Font numbers are consistent across printers.    However, the
  1317. X      available fonts may be different on different    printers.  For
  1318. X      a given printer, the font numbers available are as specified
  1319. X      on the usage menu of psf (generated with "psf    -").
  1320. X
  1321. X      Any unrecognized escape sequences are    ignored.
  1322. X
  1323. X
  1324. X     PRINTER SPOOLING
  1325. X      If psffilter has been    installed as part of the lp/lpsched lp
  1326. X      spooling system, psf options may be passed in    the lp command
  1327. X      line using the -o option for lp :
  1328. X
  1329. X          lp -o"-4xh" this.file    that.file
  1330. X             --------
  1331. X
  1332. X      The additional options of "banner" and "nobanner" may    be
  1333. X      passed to the    spooler    to print or not    print a    banner page:
  1334. X
  1335. X          lp -o"nobanner -4xh" this.file that.file
  1336. X      or
  1337. X          lp -o"banner -4xh" this.file that.file
  1338. X
  1339. X      The spooler system also recognizes the -z option to force
  1340. X      printing of postscript code.
  1341. X
  1342. X      If the spooler is lp/lpsched,    then the spooler binary    is
  1343. X      normally psffilter. If the spooler is    lpr/lpd, the binary is
  1344. X      psflpd.
  1345. X
  1346. X      If the system's spooler is lpr/lpd then options may not be
  1347. X      passed to the    print filter: usually the system administrator
  1348. X      has configured a number of different printer names that use
  1349. X      different default printing characteristics of    psf.
  1350. X
  1351. X      For example, printing    2-up on    a page could be    done with the
  1352. X      command:
  1353. X
  1354. X           lpr -P2up my.file
  1355. X
  1356. X
  1357. X     ENVIRONMENT
  1358. X
  1359. X
  1360. X
  1361. X     Page 9                         (printed 1/18/92)
  1362. X
  1363. X
  1364. X
  1365. X
  1366. X
  1367. X
  1368. X     PSF(1)               Unix System V            PSF(1)
  1369. X
  1370. X
  1371. X
  1372. X      If the environment variable PSFLP is set, then psf and
  1373. X      psfdoub will use the value as    the name of the    output print
  1374. X      file.     If this variable is not set, the default output file
  1375. X      is stdout.
  1376. X
  1377. X      For example.
  1378. X
  1379. X           set PSFLP=prn
  1380. X
  1381. X      would    be a convenient    way to always direct the output    of psf
  1382. X      to the MSDOS printer prn.
  1383. X
  1384. X      If the environment variable PSFDEF is    set, psf uses the set
  1385. X      value    as the name of the .def    file to    use.
  1386. X
  1387. X      For example:
  1388. X
  1389. X           set PSFDEF=/etc/psfprint.def
  1390. X
  1391. X
  1392. X     DIAGNOSTICS
  1393. X      no alternate bins permitted
  1394. X      paper    bin greater than maximum for printer
  1395. X      Double sided or book in reverse ordered not supported
  1396. X      Font number invalid
  1397. X          - use    'psf -'    to see a list of fonts available
  1398. X      cannot create    work file
  1399. X      cannot allocate enough memory
  1400. X      Cannot open output file
  1401. X      Unknown file xxxx
  1402. X      Bad psfprint.def file
  1403. X          - the    psfprint.def file is corrupted.     Contact
  1404. X            your systems administrator.
  1405. X
  1406. X
  1407. X     BUGS
  1408. X      Double sided reverse ordered printing    with the -dv options
  1409. X      is not supported.
  1410. X
  1411. X
  1412. X     FILES
  1413. X      /usr/spool/lp/model/psfprint.def:  printer definition    file
  1414. X      psfbook.psd:    output file for    double sided printing.
  1415. X
  1416. X
  1417. X     SEE ALSO
  1418. X      psfmail psfbs    psfman psfnroff    psfmbox    psfdoub    lp lpadmin lpr
  1419. X      lpd
  1420. X
  1421. X
  1422. X     AUTHOR
  1423. X      Tony Field.          tony@ajfcal.cuc.ab.ca
  1424. X
  1425. X
  1426. X
  1427. X     Page 10                         (printed 1/18/92)
  1428. X
  1429. X
  1430. X
  1431. END_OF_FILE
  1432. if test 18761 -ne `wc -c <'man/psf.doc'`; then
  1433.     echo shar: \"'man/psf.doc'\" unpacked with wrong size!
  1434. fi
  1435. # end of 'man/psf.doc'
  1436. fi
  1437. echo shar: End of archive 8 \(of 9\).
  1438. cp /dev/null ark8isdone
  1439. MISSING=""
  1440. for I in 1 2 3 4 5 6 7 8 9 ; do
  1441.     if test ! -f ark${I}isdone ; then
  1442.     MISSING="${MISSING} ${I}"
  1443.     fi
  1444. done
  1445. if test "${MISSING}" = "" ; then
  1446.     echo You have unpacked all 9 archives.
  1447.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1448. else
  1449.     echo You still need to unpack the following archives:
  1450.     echo "        " ${MISSING}
  1451. fi
  1452. ##  End of shell archive.
  1453. exit 0
  1454.  
  1455. exit 0 # Just in case...
  1456.