static docstring const lyxgreyedout_def = from_ascii(
"%% The greyedout annotation environment\n"
- "\\newenvironment{lyxgreyedout}{\\textcolor{note_fontcolor}\\bgroup}{\\egroup}\n");
+ "\\newenvironment{lyxgreyedout}\n"
+ " {\\textcolor{note_fontcolor}\\bgroup\\ignorespaces}\n"
+ " {\\ignorespacesafterend\\egroup}\n");
// We want to omit the file extension for includegraphics, but this does not
// work when the filename contains other dots.
// use the "H" modifier. This includes modified table and
// figure floats. (Lgb)
Floating const & fl = params_.documentClass().floats().getType(name);
- if (!fl.floattype().empty() && fl.needsFloatPkg()) {
+ if (!fl.floattype().empty() && fl.usesFloatPkg()) {
require("float");
}
}
Floating const & fl = floats.getType(cit->first);
// For builtin floats we do nothing.
- if (!fl.needsFloatPkg())
+ if (fl.isPredefined())
continue;
// We have to special case "table" and "figure"