You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is text contained within an \iftrue block and the \iftrue logic is then removed in an edit, latexdiff will display the contents of the else block as deleted. However, the contents of the produced document never contained the text in the else block. Ideally, latexdiff should not report that the document's contents have changed.
a.tex:
\documentclass{article}
\begin{document}
\iftrue
hello
\else
hi
\fi\end{document}
I can see the problem but this would be very difficult to fix as latexdiff would have to follow the whole logic of the conditional expressions. The promise of latexdiff is that it works with standard latex and ignores TeX commands such as the \if statements. Sorry about that.
If there is text contained within an \iftrue block and the \iftrue logic is then removed in an edit, latexdiff will display the contents of the else block as deleted. However, the contents of the produced document never contained the text in the else block. Ideally, latexdiff should not report that the document's contents have changed.
a.tex:
b.tex:
c.tex:
Version information (I'm using 4f17f7b off master):
The text was updated successfully, but these errors were encountered: