The \lyxdeleted macro cannot cope with \newpage & co.
This commit is contained in:
Enrico Forestieri 2017-04-02 23:56:25 +02:00
parent 621ccc5e4e
commit e36c661c61

View File

@ -213,7 +213,11 @@ ColorCode InsetNewpage::ColorName() const
void InsetNewpage::latex(otexstream & os, OutputParams const & runparams) const void InsetNewpage::latex(otexstream & os, OutputParams const & runparams) const
{ {
switch (params_.kind) { if (runparams.inDeletedInset) {
os << "\\mbox{}\\\\\\makebox[\\columnwidth]{\\dotfill\\ "
<< insetLabel() << "\\ \\dotfill}";
} else {
switch (params_.kind) {
case InsetNewpageParams::NEWPAGE: case InsetNewpageParams::NEWPAGE:
os << "\\newpage" << termcmd; os << "\\newpage" << termcmd;
break; break;
@ -231,6 +235,7 @@ void InsetNewpage::latex(otexstream & os, OutputParams const & runparams) const
default: default:
os << "\\newpage" << termcmd; os << "\\newpage" << termcmd;
break; break;
}
} }
} }