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 folder, but I do not know how to use it. My questions are:

  1. how to use latexdiff? do I click latexdiff then the Terminal shows up? then do I write the command there latexdiff old.tex new.tex > diff.tex? I have tried this, but I could not write anything in the Terminal (a terminal appears but just for less than 1 second).
  2. if I want to compare two tex files, where or under what path should I put these two tex files?
  3. do I run latexdiff script in TexLive with macros or applyscript?

I hope someone can help me, please!!

  • Welcome to TeX.SX! Have you read the manual? – TeXnician Jun 23 '17 at 15:58
  • Yes I do. I installed pearl script and I tried to run latexdiff (since pearl), but i don´t know why i can´t write in the terminal. – Marisol González Jun 23 '17 at 16:14
  • with texmaker panel "source viewer" can help to find differences between two files – Salim Bou Jun 23 '17 at 16:54
  • The terminal probably opens and closes because the command is run without arguments, which is not a valid mode, so it closes with an error message (which you can't see because the window closes even before there was enough time to print the message). – frederik Jun 24 '17 at 14:24
  • You need to open the terminal first (in Windows 7 and maybe other version, too, type cmd in search box, or find "command line prompt" or similar in Accesoires in Menu). Then run latexdiff from there (you might need to be some basic Windows command line basics). – frederik Jun 24 '17 at 14:41
  1. Run "Windows PowerShell".
  2. Run the command latexdiff old.tex new.tex > diff.tex in the PowerShell.
  3. Compile diff.tex with TexLive or TexStudio.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.