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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply