latexdiff icon indicating copy to clipboard operation
latexdiff copied to clipboard

Changes in tabbing environment breaks compilation

Open jprotze opened this issue 7 years ago • 1 comments

old.tex

\documentclass{book}
\begin{document}
\begin{tabbing}
\end{tabbing}
\end{document}

new.tex

\documentclass{book}
\begin{document}
\begin{tabbing}
o \= o \= o\\
o \>  \> o\\
\end{tabbing}
\end{document}

I could not find out how the & in tabular is handled by latexdiff. I think, the separators in tabbing should be handled similarly. But here, also the linebreaks need to be kept in place.

The tabbing manpage: http://www.ctex.org/documents/latex/latex2e-html/ltx-58.html

jprotze avatar Mar 09 '18 20:03 jprotze

I can confirm this issue. As of now my work-around is (after running latexdiff):

  • sub \DIFadd{X\>Y} => \DIFadd{X}\DIFaddend \>\DIFadd{Y}
  • sub \DIFdel{X\>Y} => \DIFdel{X Y}

It's not nice writing custom scripts to do this, especially if X and Y also contain nested braces {}...

casperdcl avatar Dec 20 '19 15:12 casperdcl