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
0answers
25 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 ...
1
vote
0answers
78 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 ...
0
votes
0answers
11 views

latexdiff: “shallow” diff

Often, I get with latexdiff errors that aren't too significant, but I still need to correct them with exclude parameters or manually. I was wondering if there's a way to run a "shallow" ...
0
votes
0answers
13 views

Unmatched Perl Lib versions

To use latexdiff on Windows 10, I recently installed the Strawberry Perl. It works fine with that perticular .tex file. However, when I start compling an other .tex file. I've encountered the conflict ...
3
votes
1answer
80 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{...
0
votes
1answer
28 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} \...
0
votes
1answer
16 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 ...
0
votes
0answers
45 views

latexdiff newly always fails, produces regex error

Not only normal uses of latexdiff, like latexdiff a.tex b.tex > diff.tex, but also just latexdiff --help, are newly failing for me with the error: Unknown regexp modifier "/n" at /Library/TeX/...
0
votes
1answer
80 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
0answers
51 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
0answers
20 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 ...
1
vote
0answers
61 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: \...
1
vote
1answer
77 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 ...
0
votes
0answers
101 views

Error when compiling diff.tex after latexdiff

I'd like to compare 2 versions of my latex document, that has many \input sections. So I have 2 folders my-doc and my-doc-old that contain 2 different git revisions. First I flatten all documents: ...
1
vote
1answer
343 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 ...
1
vote
2answers
273 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 \...
0
votes
1answer
61 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 ...
2
votes
1answer
35 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 ...
0
votes
1answer
255 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 ...
3
votes
0answers
138 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 ...
1
vote
1answer
92 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} \...
2
votes
1answer
684 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{...
1
vote
0answers
444 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 ...
0
votes
1answer
286 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 ...
0
votes
1answer
86 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 ...
2
votes
1answer
105 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% ...
0
votes
0answers
171 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?
4
votes
0answers
103 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 ...
1
vote
0answers
118 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 ...
2
votes
0answers
150 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 ...
2
votes
0answers
35 views

latexdiff for single character

I have a document in which many words are corrected in terms of inflection from an original one. Normally, latexdiff shows the strike and correction for entire word, which makes the difference ...
0
votes
0answers
235 views

latexdiff trips over hskip

I have a bibliography of a document in a style that produces lines like these in the bbl file: .\hskip 1em plus 0.5em minus 0.4em\relax Springer When using latexdiff on documents where one of these ...
2
votes
0answers
100 views

Is there any way to strike superscripted references properly with latexdiff?

I am using latexdiff to keep track of changes in my LaTeX documents. Superscripted references are striked on the same level as normal text, making them appear underlined. I want to get rid of this ...
1
vote
1answer
403 views

latexdiff: how to keep the original colored text in the diff.tex version?

I have a latex documents which contains text in color. When I run latexdiff old.tex new.tex > diff.tex the diff.tex version do not contains the colors anymore. How can I keep the original color ...
2
votes
0answers
641 views

latexdiff in linuxmint Unescaped left brace in regex is deprecated, passed through in regex;

I have linuxmint OS, am a relatively new linux user, and I have found that multiple people have had this problem with latexdiff but I cannot figure out how to solve this and have spent a lot of time ...
1
vote
1answer
502 views

latexdiff file not found on include figure.tikz

I am running latexdiff --flatten main.tex main.tex > new.tex to produce a document with all the input, include and subfile LaTeX files included. The goal is to then do the same with an older ...
2
votes
3answers
12k views

MacTex problem - 'pdflatex does not exist' error

I had a version of MacTex 2014. I needed to use latexdiff but this latter command did not work on a terminal. So I installed latexdiff as a package from CTAN, by using its make file. After this ...
1
vote
1answer
780 views

What output encoding does `latexdiff` use?

I'm trying to use latexdiff on two versions of a document. These are encoded in UTF8 and have the \usepackage[utf8]{inputenc} statement as first line within the preamble. I processed the files then ...
2
votes
1answer
145 views

How can I include the section number of a deleted section in the deletion formatting applied by latexdiff?

I have a document marked up by latexdiff and then edited to make it compile. The current output for a deleted section is similar to this: How can I include the section number in the deletion markup? ...
1
vote
0answers
488 views

How do I use latexdiff with MikTex without Perl given repository problem?

The CTAN latexdiff page states that latexdiff is contained within miktex. Trying to install it using MiKTeX Package Manager (Admin) as suggested January 14th, I instead encounter an error (is it a ...
0
votes
1answer
1k views

How to use Latexdiff with TexLive

I am trying to use latexdiff to compare two tex documents on my pc. I use TexLive to compile my latex documents. I know the latexdiff package is already installed with under C:\texlive\2016\bin\win32 ...
1
vote
1answer
256 views

Is latexdiff-vc -r inclusive or exclusive?

I often use latexdiff-vc -r <rev> but I always wondered if <rev> is inclusive or exclusive.
0
votes
1answer
612 views

force latexdiff to ignore small changes and only consider the blocks larger than a size

I am using latexdiff to highlight the changes between two tex files. It can find and highlight the added/deleted parts. But I want it to only show the large blocks of texts, and not the minor changes:...
1
vote
1answer
1k views

Encoding problem with latexdiff

After discovering latexdiff, I wanted to give it a try and promptly ran into what seems to be an enconding issue. Consider these two very simple example files (without special characters): \...
3
votes
1answer
409 views

Lualatex, changebar and latexdiff: no changebars visible

Compiling following latex file with lualatex (0.95) does not show any changebars \documentclass{article} \usepackage{changebar} \usepackage{lipsum} \begin{document} \begin{changebar}[1mm] \lipsum[...
1
vote
1answer
393 views

Compiling the latexdiff when adding a subscript before a pmatrix environment causes compilation error

Consider the following two simple .tex files: test_old.tex: \documentclass{article} \usepackage{amsmath} \begin{document} $a \begin{pmatrix}a & b\end{pmatrix}$ \end{document} and test_new....
1
vote
0answers
256 views

pgfplotstabletypeset not opening csv file when using latexdiff

When I generate a document with the code below (data file copied at the bottom), my table is correctly imported. If I change a word in, for example the caption, and do a diff of the two files using ...
1
vote
1answer
95 views

latexdiff and \let

I added this line to my document to redefine l@chapter later: \let\oldlchapter\l@chapter Now latexdiff creates this, which doesn't compile: \let\oldlchapter\DIFadd{\l@chapter } What can I do to ...
1
vote
2answers
1k views

Latexdiff error on changing chapter title

When I try to compile latexdiff output on two documents where the title of a chapter was changed, I get the following error: ! Missing number, treated as zero. <to be read again> \protect l.1 ...
2
votes
1answer
830 views

texdiff on plain tex files

I have two TeX files that I need to compare, and I thought texdiff could do this for me. Unfortunately, in the manual page, it reads For texdiff to work, the following LaTeX code must be inserted ...