At Julien's advice, this is what I have put in the preamble. It works fine outside the captions.

\usepackage{color}

\renewcommand{\lyxdeleted}[3]{{\color{red}*}\marginpar{{\color{red}*#3} (removed by #1 on #2)}}

\renewcommand{\lyxadded}[3]{{\color{blue}#3}}


EK



On 6/2/2010 6:47 AM, Jean-Marc LASGOUTTES wrote:
"[email protected]"<[email protected]>  writes:

Although I applauded the suggested additions to the preamble, which
made Lyx place deleted text in the margin, I have now discovered that
Lyx will fail to compile (pdflatex) /if the change is made to a figure
caption/.   Is there a quick fix to this fix?
What is the definition that you use? You may need to use \protect,
because the contents of a caption is a so called ``moving argument''.

JMarc

Reply via email to