Featured Book

LaTeX Beginners Guide

Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 23 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Using LaTeXdiff with MikTeX

latexdiffMiKTeXAdd tags LaTeX specific issues not fitting into one of the other forums of this category.

Using LaTeXdiff with MikTeX

Postby is1there on Fri Mar 14th, 2014

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
is1there
 
Posts: 1
Joined: Fri Mar 14th, 2014

Re: Using LaTeXdiff with MikTeX

Postby Johannes_B on Fri Mar 14th, 2014

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.

TeX Live 2013, Ubuntu 12.04
Johannes_B
Site Moderator
 
Posts: 1036
Joined: Thu Nov 1st, 2012


Topic Tags

latexdiffMiKTeX

Return to General

Who is online

Users browsing this forum: No registered users and 23 guests