[Tex/LaTex] Problem using latexdiff and pdflatex with custom command


Using latexdiff I have the problem, that by adding new \section, I get the following error by trying to run pdflatex.

! Argument of \UL@word has an extra }.
<inserted text> 
l.69 \subsection{\DIFadd{Some Text}}

Here you can see the redefined \section command…

{1}     % Structure level
{0mm}   % Indention
{2ex plus 1ex minus 1ex}            % Pre-Margin
{0.5ex plus 0.5ex minus 0.5ex}      % Post-Margin
{\chapterheadfont\Large\bfseries}   % Style
{2}     % Structure level
{0mm}   % Indention
{1.5ex plus 1ex minus 0.5ex}        % Pre-Margin
{0.3ex plus 0.3ex minus 0.3ex}      % Post-Margin
{\chapterheadfont\large\bfseries}   % Style

How can I fix the problem? It would work for me also to ignore the changed section names.

Best Answer

(OPs answer, moved from the question.)

I thought it would be more complex, but I found a solution. Using --exclude-textcmd allows the ignoring of tags. It works now.

Related Question