latexdiff is a Perl script which compares two LaTeX files and marks up significant differences between them.
Questions tagged [latexdiff]
170 questions
42
votes
1 answer
is there an option in latexdiff to ignore whole environments?
I need to highlight the difference between two rather complex math tex-files and get a lot of errors. The files are complex in the math equations, fair enough to get errors, but what if I would like latexdiff to only compare the text OUTSIDE the…
Jakob
- 421
15
votes
1 answer
latexdiff hide the old version (the red crossed text)
My journal editor is asking for a file that highlights only additions to the document (don't ask me why). So, I don't want to see the red-crossed text (the old version or the discarded text) in the generated file by latexdiff, only the blue text…
remus
- 3,093
8
votes
2 answers
Make latexdiff mark differences in title
I am using latexdiff for showing the difference between two latex documents, but for some reason latexdiff is not displaying differences in the title of a document.
Is there a way to fix this?
Allan
- 205
- 1
- 5
5
votes
1 answer
latexdiff: exclude caption text
Is anyone aware on an option in latexdiff that lets one exclude the caption from appearing in the diff?
E.g. whenever I move a figure around, latexdiff will keep the caption text at the old place, mark it as deleted and in the new place of the…
Martin H
- 18,164
4
votes
1 answer
latexdiff is not working
I installed latexdiff to track changes. The first question is where to give the command (latexdiff old.tex new.tex > diff.tex). I saw on the internet that it can be done in the Command/DOS environment. But then I get the error that the file new.tex…
Brigitte Bruijns
4
votes
3 answers
How to protect or mbox commands in latexdiff?
In latexdiff, the default is to protect citation commands with an \mbox so that they are printed properly in the default style. How can I add other commands to be protected by an \mbox, such as \SI{}{} or \cref{}?
new.tex
% arara:…
darthbith
- 7,384
3
votes
0 answers
latexdiff: Ignore inserted commands
I am working on quite large documents and want to visualize the differences of different versions using latexdiff.
My old document did not use a fancy glossary, while the new one does. Now, latexdiff shows all replacements of any glossary entry…
Daniel
- 31
3
votes
0 answers
When using latexdiff, is there a way to generate a list of pages that contain changes?
I have tried redefining \DIFaddbegin et al. with todo (todonotes) or index (makeidx) calls by using the preamble below, but I'm not getting anything.
%DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF
%DIF UNDERLINE PREAMBLE %DIF…
retorquere
- 1,498
2
votes
1 answer
latexdiff-vc does not show differences in the bibliography
Running latexdiff-vc -r rev1 -r rev2 file.tex --pdf produces a pdf highlighting the changes in the tex but it does not show the changes in the bibliography. Is there something that needs to be enabled for this to work?
My tex file uses bibtex…
user3761743
- 71
2
votes
2 answers
latexdiff ignore ref and label
I would like to use latexdiff on a document where I have changed the label of my figures. Is there a way to ignore changes of the commands ref and label? Here is an example:
old_version.tex
\documentclass{article}
\begin{document}
\begin{figure}
…
Felix
- 151
2
votes
1 answer
latexdiff don't work in table with \scalebox
When revise my manuscript, I found latexdiff can't label changes in tables. For example, there are two tex files before and after revision:
Before revision
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{table}
…
Shenghua Lu
- 21
2
votes
0 answers
latexdiff for single character
I have a document in which many words are corrected in terms of inflection from an original one.
Normally, latexdiff shows the strike and correction for entire word, which makes the difference document longer:
question questions
asks ask
Can I…
Jan
- 21
2
votes
2 answers
Latexdiff error on changing chapter title
When I try to compile latexdiff output on two documents where the title of a chapter was changed, I get the following error:
! Missing number, treated as zero.
\protect
l.1 ...DIFadd{S}\DIFaddend }
I tried to produce a minimal…
tomasmcz
- 112
2
votes
1 answer
Completely hide deletions in latexdiff
I usually try to use latexdiff in a way that the diff result looks exactly as the revised document, just with colored highlights. But this does not always work, for example, when I merge paragraphs. This example illustrates my…
bers
- 5,404
2
votes
1 answer
Can latexdiff-cvs handle RCS tags?
I would like to know if anyone has a nice way of combining latexdiff-rcs with printing actual RCS tags in their document.
For example, I am using CVS to version control a latex document. My document page headers have the RCS tags Revision, Date and…
Shaun
- 31