Printer Options on CIT Printers ------------------------------------- Anthony Thyssen -- anthony@cit.gu.edu.au For Information on printing specific types of file formats on the CIT printers see the file ``Printing File Formats'' in this directory. ------ The lpr command : lpr [options] {file}... general options (unchanged in upgrade) -P {printer} select which printer (see printer list). NOTE: this can also be set with using the PRINTER environment variable in both your .xsession and .login files. -T {jobname} Set the title of the print job -r remove given files after reading them -m mail you when job has completed -p re-format text file through the pr command. Text formatting options. Without any options, the printing system will print `raw' text on the printer. No banners, or other titling is used on the output. unless the ``-p'' option above is used. The text however will now make full use of the A4 paper we use, instead of pushing it all into the lower right corner of the page. This was due to the original text to postscript filter thinking it was printing on US letter paper. That filter has been replaced with a newer modern version of itself. Some of the options below is `bannered'. This is performed by the ``a2ps'' text to postscript filter, which in many was superior to the ``pstext'' filter being used above. In particular this new filter will perform `line-wrapping'. -T {banner} Change the banner from the default banner of ``loginname -- filename'' to the banner string you give. This will affect ALL the files given on the lpr command line, while the default banner will change from file to file. -i1 Each page is given a banner and boarder as above. -i2 Bannered pages but two pages per output page. -i3 Bannered Landscape mode. -i4 As -i2 but also passed through multips to provide 4 pages per output page. NOTE: I did not have the choice of the option letters used above when setting up the printers, so print this out and keep it handy. Other `i' options may be added in the future. Suggestions for these options are welcome and should be directed to myself. Other lpr format options. lpr -d {dvifile}... This will print dvi file produced from a LaTeX or TeX file. Note however that you will need to us the ``dvips'' filter program yourself if you need to have encapulated postscript include files inserted into your printed document. lpr -v {images}... Previously this option (as mentioned in the lpr manpage, would only print sun rasterfile images. I have expanded this to allow the printing of many image file formats. These formats include :- sun raster files, X bitmaps, X pixmaps, X Window Dumps, FIG files, Gif pictures and PbmPlus format files. If any other file type is wanted please contact myself so I can arange a suitable postscript converter. For example to do a screen dump is now as easy as: xwd -root | lpr -v And to print a Gif picture lpr -v picture.gif lpr -t {cat-troff-output}... This will format and print `troff' output for A4 paper correctly. Previously troff output and online man page printing resulted in a large space at the top of the page (it assumed the output was US letter paper). Print a ms troff file : tbl -ms {troff_file} | troff -t -ms | lpr -t Print a online manual (to the default printer) man -t {man-page} Anthony Thyssen - (SysProg @ Griffith University) anthony@cit.gu.edu.au ------------------------------------------------------------------------------ ``But that's fantasy for you. The Damsel get to fly, while the Elf gets stuck in the mud.'' -- Piers Anthony `Bearing an Hourglass' ------------------------------------------------------------------------------