This does not change the default behavior, but allows to customize it.
LabelString Comment
LatexType environment
LatexName comment
LabelString Comment
LatexType environment
LatexName comment
BgColor commentbg
LabelFont
Color comment
BgColor commentbg
LabelFont
Color comment
LabelString Greyedout
LatexType environment
LatexName lyxgreyedout
LabelString Greyedout
LatexType environment
LatexName lyxgreyedout
+ Requires color,lyxgreyedout
BgColor greyedoutbg
Font
Color greyedouttext
BgColor greyedoutbg
Font
Color greyedouttext
{
switch (params_.type) {
case InsetNoteParams::Comment:
{
switch (params_.type) {
case InsetNoteParams::Comment:
- features.require("verbatim");
if (features.runparams().flavor == OutputParams::HTML)
// we do output this but set display to "none" by default,
// but people might want to use it.
InsetCollapsable::validate(features);
if (features.runparams().flavor == OutputParams::HTML)
// we do output this but set display to "none" by default,
// but people might want to use it.
InsetCollapsable::validate(features);
+ else
+ // Only do the requires
+ features.useInsetLayout(getLayout());
break;
case InsetNoteParams::Greyedout:
break;
case InsetNoteParams::Greyedout:
- features.require("color");
- features.require("lyxgreyedout");
InsetCollapsable::validate(features);
break;
case InsetNoteParams::Note:
InsetCollapsable::validate(features);
break;
case InsetNoteParams::Note: