-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for \endinput #77
Comments
I guess this is really about the behaviour of latexdiff with --flatten option. |
okay, I did not see this complication ... Yes, only processing \endinput on the beginning of a line would cover my usecases. |
Should be fixed by commit 7e7d087 |
Thanks, I confirm that this works with current git. One small thing is left in this context: If I write something like %\include{chapter3} then latex-diff still reads in the file "chapter3.tex", i.e. it seems to ignore the comment character "%" at the beginning of the line. The right thing would be to simply leave the line as a comment. |
latexdiff is supposed to do just that, and I cannot reproduce your reported bug. Can you send minimum working example? Are you using the current or github version of latexdiff? |
yes, I just cloned the github version MWE: (v1.tex and v2.tex are identical, and chap1.tex does not exist)
I can get rid of the two warnings by adding backslashes. The problem is the |
That was indeed a bug (now fixed). Other people must have been affected by it; thanks for reporting |
Hi, I have a wishlist item:
at the moment, latexdiff is not aware of the \endinput command when files are included through \input or \include. It would be nice, if it could replicate what latex does: if \endinput is encountered in a file, treat it as if this is the end of the file itself and discard the rest of this file (including the \endinput command itself).
I am not sure how difficult this is to implement, but it would be very useful, as people tend to place \endinput in chapters of books, etc, to separate out work in progress sections, for example.
The text was updated successfully, but these errors were encountered: