1

I am using latexdiff to highlight changes in latex files. I made the latex file using latexdiff. When I want to build the PDF file, I get many errors like:

Paragraph ended before \caption@prepareanchor was complete. ... the networks. }\DIFdelend \DIFaddbegin }

and

Extra }, or forgotten \endgroup. ... the networks. }\DIFdelend \DIFaddbegin }

Does anyone know what is about and how can I solve it?

closed as unclear what you're asking by Torbjørn T., ebosi, Romain Picot, Mico, Zarko Feb 6 '17 at 16:38

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    It seems you have a problem with a caption – PMC1234 Jan 20 '16 at 20:30
  • 2
    There is not enough information in the question. Please provide an MWE (Minimum Working(Failing) Example): old file, new file, and what latexdiff produces – frederik Jan 21 '16 at 19:46
  • latexdiff only works for the simplest of latex files... – JPi Feb 6 '17 at 13:42
0

Try adding this to your preamble - I'll remove the answer if that is not it.

\RequirePackage[normalem]{ulem} 
\definecolor{RED}{rgb}{1,0,0}\definecolor{BLUE}{rgb}{0,0,1}
\providecommand{\DIFadd}[1]{{\protect\color{blue}\uwave{#1}}}
\providecommand{\DIFdel}[1]{{\protect\color{red}\sout{#1}}}
\providecommand{\DIFaddbegin}{} 
\providecommand{\DIFaddend}{} 
\providecommand{\DIFdelbegin}{} 
\providecommand{\DIFdelend}{} 
\providecommand{\DIFaddFL}[1]{\DIFadd{#1}} 
\providecommand{\DIFdelFL}[1]{\DIFdel{#1}} 
\providecommand{\DIFaddbeginFL}{} 
\providecommand{\DIFaddendFL}{} 
\providecommand{\DIFdelbeginFL}{} 
\providecommand{\DIFdelendFL}{} 

Not the answer you're looking for? Browse other questions tagged or ask your own question.