我安装了latexdiff并运行latexdiff C:\Users\Alf\OneDrive - Blabla\Git\document\main.tex > C:\Users\Alf\OneDrive - Blabla\Git\document-revised\main.tex
。但是,我收到以下错误:
2 and only 2 non-option arguments required. Write latexdiff -h to get help
C:\texlive\2022\bin\win32\runscript.tlu:915: command failed with exit code 2:
perl.exe c:\texlive\2022\texmf-dist\scripts\latexdiff\latexdiff.pl C:\Users\Alf\OneDrive - Blabla\Git\document\main.tex - Blabla\Git\document-revised\main.tex
我相信我安装了latexdiff成功,因为
latexdiff -h
返回:
Usage: c:\texlive\2022\texmf-dist\scripts\latexdiff\latexdiff.pl [options] old.tex new.tex > diff.tex
Compares two latex files and writes tex code to stdout, which has the same format as new.tex but
has all changes relative to old.tex marked up or commented. Note that old.tex and new.tex need to
be real files (not pipes or similar) as they are opened twice.
...
...
...
也许文件路径中的空格会导致问题?