ftilmann / latexdiff

Compares two latex files and marks up significant differences between them. Releases on www.ctan.org and mirrors
GNU General Public License v3.0
513 stars 72 forks source link

[latexdiff-vc] "Input file /tmp/... does not exist" if file has been renamed #240

Open janniklasrose opened 2 years ago

janniklasrose commented 2 years ago

I have a git repository where the name of the main (entry point) document has changed throughout the history of the repo. This is tracked in git (git mv main.tex thesis.tex) but obviously is not picked up by latexdiff-vs.

Running latexdiff-git --flatten -r v1 thesis.tex prints:

Input file /tmp/xW_WCyRbjA/latexdiff-vc-v1/thesis.tex does not exist at /usr/local/texlive/2021/bin/x86_64-linux/latexdiff line 1210, line 69372.

I would no expect latexdiff-vc to handle this automatically, since such a change of main document does not necessarily come from a git mv. However, it would be great to be able to specify the "old.tex" filename in the specified revision.

ftilmann commented 2 years ago

Sorry for reaction months after the fact, I am just going through the backlog. In principle should be possible to do that, but in the mean-time is suggest to use --flatten=keep-intermediate, and then after the error message run latexdiff directly on the resulting old and new files.