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

learn more… | top users | synonyms

1
vote
0answers
17 views

git-latexdiff and relative imports on linux

I have a paper which is basically structured in a directory this way: mypaper/ main.tex sections/ intro.tex methods.tex conclusions.tex img/ img1.png ...
1
vote
0answers
25 views

Error when combining biblatex, hyperref and latexdiff

I've stumbled upon a weird incompatibility between the hyperref and biblatex packages and latexdiff. If there is an added citation with more authors than the biblatex maxcitenames parameter, then I ...
1
vote
0answers
50 views

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 ...
5
votes
1answer
290 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 ...
0
votes
0answers
25 views

all citations are missing in latexdiff

I have used latexdiff to generate a newDiff.tex and then compiled it with the normall pdflatex-bibtex and then twice pdflatex, but I received many warnings for the each citations and the output pdf is ...
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 ...
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 ...
1
vote
0answers
141 views

Latexdiff not working in Windows (Unescaped left brace in regex)

Because the miktex repo is down today, I tried installed the latexdiff package manually. I am using windows 10 by the way. Here are the steps I followed. Installed strawberry perl from ...
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 ...
1
vote
1answer
52 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
45 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 ...
1
vote
1answer
40 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 ...
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> ...
4
votes
1answer
93 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
3k 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, ...
1
vote
1answer
67 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} ...
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 ...
0
votes
0answers
166 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
145 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
125 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: ...
2
votes
0answers
303 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 ...
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 ...
2
votes
1answer
202 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
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
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
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 ...
-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. ...
1
vote
0answers
166 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 ...
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} ...
3
votes
0answers
157 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 > ...
4
votes
3answers
353 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 ...
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 ...
1
vote
1answer
100 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 ...
0
votes
0answers
178 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 ...
6
votes
1answer
817 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 ...
2
votes
0answers
137 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
132 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: ...
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 ...
13
votes
2answers
779 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 ...
4
votes
1answer
336 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
255 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
184 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
103 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
346 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
97 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
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 ...
0
votes
1answer
68 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
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 ...
1
vote
1answer
442 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
3k 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 ...