+2003-07-29 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * LaTeXFeatures.C:
+ * lay_sty.[Ch]:h: Implement a newenvironment in preamble for
+ greyedout. Patch provided by Jürgen Spitzmüller.
+
2003-07-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* kbmap.C (read): fix error message when reading bind files
if (isRequired("NeedTabularnewline"))
macros << tabularnewline_def;
+ // greyedout environment (note inset)
+ if (isRequired("lyxgreyedout"))
+ macros << lyxgreyedout_def;
+
// floats
getFloatDefinitions(macros);
+2003-07-29 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * insetnote.C: Implement a newenvironment in preamble for
+ greyedout. Patch provided by Jürgen Spitzmüller.
+
2003-07-29 Angus Leeming <leeming@lyx.org>
* insetcommand.C (localDispatch): default to
int i = 0;
if (pt == "Comment")
- os << "%\n\\begin{comment}\n"; // remember to validate
+ // verbatim
+ os << "%\n\\begin{comment}\n";
else if (pt == "Greyedout")
- os << "%\n\\color[gray]{0.8}";
+ // we roll our own macro
+ os << "%\n\\begin{lyxgreyedout}\n";
if (pt != "Note")
i = inset.latex(buf, os, runparams);
os << "%\n\\end{comment}\n";
i += 3;
} else if (pt == "Greyedout") {
- os << "\\normalcolor%\n";
+ os << "%\n\\end{lyxgreyedout}\n";
i += 2;
}
return i;
{
if (params_.type == "Comment")
features.require("verbatim");
- if (params_.type == "Greyedout")
+ if (params_.type == "Greyedout") {
features.require("color");
+ features.require("lyxgreyedout");
+ }
inset.validate(features);
}
string const tabularnewline_def =
"%% Because html converters don't know tabularnewline\n"
"\\providecommand{\\tabularnewline}{\\\\}\n";
+
+string const lyxgreyedout_def =
+ "%% The greyedout annotation environment\n"
+ "\\newenvironment{lyxgreyedout}{\\color[gray]{0.8}}{}\n";
extern string const mathcircumflex_def;
///
extern string const tabularnewline_def;
+///
+extern string const lyxgreyedout_def;
#endif // LYX_STY_H