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

latexdiff generating \SUPERSCRIPTNB (undefined control sequence) #279

Open amic-github opened 1 year ago

amic-github commented 1 year ago

Here is a minimal example (called test.tex):

\documentclass{article}
\begin{document}
$5^\frac12$
\end{document}

This document compiles without trouble with latex or pdflatex. When I run latexdiff test.tex test.tex, I obtain at some line $5\SUPERSCRIPTNB{\frac{1}{2}}$ which does not compile . I do not know how this has been processed by latexdiff and if it is easy to correct.

After trying to have a look at the code, I guess this is around line 3452 in latexdiff that this command is not turned back to the ^.