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

learn more… | top users | synonyms

1
vote
1answer
21 views

latexdiff incompatible with half brackets

I recently encountered some problem using latexdiff when the tex file contains matched half brackets like \left(\. or \.\right). For example, I have two files, one is test-old.tex, ...
2
votes
1answer
20 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 ...
4
votes
1answer
60 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} ...
1
vote
1answer
43 views

How to get latexdiff to show markup for captionof text?

Is there a way to make latexdiff highlight changes in a captionof? For example, orig.tex: \documentclass{article} \usepackage{caption} \captionsetup{parindent=\parindent} ...
1
vote
1answer
36 views

Latexdiff with two column layout

I'm trying to use latexdiff-so on a document using the two-column Elsevier style. Unfortunately, latexdiff does not respect the column boundaries, and as a result some changes overflow deep from the ...
4
votes
1answer
107 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 ...
0
votes
0answers
100 views

Running latexdiff on mac os x 10.8.5

MacTex should contain already latexdiff but when I type "latexdiff" I have "latexdiff: Command not found". Also, if I type "which latexdiff" I have "latexdiff: Command not found". I've just installed ...
2
votes
0answers
123 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 ...
0
votes
2answers
98 views

latexdiff breaking \frac

I have equations that I will to show the difference. Unfortunately, they contain \frac. Even at --math-markup=1, those equations get broken up. Is there any way to resolve this? For example I have: ...
1
vote
0answers
216 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 ...
4
votes
1answer
173 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 ...
2
votes
1answer
157 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
0answers
53 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
1answer
117 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 ...
3
votes
0answers
129 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 > ...
1
vote
0answers
147 views

Failure After Using Latexdiff Script: latexdiff marking up lstlisting environment

After running a script to use latexdiff on a multiple input latex file I am left with a diff.tex file that is generating the following error: ./diff.tex:7009: LaTeX Error: \begin{description} on ...
3
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, ...
0
votes
0answers
149 views

Using latexdiff with IEEEeqnarray environment

Note: I asked this question on Stackoverflow a month ago, but I'm deleting it and re-posting it here because I got no answers there. I recently discovered latexdiff, and it has generally been a ...
1
vote
1answer
90 views

where is the correct man directory for my latexdiff files? [closed]

Mac user here. I am trying to execute the following in the terminal: latexdiff draft.tex revision.tex > diff.tex But it is returning this: Input file draft.tex does not exist. at ...
2
votes
0answers
112 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 ...
0
votes
1answer
116 views

New figure in Latexdiff

I am using latexdiff to compare two tex files. In some places I have new figures and latexdiff puts its comments inside the includegraphics command and then the diffed file won't compile. Example: ...
4
votes
3answers
296 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 ...
3
votes
1answer
301 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 ...
4
votes
1answer
277 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, ...
1
vote
0answers
221 views

Problem in LaTeXDiff

When i tried to to see Changes for the below text using latexdiff its not giving the correct result Eg: exciting and bold new book -> Orignal file excitig and bod new bok -> Modified file ...
4
votes
0answers
165 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 ...
2
votes
0answers
93 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 ...
0
votes
0answers
306 views

latexdiff error

I am pretty new in using latexdiff. Now trying to use it but continuously getting error from one of my equations. The following is the equation that I removed in the revised version: ...
1
vote
0answers
90 views

Batch file to run latexdiff [closed]

If you have experience using latexdiff, you may know that it depends on Perl and the command is latexdiff draft.tex revision.tex > diff.tex Yet, every time I need to open up a Windows cmd console ...
1
vote
1answer
893 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 ...
0
votes
1answer
64 views

latexdiff does not highlight changes within \AtEndDocument

For a certain journal I have to follow this structure: Main text References Figures, one per page Extra text I've managed to accomplish that by using package endfloat that moves the figures to the ...
7
votes
1answer
1k 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 ...
1
vote
1answer
366 views

latexdiff: changes in bibliography with BibLaTeX and Biber

latexdiff is able to highlight differences in the bibliography when the content of the bbl generated by BibTeX is included in the document. I've been trying to unsuccessfully do the same with ...
1
vote
0answers
2k views

Using latexdiff in MiKTeX

I am trying to use latexdiff to compare two .tex files, producing a .pdf with a markup similar to the "track changes" function in Microsoft Word (see ...
1
vote
0answers
245 views

latexdiff: Bad math environment delimiter

I have an error trying to compile a very simple latexdiff file: \documentclass{article} %DIF 51a51 %DIF > %DIF ------- \newcommand{\diffblock}[1]{#1} %DIF PREAMBLE EXTENSION ADDED BY LATEXDIFF ...
14
votes
2answers
519 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 ...
13
votes
2answers
708 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 ...
3
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*} ...
3
votes
1answer
530 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 ...
5
votes
0answers
887 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 ...
6
votes
1answer
720 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 ...
1
vote
0answers
340 views

The perl interpreter could not be found [duplicate]

I am new to LaTeX and using it for my thesis. However, right now I am having trouble in using latexdiff. I did the instructions as follows: Question: How to generate latexdiff on Windows? Answer: ...
1
vote
0answers
178 views

How to have latexdiff ignore specific line of text?

I have a certain piece of latex code that is giving me problems with compilation after I did a latexdiff. ... \LTcapwidth=\textwidth \begin{landscape} \begin{table} ... Gives me a diff file ...
0
votes
1answer
3k views

Installing latexdiff on a Mac

I need to install latexdiff on my Mac, but have been unable to. The simplest approach sudo port install latexdiff gives me the error sudo: port: command not found. Alternative installation ...
5
votes
2answers
8k 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 ...
1
vote
1answer
499 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
votes
1answer
1k views

Problem regarding Latexdiff, Perl and MikTex 2.9 on Win7 [closed]

I try to implement this interesting solution for latexdiff and multiple files. There are other questions regarding missing perl scripts but I cannot relate them or their solutions to my problem (i.e. ...
3
votes
0answers
269 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 ...
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
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 ...