Skip to content

Latexrevise removes lines with %DIFAUXCMD #302

@Ivo-Maffei

Description

@Ivo-Maffei

Using latexrevise 1.3.2 and latexdiff 1.3.3 gives some weird behaviours in the presence of \cite{} commands.
I believe latexrevise simply removes all rows where %DIFAUXCMD appears.

Very minimal example:
test-old.tex
aaa ccc

test-new.tex
aaa \cite{ddd} ccc

latexdiff test-old.tex test-new.tex > test-diff.tex produces test-diff.tex

aaa \DIFaddbegin \DIFadd{\mbox{%DIFAUXCMD
\cite{ddd} }\hskip0pt%DIFAUXCMD
}\DIFaddend ccc

latexrevise -a test-diff.tex outputs only ccc as if the rows with %DIFAUXCMD were simply deleted.
Manually changing the diff file by adding a new line after aaa makes latexrevise output

aaa
ccc

P.S: adding a preamble to the tex files so that they compile doesn't change the behaviour.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions