On Fri, Apr 06, 2001 at 10:37:15AM +0200, Wilbert Berendsen wrote:
> Yes!!!
> 
> LyX calls dvips with `-t a4' argument. CUPS does not like that. But I
> don't understand why, because I set `media=A4' for cups by default, so
> things should not conflict.

Let me see if I understand your problem:
You have an a4 paper printer, but a Postscript file generated with
'dvips -t a4' doesn't print, while a file generated with 'dvips' does print.

> 
> My question: How do I stop LyX from calling dvips with `-t a4'.  Can I
> just change the print-route in lyx to use the converter DVI->PostScript,
> and then just simply call lpr with the options?

Save the following script as mydvips:
------------------------
#!/bin/sh
if [ $1 == "-t" ]; then
 dvips $3 $4 $5 $6 $7 $8 $9
else
 dvips $*
fi
----------------------
and then change the dvi->ps converter (converters->converters tab) and the
print command (output->printer tab) to mydvips.

Reply via email to