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
514 stars 72 forks source link

configuration argument ignored #160

Closed nlgranger closed 5 years ago

nlgranger commented 5 years ago

(I suspect I am using something wrong, but you may want to consider this as a documentation bug if it is)

When passing a configuration argument to latexdiff-vs:

latexdiff-vc --config="PICTUREENV=(?:picture|figure|DIFnomarkup|description)[\w\d*@]*" --flatten main.tex -r 927a20b8b087f4b15693546aef29e26af49cf65f

It complains about an unknown option and ignores said option:

Guess you are using GIT ...
Working on  main.tex 
Checking out old dir into: /tmp/DCLnMsWbsb/latexdiff-vc-927a20b8b087f4b15693546aef29e26af49cf65f (rev: 927a20b8b087f4b15693546aef29e26af49cf65f)
Running: latexdiff  '--config PICTUREENV=(?:picture|figure|DIFnomarkup|description)[\w\d*@]*' '--flatten' "/tmp/DCLnMsWbsb/latexdiff-vc-927a20b8b087f4b15693546aef29e26af49cf65f/main.tex" "main.tex" > "main-diff927a20b8b087f4b15693546aef29e26af49cf65f.tex"
Unknown option: config pictureenv
Bibliography file /tmp/DCLnMsWbsb/latexdiff-vc-927a20b8b087f4b15693546aef29e26af49cf65f/main.bbl cannot be found. No flattening of \bibliography done. Run bibtex on old and new files first at /usr/bin/latexdiff line 1744.
Generated difference file main-diff927a20b8b087f4b15693546aef29e26af49cf65f.tex

Descriptions environments are clearly not ignored in the resulting file.

jmarshall commented 5 years ago

Coincidentally I ran into this today too. It is a bug, fixed by PR #121 but that has not yet made its way into a release.

nlgranger commented 5 years ago

Great! Thank you. Closing this then.

jmarshall commented 5 years ago

The fix is mostly no good to you until there is a release containing it, so you might consider leaving this open to remind the maintainer that this issue remains outstanding.