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

Changebar and coloredtext, but only for added content

Is it possible to instruct latexdiff to display a lateral changebar whenever a change has occurred, color any text that has been added, and hide any removed text? Basically latexdiff --type ...
user avatar
  • 795
0 votes
1 answer
44 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 ...
user avatar
  • 3,391
0 votes
0 answers
60 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 ...
user avatar
  • 3
0 votes
1 answer
58 views

Latexdiff on multi-file project

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 ...
user avatar
  • 133
0 votes
1 answer
36 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 ...
user avatar
  • 125
4 votes
1 answer
166 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 ...
user avatar
  • 173
0 votes
0 answers
101 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}...
user avatar
0 votes
0 answers
53 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 \...
user avatar
  • 2,659
0 votes
0 answers
45 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} ...
user avatar
  • 2,659
0 votes
1 answer
148 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 \...
user avatar
  • 2,659
0 votes
1 answer
118 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 ...
user avatar
1 vote
1 answer
116 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?
user avatar
  • 458
1 vote
1 answer
63 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 ...
user avatar
  • 458
0 votes
1 answer
45 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 ...
user avatar
  • 319
5 votes
2 answers
3k 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 ...
user avatar
0 votes
0 answers
69 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} \...
user avatar
2 votes
0 answers
86 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 ...
user avatar
  • 41
0 votes
0 answers
393 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. ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
  • 33
0 votes
0 answers
322 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% ...
user avatar
1 vote
0 answers
141 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 ...
user avatar
  • 11
1 vote
1 answer
180 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{...
user avatar
  • 13
15 votes
2 answers
3k 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 ...
user avatar
  • 7,168
0 votes
1 answer
377 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
  • 1
4 votes
2 answers
1k 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 ...
user avatar
4 votes
1 answer
794 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{...
user avatar
  • 252
1 vote
1 answer
182 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} \...
user avatar
  • 4,630
0 votes
1 answer
140 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 ...
user avatar
1 vote
2 answers
540 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 ...
user avatar
  • 11
0 votes
0 answers
239 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 ...
user avatar
  • 1
0 votes
0 answers
140 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 ...
user avatar
  • 1
2 votes
0 answers
471 views

Error in texstudio when using latexdiff on windows 10

I tried to use latexdiff with texstudio on win 10, but failed. This is the original tex: \documentclass{article} \begin{document} This is the draft. \end{document} This is the revised tex: \...
user avatar
1 vote
1 answer
292 views

latexdiff doi entries in bibtex / bbl file?

I'm trying to do tracked changes for my references in latex using latexdiff and bibtex. What I am doing is running latexdiff on the original and updated *.bbl files and while this works well for ...
user avatar
1 vote
1 answer
911 views

using git-latexdiff on Windows

I need to get the latexdiff between current git revision and 10 commits back so I am looking at this git-latexdiff. However the instruction seems to be for non-Windows. I did try to run the ...
user avatar
  • 129
1 vote
2 answers
1k views

latexdiff ignore ref and label

I would like to use latexdiff on a document where I have changed the label of my figures. Is there a way to ignore changes of the commands ref and label? Here is an example: old_version.tex \...
user avatar
  • 141
0 votes
1 answer
156 views

latexdiff produces latex with error: ! Illegal parameter number in definition of \showCODEN

I am using latexdiff to generate a diff latexdiff-vc --git --flatten -r TAG paper.tex. Unfortunately, when I try to compile a PDF, I get the following error ! Illegal parameter number in definition ...
user avatar
  • 185
3 votes
1 answer
90 views

How to use a command that takes one argument as a declaration?

I would like to apply \sout{} from the ulem package to anything between \DIFdelbegin and \DIFdelend below (commands from the Latexdiff script). Can the definitions of the two commands be modified in ...
user avatar
  • 4,886
1 vote
1 answer
497 views

File 'latexdiff.sty' not found \usepackage (Texlive)

I have used the latexdiff to generate a diff.tex, and it works fine. But when i try to generate a pdf file, the texstudio tell me that File 'latexdiff.sty' not found \usepackage. The following is the ...
user avatar
3 votes
0 answers
375 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 ...
user avatar
  • 304
1 vote
1 answer
229 views

latexdiff failing with tikz-cd

I am having problems running latexdiff on even the simplest file which uses tikz-cd for commutative diagrams. Here's a minimal example. What am I doing wrong? old.tex \documentclass{article} \...
user avatar
2 votes
1 answer
2k views

latexdiff don't work in table with \scalebox

When revise my manuscript, I found latexdiff can't label changes in tables. For example, there are two tex files before and after revision: Before revision \documentclass{article} \usepackage{...
user avatar
1 vote
0 answers
709 views

latexdiff error: The system cannot find the file specified

After an apparently mandatory Windows update screwed up my PATH variables and Controlled Folder Access, I took great pains to reconfigure (and even reinstall) MikTeX 2.9 so that the usual routines ...
user avatar
  • 11
0 votes
1 answer
564 views

How to highlight deleted text in the PDF output generated by compiling latexdiff

For the purposes of showing corrections to a PhD thesis, I am using latexdiff to produce a PDF showing the difference between the original and the new version. My examiner has requested me to not ...
user avatar
0 votes
1 answer
112 views

Gibberish string prepended to deleted text in the PDF obtained by compiling 'diff' file generated by latexdiff

I am using latexdiff for marking up corrections requested by the examiners to my PhD thesis. I have a strange issue with this. Upon compiling the diff.tex file, I get a specific string 4.0pt=-.55ex ...
user avatar
2 votes
1 answer
145 views

some tex files use a % before footnote?

I simply can't understand the difference: in some of my tex files I see something like this: some text with a footnote\footnote{some footnote} while in other files i see: some text with a footnote% ...
user avatar
  • 1,961
0 votes
0 answers
279 views

Latexdiff output error

I am comparing two latex files using latexdiff. It doesn't compile due to the following error: ! Missing $ inserted.$ \DIFdel{x^ = arg\min_{x\in \mathcal{D}_u} } How to solve this issue?
user avatar
  • 235
4 votes
0 answers
121 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 ...
user avatar
1 vote
0 answers
182 views

Document with tracking and without tracking

I have created the latex paper for the submission in IEEE letters. The letter is two column single space. In order to submit the revision i need to make three documents: a) single-column double-space ...
user avatar
  • 111
2 votes
0 answers
170 views

"not a valid pathspec" wit git-latexdiff

Do anyone know what's wrong here? $ git-latexdiff --main main.tex master other-branch /usr/bin/latexpand fatal: empty string is not a valid pathspec. please use . instead if you meant to match all ...
user avatar
  • 213