<< "]{graphicx}\n";
}
// shadecolor for shaded
- if (mustProvide("framed")) {
+ if (mustProvide("framed") && mustProvide("color")) {
RGBColor c = RGBColor(lcolor.getX11Name(Color::shadedbg));
packages << "\\definecolor{shadecolor}{rgb}{"
<< c.r/255 << ',' << c.g/255 << ',' << c.b/255 << "}\n";
features.require("color");
features.require("framed");
}
- if (params_.type == InsetNoteParams::Framed) {
- features.require("color");
+ if (params_.type == InsetNoteParams::Framed)
features.require("framed");
- }
InsetText::validate(features);
}