latexdiff is a Perl script which compares two LaTeX files and marks up significant differences between them.

learn more… | top users | synonyms

94
votes
7answers
15k views

Using latexdiff with git

I'd like to be able to use latexdiff with git. At the moment I have an alias in my .gitconfig file for a word-based diff: [alias] wdiff = diff --color-words but is it possible to make an alias ...
20
votes
4answers
2k views

texdiff for multi-file documents in subversion

I've been looking for a convenient way to highlight changes between subversion revisions of my Latex document in the generated PDF. I am working on a reasonably complex document that pulls together ...
15
votes
2answers
3k views

Best LaTeX-aware diff and merge tools for subversion

What's a good (or preferably, in your opinion the best) way to make subversion diff'ing and merging LaTeX-aware? I know latexdiff and latexrevision exist, but it's not clear to me how to make those ...
15
votes
2answers
564 views

How to create a 'summary of changes' with latexdiff

Following my previous question, I have successfully created a dif.tex file of a large, complex project, the results of which can be seen here. (This was done, in the end by updating latexdiff to the ...
14
votes
1answer
3k views

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 ...
13
votes
3answers
3k views

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> ...
13
votes
2answers
4k views

latexdiff + svn not working with multiple files (flatten)

Short question Seems like --flatten doesn't work properly with latexdiff-vc. How can I get this working, without reverting to my elaborated workflow described below? Context I track the history of ...
13
votes
2answers
769 views

Make Latexdiff work on big, complex project

I'm making final corrections to my thesis and, as others (e.g. here and here, on this site) have mentioned, showing the changes you've made from one file to the next to supervisors/examiners is ...
11
votes
3answers
3k views

Latexdiff error (caused by multi paragraph \sout): Paragraph ended before \UL@on was complete

I try to use latexdiff to point out changes I have made in a document to the other people who need to read it and give me their advice... However, I've been getting this error: Runaway argument? {En ...
10
votes
1answer
2k views

Can latexdiff be used for mathematics documents?

I've been pulling my hair out trying to get latexdiff to work with a mathematics document. It produces output that latex can't compile if one of the files is this: \documentclass{amsart} ...
8
votes
2answers
586 views

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?
8
votes
1answer
979 views

trackchanges VS latexdiff

I am trying to decide whether to choose trackchanges or latexdiff for corrections on my thesis. Can anyone tell me their views? I have had problems with latexdiff choking on equations (is there any ...
7
votes
1answer
7k views

Error when trying to generate a PDF from a latexdiff document.

I used latexdiff to generate a tex document with the differences between two other tex documents. This worked fine, but when I try to generate a PDf from the diff document I always get this error: ...
7
votes
1answer
2k views

Latexdiff with subfiles

Is there a way to make latexdiff work with the 'subfiles' package ? I use subfiles to include parts of the document from different .tex files. Latexdiff does not seem to mark changes in the ...
6
votes
1answer
807 views

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 ...
6
votes
1answer
1k views

latexdiff fails on description environments

This example fails to generate a valid .tex: test.tex \documentclass[a4paper]{report} \begin{document} \begin{description} \item[thing] explanation of thing \end{description} \end{document} ...
5
votes
2answers
9k views

Installation/usage of latexdiff on Windows 7

Description I'm new to both Perl and latexdiff. I'd like to use latexdiff to track changes between versions of my LaTeX documents. However I couldn't get it to work. I have MikTeX 2.9, and ...
5
votes
1answer
31 views

Latexdiff support for Lyx

As a regular LyX-user i'd love to know if there exists some back-end to latexdiff available for Lyx. Currently i'm using the following bash commands to get what I want. new=MyFileName ...
5
votes
1answer
281 views

only highlighting new parts added

I am using latexdiff to compare two tex files, which highlights any changes (added or deleted) in the final PDF. Is there any way to only highlight the new parts added, and do not highlight the parts ...
5
votes
0answers
1k views

Using Latexdiff math-markup for not comparing equations

I am using Latexdiff to compare 2 Latex files. I can do it successfully for text but it gives me problem with equations which I have a lot. I do not want to compare the equations. If I understand ...
5
votes
2answers
3k views

error “latexdiff: The Perl Script could not be found.” [duplicate]

I have MikTeX 2.9 installation and Strawberry Perl 5.10.1.5. All the latexdiff, latexdiff-fast, latexidff-so paths seem to be present in the scripts.ini file and their .exe files in the ...
4
votes
3answers
349 views

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 ...
4
votes
2answers
271 views

ConTeXt equivalent of latexdiff

I was just wondering if anyone knows of a ConTeXt equivalent to latexdiff? For those not familiar with latexdiff: it is a Perl script that marks up differences between 2 latex files. It is included ...
4
votes
1answer
91 views

How to ignore starred command (such as \section*) with latexdiff?

I try to ignore changes of \section* in latexdiff, and while I am able to do so for \section, the same does not work for \section*. This is a.tex: \documentclass{article} \begin{document} ...
4
votes
1answer
2k views

Error compiling a latexdiff PDF file

I just started trying out latexdiff for editing some papers and I am having trouble with the getting the tex output from latexdiff compile when my code includes \intertext within a \begin{align*} ...
4
votes
1answer
2k views

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 ...
4
votes
1answer
2k views

how to use latexdiff with TexShop?

I am trying to use latexdiff to compare two tex documents on my macbook pro. I use TexShop to compile my latex documents. I know the latexdiff package is already installed with under the Tex folder, ...
4
votes
1answer
332 views

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, ...
4
votes
1answer
118 views

LaTeX changebars with pdflscape

I have a very long document with a large number of tables in the appendices. These tables were a tad wide, so I change the page layout to landscape using the landscape command. To make it readable by ...
4
votes
0answers
179 views

Latexdiff “fixes” and config files

Latexdiff, while overall very useful, sometimes requires manual fixes to its configuration variables and default options; for instance, excluding the tikzpicture environment from the diff algorithm ...
4
votes
0answers
2k views

latexdiff problem in MikTex 2.8 after update: “Perl script not found” [closed]

Some days ago, I've updated my Miktex 2.8 installation (on Windows 7). However, since doing that I have problems with latexdiff (it did work before). When I run it, I get: latexdiff: the Perl script ...
3
votes
1answer
763 views

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} ...
3
votes
1answer
523 views

latexdiff produces invalid output from changes to \multirow

A co-worker and I are hoping to start using latexdiff for tracking changes in a document he is writing and I am proofreading. I've run into a spot where latexdiff seems to be generating invalid ...
3
votes
1answer
338 views

diff against the working directory with git-latexdiff

I use git for my latex document and I want to diff against the working directory. MWE: \documentclass{article} \begin{document} a \end{document} add git-latexdiff to $PATH in .bashrc ...
3
votes
1answer
578 views

latexdiff and lstlisting

I was wondering if it is possible to have latexdiff ignore all lstlistings from my documents when finding diffs. Most of my listings contain special characters. That works rather nicely within an ...
3
votes
0answers
155 views

How does the latexrevise command actually work?

I am following the example given in the documentation of latexdiff. I run the following code and get a third latex file with the changes. latexdiff example-draft.tex example-rev.tex > ...
3
votes
0answers
286 views

When using latexdiff, is there a way to generate a list of pages that contain changes? [closed]

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 ...
2
votes
1answer
1k views

How to use correctly latexdiff with figures?

I did change a source of some image between new and old version of .tex files, when I run latexdiff it marks such parts like this: \DIFdelend %DIF > lamp \DIFaddbegin \begin{figure*}[t] ...
2
votes
1answer
43 views

Error in building pdf from Latex file created by latexdiff

I am using latexdiff to highlight changes in latex files. I made the latex file using latexdiff. When I want to build the PDF file, I get many errors like: Paragraph ended before ...
2
votes
1answer
201 views

Using latexdiff to generate changebars for graphics inside figures

I am trying to utilize latexdiff to highlight the changes between different version of a document. One thing that I have run into is that sometimes graphics in figures change. Obviously, latexdiff ...
2
votes
1answer
137 views

latexdiff: completely ignore a macro?

I have defined a 'convenience macro' for figures: \def\Figure#1#2#3#4#5{ \begin{figure*}[htp] \includegraphics[scale=#4,angle=#5]{#1} \caption{#2} \label{#3} \end{figure*} } When I change any ...
2
votes
1answer
262 views

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 ...
2
votes
0answers
141 views

LatexDiff: Missing \endcsname inserted [closed]

I have just created a diff file using LatexDiff but the newly created file seems to have issues with the url package, may be. I am getting following error. ! Missing \endcsname inserted. <to be ...
2
votes
0answers
298 views

Using latexdiff with TortoiseHg

I am using TortoiseHg to track my Thesis document, and latexdiff to track differences in the document. To avoid saving the previous versions, I would like to combine latexdiff with tortoise ...
2
votes
0answers
60 views

latexdiff: marking whole block as changed

When I rewrite a paragraph (but keeping a few sentences or equations the same) I would like to mark the whole block as changed so it appears in the diff as one whole block in strike-through-red and ...
2
votes
0answers
135 views

Latexdiff figure

it is the first time that I use latexdiff. I am comparing two files, old.tex and new.tex. In the old.tex, I have "figure_old.eps". In the new.tex, I have used a different figure "figure_new.eps". In ...
2
votes
0answers
102 views

How to export changes from a .tex file back to the source .Rnw file

Let's say my work-flow is writing a paper with multiple R chunks as a .Rnw then compiling it into a .tex file and then typesetting it into the final document. Now, after the document has been ...
1
vote
1answer
1k views

latexdiff doesn't mark changes in bibliography (BibTeX)

I'm using latexdiff to show changes between versions of an article written with the achemso package, but it doesn't seem to be able to highlight changes within the bibliography (including added ...
1
vote
1answer
532 views

Problem executing script for latexdiff

I am a LaTeX beginner and new to Scripting. I try to implement this interesting solution for latexdiff and multiple files found in this question-answer before I begin writing my phd thesis. However ...
1
vote
1answer
372 views

Is it possible to have an undetermined character length argument in a macro?

I have the following macro, \def\RCS$ $#1: #2 $ ${\expandafter\def\csname RCS#1\endcsname{#2}} Which is used for revision version control, i.e, \RCS$ $Revision: 1.2 $ $ \RCS$ $Date: 2010/04/02 ...