Generallatexdiff - how ignore \newcommand regions?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
BinaryBen
Posts: 15
Joined: Mon Feb 18, 2013 8:54 pm

latexdiff - how ignore \newcommand regions?

Post by BinaryBen »

Hey all,
I've been tinkering with 'latexdiff' - I have it working, but I'm comparing two large files with lots of subfiles in folders, but need to exclude specific regions, as it prevents latex generation:

Are there any simple examples of how to ignore a `newcommand' I specify in a macro? For example, I have the macro '\myfigure' with four args {}{}{}{} - is there any way of making it ignore new and old changes that included this command and its args?

\newcommand{\myfigure}[4]{
\begin{figure*} % [h] % [htbp]
\centering
\includegraphics[width=#4\textwidth]{#1}
\caption[#2]{\textbf{#2} - #3}
\label{fig:#1}
\end{figure*}
}

Thanx,

Ben

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
Post Reply