# Force latexdiff not to parse tikzpicture environments

Is it possible to force latexdiff not to parse TikZ figures? When I run latexdiff on a document where there is something like

\begin{figure}
\begin{tikzpicture}
...
\end{tikzpicture}
\end{figure}  % corrected typo


It parses also the TikZ figure code and the diff is not a correct TikZ figure anymore.

• I think that you should provide an pair of files that get "broken" by latexdiff, so that people trying to solve your problem get a good starting point from you.
– yo'
Oct 17, 2012 at 12:03

You can call latexdiff with the parameter -c <config file>. In the configuration file you can specify which enviroments latexdiff should ignore. Taken from the manual:
So with the regex (?:picture|tikzpicture|DIFnomarkup)[\w\d*@]* it should not parse TikZ figures.
• That is, you should type latexdiff -c "PICTUREENV=(?:picture|tikzpicture|DIFnomarkup)[\w\d*@]*" old.tex new.tex > diff.tex. ` May 4, 2016 at 2:12