GeneralCapabilities of "latexdiff"

LaTeX specific issues not fitting into one of the other forums of this category.
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Capabilities of "latexdiff"

Post by 21did21 »

Hello all,

I am novice with LaTeX and one of my friend want to me that i install "latexdiff" to work with him. I don't know "latexdiff" and i don't understand very well what i can make with it.

Can you explain to me some comment about this?

PS: "latexdiff" exists on Windows or only on Linux? (It seems that is just on Linux.)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Capabilities of "latexdiff"

Post by localghost »

It is a Perl script. More can be found out by reading the latexdiff manual. After installation by the package manager of your TeX distribution you have also instant access via command line.

Code: Select all

texdoc latexdiff
Strawberry Perl is a free Perl interpreter for Wind0ws.


Thorsten
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Capabilities of "latexdiff"

Post by 21did21 »

thanks for your help !

i was on this website :
http://www.peteryu.ca/tutorials/publishing/latexdiff

and i have installed "strawberry Perl" and "Miktex" for windows. These two tool are installed now on my computer.

Now, if i open a "command windows" and i put in DOS :

Code: Select all

latexdiff-so a.tex b.tex > differences.tex
(with "a.tex" my old latex document and "b.tex" the new)

it should be works ? (i have a file "differences.tex" that is created but i haven't not a correct result: the file is empty)

ps: i have already strawberry perl
Attachments
latexDiff.jpg
latexDiff.jpg (19.04 KiB) Viewed 11393 times
21did21
Posts: 58
Joined: Thu Sep 08, 2011 12:27 pm

Re: Capabilities of "latexdiff"

Post by 21did21 »

now all is OK thanks !

it was a problem in the path and in one extension :)

cheers
xCx
Posts: 3
Joined: Thu Aug 13, 2015 7:32 pm

Re: Capabilities of "latexdiff"

Post by xCx »

I'm having the same problem: "the file [differences.tex created] is empty".

21did21 said that "it was a problem in the path and in one extension". Which path and which extension? How to solve this?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Capabilities of "latexdiff"

Post by Stefan Kottwitz »

Hi xCx,

welcome to the forum!

Perhaps provide complete information about your specific case. Such as files you compared by latexdiff. You can add attachments to forum posts for showing the files.

Stefan
LaTeX.org admin
xCx
Posts: 3
Joined: Thu Aug 13, 2015 7:32 pm

Re: Capabilities of "latexdiff"

Post by xCx »

Hi Stefan, thank you for replying.

I have just downloaded the StrawberryPerl that is on c:/perl and downloaded latexdiff (as explained in sharelatex[*]) that now have been copied to c:/perl/bin/latexdiff).

The two documents old.tex and new.tex compile very well separately.

latexdiff old.tex new.tex > diff.tex

creates an empty diff.tex in the folder c:/users/me/documents

Any idea why?

[*] https://www.sharelatex.com/blog/2013/02 ... ments.html
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Capabilities of "latexdiff"

Post by Stefan Kottwitz »

No idea yet. Do you get any error message? Are the files actually different? Can the files be found by the command latexdiff? How does it look like, when you execute it?

Stefan
LaTeX.org admin
xCx
Posts: 3
Joined: Thu Aug 13, 2015 7:32 pm

Re: Capabilities of "latexdiff"

Post by xCx »

Oh, I found what the problem was!

21did21 was right when they said there was a problem with the path: I never used the command line before so I figured out I had to go into the folder the two .tex were.

Using the "cd NameFolder" to get to where they are and from there running "latexdiff old.tex new.tex > diff.tex" all was well.

Sorry for the noob question. :roll:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: Capabilities of "latexdiff"

Post by Stefan Kottwitz »

No problem. Thanks for confirming the solution and for clarifying the explanation! It may help further readers who come in via google.

Stefan
LaTeX.org admin
Post Reply