Today at 1:09pm, Dekel Tsur said:

> 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.
>

Thanks! That looks like a working solution! But I managed to solve the
problem already, and, FYI, this is what I did:

I removed these lines from /usr/share/texmf/dvips/config/config.ps:
------------
@ letter 8.5in 11in
@+ %%BeginPaperSize: Letter
@+ letter
@+ %%EndPaperSize

@ legal 8.5in 14in
@+ ! %%DocumentPaperSizes: Legal
@+ %%BeginPaperSize: Legal
@+ legal
@+ %%EndPaperSize

@ ledger 17in 11in
@+ ! %%DocumentPaperSizes: Ledger
@+ %%BeginPaperSize: Ledger
@+ ledger
@+ %%EndPaperSize

@ tabloid 11in 17in
@+ ! %%DocumentPaperSizes: Tabloid
@+ %%BeginPaperSize: Tabloid
@+ 11x17
@+ %%EndPaperSize

@ a4 210mm 297mm
@+ ! %%DocumentPaperSizes: a4
@+ %%BeginPaperSize: a4
@+ a4
@+ %%EndPaperSize

@ a3 297mm 420mm
@+ ! %%DocumentPaperSizes: a3
@+ %%BeginPaperSize: a3
@+ a3
@+ %%EndPaperSize
----------------
Now dvips warns 'no match for a4', but things work fine now!

Thanks,
Wilbert.


Reply via email to