latexdiff icon indicating copy to clipboard operation
latexdiff copied to clipboard

\protect\cite causes a diff that does not compile

Open wmuni opened this issue 10 years ago • 1 comments

Hi,

when using \protect\cite{} in a figure caption (and the figure caption was added, latexdiff produces an output that does not compile, at least not with the vldb class that is available from

http://vldb2016.persistent.com/download_files/vldb.cls

I have not looked at the latexdiff code, but maybe the easiest fix is to not split \protect\cite if it is found.

base.txt diff.txt extend.txt

wmuni avatar Jan 22 '16 16:01 wmuni

OK, I had a look. Unfortunately your suggested fix is not so easy to implement without causing other problems. If I change \documentclass{vldb} to \documentclass{article} then it works as expected, so there must be some particular problem with the vldb package. As this is a non-standard package, I am a little bit reluctant to potentially break other functionality to accommodate that package. As a work-around you can use option --disable-citation-markup, which will result in compilable code even under vldb but means that citations are no longer marked up.

ftilmann avatar Jan 23 '16 02:01 ftilmann