X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_sty.C;h=9b0874948cbdee87e7af05e71b81cd692bb80613;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=01945fd18118112f78cee59ba6e366f4c1a8d2ae;hpb=e978fa42e38be22e9312be963ba6512fcd4b45ef;p=lyx.git diff --git a/src/lyx_sty.C b/src/lyx_sty.C index 01945fd181..9b0874948c 100644 --- a/src/lyx_sty.C +++ b/src/lyx_sty.C @@ -12,6 +12,9 @@ #include "lyx_sty.h" + +namespace lyx { + using std::string; @@ -125,7 +128,7 @@ string const tabularnewline_def = string const lyxgreyedout_def = "%% The greyedout annotation environment\n" - "\\newenvironment{lyxgreyedout}{\\color[gray]{0.8}}{}\n"; + "\\newenvironment{lyxgreyedout}{\\textcolor[gray]{0.8}\\bgroup}{\\egroup}\n"; // We want to omit the file extension for includegraphics, but this does not // work when the filename contains other dots. @@ -133,3 +136,6 @@ string const lyxgreyedout_def = string const lyxdot_def = "%% A simple dot to overcome graphicx limitations\n" "\\newcommand{\\lyxdot}{.}\n"; + + +} // namespace lyx