Jan-Åke Larsson wrote:
> > At the moment, going 
> > the dvips,gs,pnmcrop route I encode the forground and background 
> > colours of the lyx screen as postscript specials:
> > 
> > \AtBeginDocument{\AtBeginDvi{%
> > \special{!userdict begin/bop-hook{//bop-hook exec
> > <000000faf0e6>{255 div}forall setrgbcolor
> > clippath fill setrgbcolor}bind def end}}}
> > 
> > My reading of the dvipng manual suggests that I can discard this when 
> > using dvipng and use the command line options
> >         -fg "rgb 0.0 0.0 0.0" -bg "rgb 0.980 0.941 0.902"
> > instead. Have I got this right?
> 
> Yep. That would work. The antialiasing would be OK, even ;-)

How about
\AtBeginDocument{\AtBeginDvi{\pagecolor{rgb 0.980 0.941 0.902}}}
which would work for both dvips-gs and dvipng, I think?

/JÅ

Reply via email to