Questions tagged [latexdiff]
latexdiff is a Perl script which compares two LaTeX files and marks up significant differences between them.
170
questions
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 = "...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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: ...
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 ...
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}...
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 ...
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 ...
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}
%...
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 ...
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 ...
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:
%\...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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}...
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
\...
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}
...
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
\...
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 ...
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?
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 ...
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 ...
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 ...
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}
\...
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 ...
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.
...
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 ...
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% ...
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 ...
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{...
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 ...
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 ...
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 ...
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 ...
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{...
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}
\...
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 ...
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 ...
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 ...
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 ...