because with aastex631 we're still in vertical mode (vmode) at the beginning of every paragraph. This doesn't play well with \sout (strikeout), which doesn't work in vertical mode. So, when running latexdiff, if there's a deletion in the first character of any paragraph in the article, compiling the diff will fail.
This monkeypatch redefines \sout to force leaving vertical mode before trying to strikeout text.
The following tex document does not compile with
pdflatex
because with
aastex631
we're still in vertical mode (vmode
) at the beginning of every paragraph. This doesn't play well with\sout
(strikeout), which doesn't work in vertical mode. So, when runninglatexdiff
, if there's a deletion in the first character of any paragraph in the article, compiling the diff will fail.This monkeypatch redefines
\sout
to force leaving vertical mode before trying to strikeout text.