Dale Morris <[EMAIL PROTECTED]> asked:

> After my recent install and upgrade to woody I can't print tex
> documents. Other printing seems okay, mail messages from mutt print
> fine.
>
> xdvi displays the document properly, but when I try to print the
> following file:
>
> $dvips quantum.tex
>
> the printed output is [some Postscript/TeX garbage]
> [..]

"Bambang Purnomosidi D. P." <[EMAIL PROTECTED]> answered:

> Yup. that's the right output. The dvips is used to create ps from dvi file. 
> You need to use -o option for dvips to create a ps file and then you can use 
> gv to view the ps file. Check out man dvips.

Yes, you can do it that way. A better way seems to me, to install either
APSfilter, Magicfilter, or CUPS. These packages install filters that are
invoked by lpr. As a result, lpr recognizes the content type of the
file (e.g. postscript, dvi, plain text or some graphics format),
translates it automatically to the native code of your printer and
then sends it to the queue of your printer. As a result, you can give
the command:

$ lpr quantum.dvi

or, when the dvi file contains postscript:

$ dvips -f quantum |lpr

I cannot tell which of the three packages APSfilter, magicfilter or
CUPS is best. I use magicfilter and that works very well

Paul Huygen


Reply via email to