* lib/layouts.memoir.layout:

- memoir.cls provides framed.sty.
* src/LaTeXFeatures.cpp:
	- also output the shadecolor definition if framed.sty
	  is provided by a class.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21947 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-12-04 10:27:27 +00:00
parent a250d1ab8c
commit e0b4fc9da4
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,8 @@ SecNumDepth 2
TocDepth 2
DefaultStyle Standard
PageStyle Headings
Provides makeidx 1
Provides makeidx 1
Provides framed 1
ClassOptions

View File

@ -516,7 +516,7 @@ string const LaTeXFeatures::getPackages() const
<< "]{graphicx}\n";
}
// shadecolor for shaded
if (mustProvide("framed") && mustProvide("color")) {
if (isRequired("framed") && mustProvide("color")) {
RGBColor c = rgbFromHexName(lcolor.getX11Name(Color_shadedbg));
//255.0 to force conversion to double
//NOTE As Jürgen Spitzmüller pointed out, an alternative would be