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

Fail when adding new columns to tabular #227

Open ariannab opened 3 years ago

ariannab commented 3 years ago

When adding columns to a tabular, for example, going from this:

\begin{tabular}{lr}
   \toprule
...

To this:

\begin{tabular}{lrrrrr}
   \toprule
...

Latexdiff will result in the following error:

! Misplaced \noalign.
         \toprule ->\noalign 
                    {\ifnum 0=`}\fi \@aboverulesep =\abovetopsep \global \@b...
            \DIFaddendFL \toprule

Which, in my best understanding, is due to the fact that \DIFaddendFL breaks the \toprule rules: \toprule can only follow a \begin{tabular} command. Hence, unfortunately, that \DIFaddendFL is an intruder that is not allowed to be there.

Do you happen to know any workaround for this? Thanks!

ianhbell commented 3 years ago

See also #212