从 latexdiff 创建的 Latex 文件构建 pdf 时出错

从 latexdiff 创建的 Latex 文件构建 pdf 时出错

我用它latexdiff来突出显示 latex 文件中的更改。我使用 制作了 latex 文件latexdiff。当我想构建 PDF 文件时,我收到许多错误,例如:

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

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

有人知道这是怎么回事吗?我该如何解决?

答案1

尝试将其添加到您的序言中 - 如果不是,我将删除答案。

\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}{} 

相关内容