Jan-Åke Larsson wrote:

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

and setting the text colour is also possible this way (for those who 
have an unusual screen set-up)

\AtBeginDocument{\AtBeginDvi{\textcolor{rgb rr gg bb}}}

However, these require use of the color package don't they? Given 
that dvipng is so much quicker than dvips,gs,pnmcrop I would prefer 
to drop dvips,gs,pnmcrop support and just use the command line 
options of dvipng I think.


-- 
Angus

Reply via email to