mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
Do not hardcode required packages for Note inset
This does not change the default behavior, but allows to customize it.
(cherry picked from commit db12707655
)
This commit is contained in:
parent
4961683764
commit
181ecc51a7
@ -115,6 +115,7 @@ InsetLayout Note:Comment
|
||||
LabelString Comment
|
||||
LatexType environment
|
||||
LatexName comment
|
||||
Requires verbatim
|
||||
BgColor commentbg
|
||||
LabelFont
|
||||
Color comment
|
||||
@ -151,6 +152,7 @@ InsetLayout Note:Greyedout
|
||||
LabelString Greyedout
|
||||
LatexType environment
|
||||
LatexName lyxgreyedout
|
||||
Requires color,lyxgreyedout
|
||||
BgColor greyedoutbg
|
||||
Font
|
||||
Color greyedouttext
|
||||
|
@ -329,15 +329,15 @@ void InsetNote::validate(LaTeXFeatures & features) const
|
||||
{
|
||||
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);
|
||||
else
|
||||
// Only do the requires
|
||||
features.useInsetLayout(getLayout());
|
||||
break;
|
||||
case InsetNoteParams::Greyedout:
|
||||
features.require("color");
|
||||
features.require("lyxgreyedout");
|
||||
InsetCollapsable::validate(features);
|
||||
break;
|
||||
case InsetNoteParams::Note:
|
||||
|
@ -36,6 +36,8 @@ What's new
|
||||
|
||||
* DOCUMENT INPUT/OUTPUT
|
||||
|
||||
- Do not hardcode required packages for Note inset.
|
||||
|
||||
|
||||
* LYX2LYX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user