[Tex/LaTex] How to use Latexdiff with TexLive

latexdiff

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!!

Best Answer

  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.
Related Question