]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
* GuiPrefs: fix typo.
[lyx.git] / src / LaTeXFeatures.cpp
index af1ed2eb26b8044bbea7de863ac44bff62aa057b..79ef3e45204cfe44888c802c9f1ff76145bad930 100644 (file)
@@ -545,6 +545,16 @@ string const LaTeXFeatures::getColorOptions() const
        if (mustProvide("pdfcolmk"))
                colors << "\\usepackage{pdfcolmk}\n";
 
+       if (mustProvide("pagecolor")) {
+               // the \pagecolor command must be set after color is loaded and
+               // before pdfpages, therefore add the command here
+               // define the set color
+               colors << "\\definecolor{page_backgroundcolor}{rgb}{";
+               colors << outputLaTeXColor(params_.backgroundcolor) << "}\n";
+               // set the page color
+               colors << "\\pagecolor{page_backgroundcolor}\n";
+       }
+
        return colors.str();
 }