\lyxdeleted uses an ulem command.

Therefore we need to put \cite and \ref into \mboxes, as in our native ulem commands.

Fixes: #8806.
This commit is contained in:
Juergen Spitzmueller 2014-03-22 12:27:46 +01:00 committed by Richard Heck
parent 045dee3755
commit 4398a7b02f
2 changed files with 7 additions and 1 deletions

View File

@ -397,6 +397,8 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams,
// close \lyxadded or \lyxdeleted // close \lyxadded or \lyxdeleted
os << '}'; os << '}';
column++; column++;
if (oldChange.type == Change::DELETED)
--runparams.inulemcmd;
} }
docstring chgTime; docstring chgTime;
@ -405,8 +407,10 @@ int Changes::latexMarkChange(otexstream & os, BufferParams const & bparams,
chgTime.erase(chgTime.end() - 1); chgTime.erase(chgTime.end() - 1);
docstring macro_beg; docstring macro_beg;
if (change.type == Change::DELETED) if (change.type == Change::DELETED) {
macro_beg = from_ascii("\\lyxdeleted{"); macro_beg = from_ascii("\\lyxdeleted{");
++runparams.inulemcmd;
}
else if (change.type == Change::INSERTED) else if (change.type == Change::INSERTED)
macro_beg = from_ascii("\\lyxadded{"); macro_beg = from_ascii("\\lyxadded{");

View File

@ -54,6 +54,8 @@ What's new
- Fix LaTeX error with alphabetic delimiters in inline Listings (part of bug - Fix LaTeX error with alphabetic delimiters in inline Listings (part of bug
8985). 8985).
- Fix output of deleted citations in change tracking mode (bug 8806).
* USER INTERFACE * USER INTERFACE