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
0 votes
0 answers
9 views

Preserve equation/section counters of the previous version with latexdiff

I am using latexdiff to generate a PDF diff of two versions of a document. I am using overleaf with latexdiff according to this answer. I.e., with a latexmkrc file containing $pdflatex = "...
Cameron's user avatar
  • 123
0 votes
1 answer
36 views

git latexdiff struggles with symbolic link to references bib file

I'm using git latexdiff --latexmk --main my-dissertation.tex first-submission-tag HEAD to keep track of my dissertation corrections after my viva. It's working really well (I'm so grateful for this ...
Mr Felix U's user avatar
0 votes
0 answers
28 views

Latexdiff adds .tex to image.eps_tex filename and then fails

I have a publication done in Latex that needs track changes. When using latexdiff, I use --flatten to compile everything into one file. However, some of the figures have text in them, so I exported ...
LaMaster90's user avatar
0 votes
0 answers
111 views

Alternative to Latexdiff

I need to compare two versions of the latex file of my research papers. I ran latexdiff command as follows: latexdiff old_file.tex new_file.tex > diff_file.tex When I compile the diff_file.tex it ...
ABCD's user avatar
  • 1
0 votes
0 answers
25 views

Wrong pathnames with latexdiff -- flatten and multiple files added with \input

I've written my thesis in latex and have one folder per chapter and in each chapter folders, I've subfiles per sections. Now, I'm using latexdiff on my mac's terminal to look at difference between the ...
Alice's user avatar
  • 1
0 votes
0 answers
107 views

latexdiff "2 and only 2 non-option arguments required"

I installed latexdiff and ran latexdiff C:\Users\Alf\OneDrive - Blabla\Git\document\main.tex > C:\Users\Alf\OneDrive - Blabla\Git\document-revised\main.tex. However, I rceive the following error: 2 ...
Stücke's user avatar
  • 293
0 votes
0 answers
23 views

latexdiff produces non-compilable file in presence of \lstMakeShortInline

I'm using latexdiff on a file that uses the listings package, and more specifically its lstMakeShortInline macro, that allows writing inline code in a concise way. If I start with the following orig....
Virgile's user avatar
  • 235
1 vote
0 answers
57 views

latexrevise not changing input file

I recently have found a .tex file (let's call it C.tex) that I generated years ago with latexdiff to compare differences between two source .tex files (let's call them A.tex and B.tex). However, those ...
blipblop's user avatar
0 votes
0 answers
75 views

Latexdiff doesn't make changes in bibliography(natbib) in Overleaf

I am using the following commands to make a PDF file which shows changes between two .tex files. It works nicely but not for the bibliography. Please find the commands in the overleaf below for ...
Ali Babar's user avatar
0 votes
1 answer
329 views

Latexdiff not compiling

I just found out about Latexdiff and it's just what I need right now. But unfortunatly I can't get the .tex-file created by Latexdiff to compile on my maschine. I tried a minimal example: file nr. 1: ...
Jelt0's user avatar
  • 3
1 vote
0 answers
85 views

How to change the \input paths from an initialization file (latexmkrc) to run latexpand and latexdiff on big projects?

I am working on a project to compare, let's say, "Old/main.tex" and "New/main.tex" which are assumed to be two big LaTeX projects with multiple calls to \input{}. To do so, I am ...
JuanC97's user avatar
  • 113
1 vote
1 answer
162 views

latexdiff does not diff enumerate environment

I'm using latexdiff to produce a diff between the following two latex files. Original: \documentclass{article} \begin{document} \begin{enumerate} \item{First item} \item{Second item} \item{Third item}...
BigCola's user avatar
  • 121
2 votes
1 answer
202 views

latexdiff-vc does not show differences in the bibliography

Running latexdiff-vc -r rev1 -r rev2 file.tex --pdf produces a pdf highlighting the changes in the tex but it does not show the changes in the bibliography. Is there something that needs to be enabled ...
user3761743's user avatar
1 vote
1 answer
370 views

latexdiff PDF file not compiling [closed]

I'm trying to compare two TeX files using latexdiff. I've been through all the necessary steps, the two TeX files I'm comparing are valid and compile without any issues, and when I run latexdiff in ...
Floyd's user avatar
  • 131
2 votes
1 answer
65 views

How to use double subscript with latexdiff?

I have two tex files which just have different characters with double subscripts: %test_1.tex \documentclass{article} \begin{document} 30th percentile of $S_{\textrm{NO$_2$}}$ \end{document} %...
zxdawn's user avatar
  • 123
1 vote
0 answers
50 views

Solution for using latexdiff on files with toggles

I have different versions of a latex file that use toggles (from etoolbox). When I use latexdiff to compare the different versions, I can see that latexdiff is (practically) oblivious to changes in ...
Cyriac Antony's user avatar
0 votes
0 answers
138 views

How to track change in in latex table with \adjustbox (to adjust table width) package?

I attempted to use latexdiff to compare track changes in a table containing \adjustbox in both the old.tex and new.tex files. But the command latexdiff old.tex new.tex > diff.tex is not showing any ...
relinquere's user avatar
0 votes
0 answers
185 views

Latexdiff - mark manually a table as added

I have used latexdiff to show the differences between two documents. Now I want to add a table in the diff-file and mark it as added (blue color with underline). How can I do this? I have tried: %\...
xxxyyy's user avatar
  • 1
0 votes
0 answers
437 views

How to compare two tex file outputs?

I want to get a highlighted pdf where the difference in two tex files output is captured. My main tex file calls separate tex files as chapters using \include . I tried using latexdiff, but it is not ...
Sandeep Pandey's user avatar
0 votes
1 answer
61 views

How Different Are Two (LaTeX) Files?

I needed to understand which of my chapters I had changed the most over the last year. There are of course many metrics that one can use to measure how different files are, but I decided that I ...
ivo Welch's user avatar
  • 3,744
2 votes
0 answers
573 views

Latexdiff and achemso not showing changes to the title

I'm trying to use the command latexdiff to provide markup on changes between two similar latex documents. I have used the achemso package and would like to continue doing so. It shows changes in the ...
MikeG's user avatar
  • 23
0 votes
1 answer
1k views

Latexdiff on multi-file project [duplicate]

Could anyone who has used latexdiff on a big multi-file project (a thesis for example) explain how to get it to work? I'm using the "flatten" option. I have also manually copied over the ...
oweydd's user avatar
  • 133
0 votes
1 answer
246 views

latexdiff-vc with --only-changes option

I am trying to run latexdiff-vc --pdf --only-changes -r [git revision SHA number] main.tex but I receive the error: Cannot combine graphics markup with float styles defining \DIFaddbeginFL in terms ...
Davi's user avatar
  • 125
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
0 votes
0 answers
372 views

latexdiff with align environment

I have a file old.tex \documentclass{article} \usepackage{amsmath} \newcommand{\nn}{\\} \begin{document} \begin{align} x^2\nn x^3 \end{align} \end{document} and a file new.tex \documentclass{article}...
NoethersOneRing's user avatar
0 votes
0 answers
197 views

Q: Problems with latexdiff and alignat

I've encountered a problem with latexdiff and alignat. Consider a file called temp-old.tex \documentclass{article} \begin{document} Hello this was a test. \end{document} and a file temp.tex \...
user1362373's user avatar
  • 2,859
0 votes
0 answers
318 views

latexdiff problem when adding section and changing first sentence of new section

Consider this example, which I'll call temp1.tex \documentclass{article} \begin{document} \section{Some section} This is an arbitrary sentence. And this is another arbitrary sentence. \end{document} ...
user1362373's user avatar
  • 2,859
2 votes
1 answer
938 views

How to track changes in figures?

I'm using latexdiff to track changes between two version of a manuscript, which is working fine. I also need to track changes in figures that I include through includegraphics. In other words, for \...
user1362373's user avatar
  • 2,859
1 vote
1 answer
1k views

A lot of errors occurred when using Latexdiff

There are two .tex files, one is the original tex file named Old.tex and the other revised tex file named New.tex. I need Latexdiff to formulate a PDF that highlighting the revisions I've made. If the ...
Jianing_Fu's user avatar
1 vote
1 answer
441 views

Getting git-latexdiff and texcount to work together nicely

What is the best way to get git-latexdiff to work nicely with texcount to view changed and deleted word counts between two commits?
Paul's user avatar
  • 534
1 vote
1 answer
122 views

texcount and latexdiff

I am wondering if there is a way to combine latexdiff and texcount, to count the number of words that have changed between two docs? This is not the same as the number of words before and after, but ...
Paul's user avatar
  • 534
0 votes
1 answer
88 views

Use latexdiff efficiency to build point-by-point response to reviewers

I'm trying to gain in efficiency in building a point-by-point response to reviewers of my scientific papers. I feel latexdiffvery efficient to track changes. Similarly, I find the way to quote what ...
Guillaume's user avatar
  • 321
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
0 votes
0 answers
193 views

latexdiff messes up equations and eqnarray

I am using latexdiff(1.3.0) to track some changes in a latex file. My problem is that, for some eqnarray part of the file which does not change between the two versions, such as \begin{eqnarray} \...
Marco Zaro's user avatar
2 votes
0 answers
120 views

latexdiff sed: can`t read

I am running latexdiff on a file in a git repository with the following command latexdiff-vc --git --force -r Versioning.tex --pdf it starts but then the following message appears Generated difference ...
Szymon's user avatar
  • 41
1 vote
0 answers
983 views

How should I pass latexdiff options to latexdiff-vc?

I use latexdiff-vc -r paper\paper.tex to diff my current .tex file relative to the version most recently committed to a Git repo. If citations do not change between versions, this command works great. ...
Richard Herron's user avatar
3 votes
1 answer
4k views

How to yellow highlight differences of two tex documents automatically in LaTex

I want to compare two different tex files, say old.tex and new.tex, by just yellow highlighting the different places in the new.tex automatically. I tried two ways but not exactly what I want. Use ...
Doris's user avatar
  • 33
0 votes
0 answers
1k views

Latexdiff with nested files

I have a problem using latexdiff (ver. 1.3.1.1). I have an Old.tex %% Old.tex %%%% \documentclass[a4paper,% 11pt% ...
Elzevirs's user avatar
1 vote
0 answers
354 views

Can't locate Algorithm/Diff.pm in @INC (you may need to install the Algorithm::Diff module) - solution to earlier question does not work

I'm having the same problem described in "https://tex.stackexchange.com/questions/566921/cant-locate-algorithm-diff-pm-in-inc-you-may-need-to-install-the-algorithmd", but the answer accepted ...
ser's user avatar
  • 11
1 vote
1 answer
450 views

How to exclude \label command in latexdiff

In some cases, the file produced by latexdiff will contain multiply-defined labels, which may cause compile error. Below is an example: old.tex \documentclass{article} \usepackage{amsmath} \begin{...
Ray30's user avatar
  • 13
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,548
0 votes
1 answer
782 views

Latexdiff TexStudio macro mystery

I run Windows 7, 64bit. In order to produce a new .tex file with the differences between two versions of the same document, following the online tutorial https://www.youtube.com/watch?v=IAWEywCx9hQ, I ...
Alecos Papadopoulos's user avatar
0 votes
0 answers
37 views

Detect change without having two tex files

I need to detect changes between two pdf files. When I made corrections to my thesis, I worked on the same tex file. So I do not have two different tex files. Now how can I detect the changes in the ...
gultu's user avatar
  • 1
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
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
2 votes
1 answer
308 views

Latexdiff and \textcquote

This is probably a niche conflict between latexdiff and csquotes, but I'd like to get to the bottom of it. Consider old.tex: \documentclass{article} \usepackage{csquotes} \usepackage{filecontents} \...
Clément's user avatar
  • 5,571
1 vote
1 answer
309 views

latexdiff highlighted changes are in a different font, how to fix?

When I used latexdiff to create a latex file highlighting the differences between my two documents, the new document it produced not only highlights the changes, but changes the font of the ...
spacetyper's user avatar
1 vote
2 answers
1k views

the .bbl file generated by latexdiff causes errors

I am trying to show the changes in the References by using latexdiff. In the beginning, I used latexdiff old.tex new.tex > diff.tex, then I run the diff.tex file, the changes were not shown. Then ...
Yang's user avatar
  • 11
0 votes
0 answers
369 views

Including bib while comparing two latex file using latex diff

I have two files mainold.tex and mainnew.tex. In both of them I have refsold.bib and refsnew.bib as bibliography. Now when I want to use --flatten while executing latexdiff command, I found an error ...
faysal's user avatar
  • 1
0 votes
0 answers
291 views

LatexDiff is gettign error while processing Tabu tag

I am using latexdiff to generate difference between two file. After executing the following code I have created the new main.tex file. latexdiff --exclude-textcmd="section,subsection" mainold.tex ...
faysal's user avatar
  • 1