(a2ps.info)Your Printers


Next: Your Shortcuts Prev: Your Media Up: Configuration Files
Enter node , (file) or (file)node

4.5 Your Printers
=================

A general scheme is used, so that whatever the way you should address
the printers on your system, the interface is still the same.  Actually,
the interface is so flexible, that you should understand 'named
destination' when we write 'printer'.

 -- Configuration Setting: Printer: NAME PPD-KEY DESTINATION
 -- Configuration Setting: Printer: NAME DESTINATION
 -- Configuration Setting: Printer: NAME PPD-KEY
     Specify the destination of the output when the option '-P NAME' is
     given.  If PPD-KEY is given, declare the printer NAME to be
     described by the PPD file 'PPD-KEY.ppd'.  If DESTINATION is not
     given, used that of the 'UnknownPrinter:'.

     The DESTINATION must be of one of the following forms:
     '| COMMAND'
          in which case the output is piped into COMMAND.

     '> FILE'
          in which case the output is saved into FILE.

 -- Configuration Setting: UnknownPrinter: [PPD-KEY] DESTINATION
     Specify the destination of the output when when the option '-P
     NAME' is given, but there is no 'Printer:' entry for NAME.

 -- Configuration Setting: DefaultPrinter: [PPD-KEY] DESTINATION
     Specify the destination of the output when when the option '-d'
     (send to default output) is given.

   Escapes expansion is performed on DESTINATION (Note: Escapes).
Recall that '#o' is evaluated to the destination name, i.e., the
argument given to '-P'.

   For instance
     # My Default Printer is called dominique
     DefaultPrinter: | lp -d dominique

     # `a2ps foo.c -P bar' will pipe into `lp -d bar'
     UnknownPrinter: | lp -d #o

     # `a2ps -P foo' saves into the file `foo'
     Printer: foo > foo.ps
     Printer: wc | wc
     Printer: lw | lp -d printer-with-a-rather-big-name

     # E.g. `a2ps foo.c bar.h -P file' will save into `foo.c.ps'
     Printer: file > $n.#.

     # E.g. `a2ps foo.c bar.h -P home' will save into `foo.ps'
     # in user's home
     Printer: home > ${HOME}/$N.#.

     # Here we address a printer which is not PostScript
     Printer: deskj | gs -q -sDEVICE=ljet3d -sOutputFile=- - \
              | lpr -P laserwriter -h -l

   MS-DOS users, and non-PostScript printer owners should take advantage
in getting good configuration of these entries.


automatically generated by info2www version 1.2.2.9