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
17 views

Customizing latexdiff default (UNDERLINE) output styling

I'm using latexdiff to highlight the differences between two versions of a tex document, using the default style which is UNDERLINE. This style formats added text in blue with a wavy underline, and ...
0
votes
0answers
32 views

latexdiff got compilation error

I got this error when compiling a tex file generated by latexdiff Underfull \hbox (badness 6364) in paragraph at lines 187--199 | [] | [] | [] | [] | [] | [] | [] Runaway ...
3
votes
0answers
46 views

latexdiff Producing Error with Simple Tabular

I ran across an error using latexdiff that I have reduced to the following MWE. Given before and after files... \documentclass{article} \begin{document} \thispagestyle{empty} \begin{tabular}{ll} A &...
1
vote
0answers
22 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
36 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
77 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 ...
0
votes
0answers
35 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 ...
1
vote
0answers
188 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 http://...
5
votes
1answer
45 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 old=...
1
vote
1answer
68 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, \documentclass{...
2
votes
1answer
56 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 \caption@...
4
votes
1answer
113 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
79 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} \usepackage[demo]{graphicx}...
1
vote
1answer
42 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
125 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
203 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
163 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
141 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
357 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 (...
5
votes
1answer
394 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
230 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 can'...
2
votes
0answers
61 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
152 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
175 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 > example-...
1
vote
0answers
169 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 ...
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, ...
0
votes
0answers
189 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
109 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 /usr/texbin/...
2
votes
0answers
158 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
140 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
384 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 \SI{}{}...
3
votes
1answer
356 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 PATH=$PATH:~...
4
votes
1answer
362 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
268 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
194 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
107 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
364 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: \begin{equation}\...
1
vote
0answers
106 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
69 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 subfiles....
1
vote
1answer
481 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 https://www.sharelatex.com/blog/2013/02/16/using-...
1
vote
0answers
270 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 %...
15
votes
2answers
586 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
815 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
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
600 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
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 ...
6
votes
1answer
869 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 ...