[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lpr -d doesn't work



On Fri, 2002-08-16 at 06:54, Krzys Majewski wrote:
> On 16 Aug 2002, Oliver Elphick wrote:
> 
> > On Fri, 2002-08-16 at 00:28, Krzys Majewski wrote:
> > > What's the official Debian way to install a DVI filter for lpr so that
> > > 'lpr  -d' (which, BTW,  is the  default print  command under  my Emacs
> > > LaTeX-mode and Debian/stable teTeX) actually works, instead of saying: 
> > > 
> > > lpd[19586]: lp: no filter found in printcap for format character 'd'
...
> > According to that, the line is ":df=/path/to/filter"
> 
> OK, thanks for the translation ;)  Now, where do I find the filter? Is
> it just `which dvips`? Why doesn't Debian put that line in for me? 

I suppose it is not put in because there are too many possible
variants.  If you have a PostScript printer, dvips is the one to use,
but even then it depends on the dvips configuration.  Or you might need
dvilj or a pipe that goes through dvips into ghostscript.

Since you probably need to pass parameters to dvips, you will need to
make a shell script to encapsulate it.  It will have to pick up the
arguments passed to it and pass them appropriately to dvips.  I don't
remember what these are, but it's a simple matter to make a test filter
that will dump the passed parameters to a file in /tmp.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                            
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "And whatsoever ye shall ask in my name, that will I 
      do, that the Father may be glorified in the Son."     
                                          John 14:13 



Reply to: