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

How to pass PDFLaTeX options? #233

Closed dpo closed 3 years ago

dpo commented 3 years ago

My document must be compiled with -shell-escape. How do I instruct latexdiff to pass that flag to pdflatex?

Thanks in advance!

ftilmann commented 3 years ago

I guess you refer to latexdiff-vc. This is supposed to work like this:

 latexdiff-vc - --pdf -c LATEX='pdflatex --shell-escape' ... 

but there is a bug in the current release version that makes it impossible to include space. It's fixed in commit dbf247f , but if you want to patch your local version, you can also simply find the line

  $CFG{LATEX} = "pdflatex";

in latexdiff-vc and add the desired options.

dpo commented 3 years ago

Thank you!