Questions tagged [latexdiff]

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

Filter by
Sorted by
Tagged with
165 votes
8 answers
44k 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 ...
Simon's user avatar
  • 4,262
42 votes
1 answer
12k 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 ...
Jakob's user avatar
  • 421
38 votes
6 answers
13k 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> \...
aphex's user avatar
  • 1,207
25 votes
1 answer
28k 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: ''!...
RoflcoptrException's user avatar
22 votes
3 answers
21k 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....
mfit's user avatar
  • 323
21 votes
4 answers
4k 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 ...
Stephen's user avatar
  • 311
20 votes
2 answers
6k views

latexdiff with \cite commands gives output with apparently mismatched braces

I have run into a problem with the markup that latexdiff adds around \cite commands. The MWE below, which is supposed to have been generated by latexdiff, doesn't compile because LaTeX doesn't ...
Ant's user avatar
  • 7,568
20 votes
2 answers
4k 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 ...
Paul's user avatar
  • 615
19 votes
3 answers
10k 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 ...
Rabarberski's user avatar
  • 6,459
18 votes
2 answers
10k 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 ...
Jeff's user avatar
  • 359
17 votes
3 answers
3k 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 ...
RobinLovelace's user avatar
15 votes
1 answer
4k 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 ...
remus's user avatar
  • 3,113
15 votes
5 answers
6k 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 ...
levesque's user avatar
  • 13k
14 votes
2 answers
5k 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 ...
JJ Salamon's user avatar
14 votes
2 answers
5k 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 ...
RobinLovelace's user avatar
13 votes
1 answer
12k 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 \...
tarheels's user avatar
  • 319
13 votes
3 answers
25k 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, ...
jjyu2002's user avatar
  • 271
12 votes
1 answer
4k 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} \begin{...
James Borger's user avatar
11 votes
2 answers
17k 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*} ...
Echan's user avatar
  • 511
11 votes
2 answers
27k 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 ...
Herr K.'s user avatar
  • 18k
10 votes
2 answers
9k views

Install and use latexdiff without MikTex

I use overleaf on Windows for my research papers and thesis and it works fine. However, I received reviews from a journal, and they require me to track changes in my old and final manuscript. Inspire ...
Zainab Iftikhar's user avatar
9 votes
1 answer
3k 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} ...
user48678's user avatar
  • 291
9 votes
1 answer
1k 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 ...
Vass's user avatar
  • 1,756
9 votes
0 answers
5k views

latexdiff Producing Error with Simple Tabular [closed]

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 &...
James's user avatar
  • 4,587
8 votes
2 answers
2k 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?
Allan's user avatar
  • 205
8 votes
1 answer
2k 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} ...
Thomas W.'s user avatar
  • 703
8 votes
2 answers
693 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 ...
Zorzal Zilba's user avatar
8 votes
1 answer
887 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=...
Mikael Fremling's user avatar
7 votes
2 answers
17k 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-...
Kathryn's user avatar
  • 71
7 votes
1 answer
1k 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} \...
bers's user avatar
  • 5,414
6 votes
0 answers
4k views

Using Latexdiff math-markup for not comparing equations [closed]

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 ...
user37742's user avatar
5 votes
3 answers
16k 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 ...
Ashley Naimi's user avatar
5 votes
2 answers
3k views

Can't locate Algorithm/Diff.pm in @INC (you may need to install the Algorithm::Diff module)

I'm having the same problem as described in the closed question "https://tex.stackexchange.com/questions/104350/problem-regarding-latexdiff-perl-and-miktex-2-9-on-win7". Following the ...
user226796's user avatar
5 votes
2 answers
2k 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:~/...
user2740's user avatar
  • 493
5 votes
1 answer
2k 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, ...
Martin H's user avatar
  • 18.2k
5 votes
1 answer
1k 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 output....
SSteve's user avatar
  • 175
5 votes
1 answer
2k 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 ...
user1466889's user avatar
5 votes
1 answer
1k views

How to use latexdiff to compare changes in .bib files?

I read several of frederik's answers on latexdiff, but I still struggle to get latexdiff to mark differences for references (i.e., printed via \printbibliography). Suppose I have two .tex and ...
Mihai's user avatar
  • 223
5 votes
0 answers
1k 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 ...
Avi Ginsburg's user avatar
5 votes
2 answers
8k 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 miktex/bin/...
user24021's user avatar
  • 103
4 votes
3 answers
2k 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{}{}...
darthbith's user avatar
  • 7,384
4 votes
1 answer
695 views

latexdiff encoding issue

I got the exact same problem as described here and here: umlauts are translated into strange characters; the output file does not compile the output file is UCS2-Little-Endian encoded (according to ...
JoN's user avatar
  • 334
4 votes
1 answer
4k 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] \...
becool_max's user avatar
4 votes
1 answer
5k 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 environment....
user avatar
4 votes
1 answer
2k views

Latexdiff and biblatex citation commands

I'm having trouble getting latexdiff to work when using the biblatex citation commands \parencite and \textcite. Take old.tex: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{...
avs's user avatar
  • 282
4 votes
1 answer
742 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 ...
fmonegaglia's user avatar
  • 1,754
4 votes
1 answer
640 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 ...
Jacob Schaer's user avatar
4 votes
0 answers
142 views

Typesetting an accessibility friendly diff-metric for changes per paragraph between two TeX documents

I am peer-reviewing a dispute in authorship order between two parties in our research group for a co-authored manuscript. I suggested them to use the excellent latexdiff.pl to compare their ...
Dr Krishnakumar Gopalakrishnan's user avatar
4 votes
0 answers
3k views

all citations are missing in latexdiff [closed]

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 ...
Amir's user avatar
  • 351
4 votes
0 answers
808 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-...
finstats's user avatar
  • 527