]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
A little more lv cleanup.
[lyx.git] / src / LaTeXFeatures.cpp
index 8f78e02d1ab0ce1c9ff00195dbc25d5d9d8a9b0c..f4a84566304d3dbcd56570f8a5c33ad5176b9686 100644 (file)
@@ -590,11 +590,18 @@ string const LaTeXFeatures::getColorOptions() const
                colors << "\\pagecolor{page_backgroundcolor}\n";
        }
 
+       if (mustProvide("fontcolor")) {
+               colors << "\\definecolor{document_fontcolor}{rgb}{";
+               colors << outputLaTeXColor(params_.fontcolor) << "}\n";
+               // set the color
+               colors << "\\color{document_fontcolor}\n";
+       }
+
        if (mustProvide("lyxgreyedout")) {
                colors << "\\definecolor{note_fontcolor}{rgb}{";
                colors << outputLaTeXColor(params_.notefontcolor) << "}\n";
                // the color will be set together with the definition of
-               // the lyxgreyedout environment (lyxgreyedout_def)
+               // the lyxgreyedout environment (see lyxgreyedout_def)
        }
 
        return colors.str();