http://bugzilla.lyx.org/show_bug.cgi?id=2169
I think we should do something about this for 1.4.0, because else the beamer package, which is really crucial for some people (including myself), does not work with 1.4.0. A showstopper for me (i.e. I would not upgrade to 1.4.0 due to that, for I rely on beamer presentations for my daily work). I have investigated a bit and found out that the usenames option has been introduced with John's big change tracking patch. Reason: the dvipost package, which is needed for ct dvi/ps output, relies on color.sty with that option. Now the actual bug (IMO) is that dvipost.sty does not load the color package by itself, but we cannot do much about that (apart from sending a wish to the dvipost author, which I have just done). A proper solution for LyX would be a ProvidesColor option, but that is post-1.4 stuff. So I'd propose something like the attached for 1.4.0 (I have no cvs access now, but I'd provide a proper patch later, if desired). I think this is OK as a workaround. Shortcoming: With Beamer, a change tracking dvi/ps output cannot be generated. I think we can live with that for now. Lars, would such a change be acceptable for 1.4.0? Jürgen
--- LaTeXFeatures.C.old 2006-01-17 21:27:47.000000000 +0100 +++ LaTeXFeatures.C 2006-01-17 21:51:53.000000000 +0100 @@ -282,12 +282,17 @@ string const LaTeXFeatures::getPackages( // color.sty if (isRequired("color")) { if (params_.graphicsDriver == "default") - packages << "\\usepackage[usenames]{color}\n"; - else + if (isRequired("dvipost")) + packages << "\\usepackage[usenames]{color}\n"; + else + packages << "\\usepackage{color}\n"; + else { packages << "\\usepackage[" - << params_.graphicsDriver - << ",usenames" - << "]{color}\n"; + << params_.graphicsDriver; + if (isRequired("dvipost")) + packages << ",usenames"; + packages << "]{color}\n"; + } } // makeidx.sty