"\\usepackage{tikz}\n"
"\\usetikzlibrary{calc}\n"
"\\newcommand{\\lyxobjectsout}[1]{%\n"
+ " \\bgroup%\n"
+ " \\color{lyxdeleted}%\n"
" \\tikz[baseline=(obj.base)]{\n"
" \\node[inner sep=0pt,outer sep=0pt](obj){#1};\n"
" \\draw($(obj.south west)+(2em,.5em)$)--($(obj.north east)-(2em,.5em)$);\n"
" }\n"
+ " \\egroup%\n"
"}\n");
static docstring const changetracking_none_def = from_ascii(
if (features.inFloat())
features.require("subfig");
+ if (features.inDeletedInset())
+ features.require("ct-tikz-object-sout");
+
features.useFloat(params_.type, features.inFloat());
features.inFloat(true);
InsetCaptionable::validate(features);
os << '[' << from_ascii(placement) << ']';
os << '\n';
+ if (runparams.inDeletedInset) {
+ os << "\\lyxobjectsout{%" << breakln;
+ os << "\\parbox{\\linewidth}{%" << breakln;
+ }
+
string alignment = getAlignment();
if (alignment == "left")
os << "\\raggedright" << breakln;
InsetText::latex(os, runparams);
+ if (runparams.inDeletedInset)
+ os << "}}";
+
// Force \end{<floatname>} to appear in a new line.
os << breakln << "\\end{" << from_ascii(tmptype) << "}\n";
}