On Mon, Jul 01, 2002 at 06:16:11PM +0100, Angus Leeming wrote: > One more dumn question. Background and foreground colours. The gs docs say > that these must be set as X11 resources. Is there a way of setting them > temporarily. A sort of: > > (Ghostscript*background #rrggbb, Ghostscript*forground=#rrggbb; gs ...) > > If I can find a way of going from the LyX screen font size info to a gs "-r" > option then I think that that's everything to do with the preview generation > finished.
Is that solved by some snippet David sent a few days ago? -------------------------------------------------------------------- One thing I have noticed from your screenshot is that the colors are off. If you are just working via command line, try -c 0.5 0.3 0.7 setrgbcolor clippath fill 0.2 0.8 0.9 setrgbcolor -f on the GhostScript command line after the device has been set, of course using the RGB values of the current background and foreground colors of the LyX window. If you have those as integer numbers, you can write -c '[' 45 54 54 234 234 234 ']' '{' 255 div '}' forall setrgbcolor clippath fill setrgbcolor -f (here background color triple comes first). Or if you have them in hex, just write -c '<45afcf003b3c>' '{' 255 div '}' forall setrgbcolor clippath fill setrgbcolor -f Here the first 6 hexadecimal digits are foreground RGB. -------------------------------------------------------------------- Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)