Herbert Voss wrote: > Juergen Spitzmueller wrote: >> Richard Heck wrote: >> >>> << c.r/255.0 << ',' << c.g/255.0 << ',' << c.b/255.0 >> An alternative would be to require xcolor instead of color (we require this >> anyway nowadays) and use \definecolor{shadecolor}{RGB}{}. Then you don't >> have to do any calculation. > > \providecolor{LyXshadecolor}{RGB}{...} to be save
ah just saw, that you need it for package framed, then shadecolor is correct ... Herbert