## LaTeX forum ⇒ General ⇒ Using LaTeXdiff with MikTeX

LaTeX specific issues not fitting into one of the other forums of this category.
is1there
Posts: 1
Joined: Fri Mar 14, 2014 4:46 pm

### Using LaTeXdiff with MikTeX

Dear Members,

I am trying to use latexdiff to compare two .tex files, producing a .pdf with a markup similar to the "track changes" function in Microsoft word (see https://www.sharelatex.com/blog/2013/02 ... ments.html).

I have downloaded the latexdiff files from CTAN (http://www.ctan.org/tex-archive/support/latexdiff) and I have also downloaded Strawberry Perl (http://strawberryperl.com/). I am using MiKteX to compile my two tex documents.

In the command line (DOS prompt) I have been trying to instruct latexdiff to compare two very simple .tex files: SAMPLE4.tex and SAMPLE5.tex. I have been following the instructions in the USAGE section of the first URL I list here ("...using latexdiff..."), specifically:

"Usage

To compare two documents simply run latexdiff in the command line like so:

latexdiff draft.tex revision.tex > diff.tex"

However, when I enter the following into the command line:

C:\Users\Kathryn\latexdiff SAMPLE4.tex SAMPLE5.tex > diff.tex

I get the following error message:
Input file SAMPLE\$.tex does not exist. at C:\Program Files\MiKTeX 2.9\scripts\latexdiff\latexdiff line 513, <DATA> line 20026.

I suspect the problem is that the computer cannot find the file SAMPLE4.tex and that I need to make SAMPLE4.tex (and presumably also SAMPLE5.tex) available in a directory that I can accurately specify in DOS.

I tried putting my two .tex files in C:\Program Files\MikTeX 2.9\latexdiff but this did not work.

Can anyone here offer me some advice

Thank you.

Kathryn

Tags:

Johannes_B
Site Moderator
Posts: 3644
Joined: Thu Nov 01, 2012 4:08 pm
I guess the Windows/DOS Prompt is aware of numbers, so i think you are just in the wrong folder.
You can go one directory level higher in your file manager (i.e. explorer), press shift and right click on your directory. In the opening prompt you should be able to click Open Terminal here (or something similar, i am not sure).

No you should see the path of your working directory in front of the blinking cursor. Try `dir` to confirm, that your tex-files are there.

Now you can try again.

I just noticed, that this is a crosspost to TeX.SX. Crossposted are usually frowned upon, please read about that: Gimme pizza!
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Return to “General”

### Who is online

Users browsing this forum: No registered users and 4 guests