X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeXFeatures.C;h=921c15ef782823be4ede8470e4be22ea591b40dc;hb=8ebf862adbe377d032f888a82d88d4393aebc929;hp=2a2b757436df8b0085edeb35f76bebcdfe40d382;hpb=28fa2c0efa8047b29494345ddcccca8b268c6dc0;p=lyx.git diff --git a/src/LaTeXFeatures.C b/src/LaTeXFeatures.C index 2a2b757436..921c15ef78 100644 --- a/src/LaTeXFeatures.C +++ b/src/LaTeXFeatures.C @@ -17,10 +17,12 @@ #include "LaTeXFeatures.h" #include "bufferparams.h" +#include "Color.h" #include "debug.h" #include "encoding.h" #include "Floating.h" #include "FloatList.h" +#include "LColor.h" #include "language.h" #include "lyxlex.h" #include "lyx_sty.h" @@ -239,11 +241,13 @@ char const * simplefeatures[] = { "varioref", "prettyref", "float", + "booktabs", "dvipost", "fancybox", "calc", "nicefrac", "tipa", + "framed", }; int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *); @@ -308,6 +312,12 @@ string const LaTeXFeatures::getPackages() const << params_.graphicsDriver << "]{graphicx}\n"; } + // shadecolor for shaded + if (isRequired("framed")) { + lyx::RGBColor c = lyx::RGBColor(lcolor.getX11Name(LColor::shadedbg)); + packages << "\\definecolor{shadecolor}{rgb}{" + << c.r/255 << ',' << c.g/255 << ',' << c.b/255 << "}\n"; + } //if (algorithm) { // packages << "\\usepackage{algorithm}\n";