-
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
Enhancement: option to only include additions #66
Comments
@ftilmann I'm still very much interested in this. Often, for example in submitting a revision of a manuscript, I'm only interested in highlighting where changes were made. If you give me some pointers I could try prepare a PR. |
Sorry for not replying earlier. I realise your original post is now nearly 3 years ago. The actual marking up is done in the subroutine marktags. So the other approach would be to modify this subroutine to detect that deleted material is supposed to be added, and simply skip it, or to suppress the calls to marktags for deleted material. Although somehow less elegant, I would favour the first approach because marktags is quite difficult to understand in the first place, and adding more if-clauses won't help, whereas the post-processing is essentially a linear set of pattern replacements. |
I most frequently only want to highlight the changed parts of the text, but am not so much interested in including the removals. Currently I set in the preamble
This largely gives me what I want. However, I have noticed that I sometimes get some layout issues from the LaTeX-code that is generated to include the removals (for example in
itemize
, or when a complete section has been removed). In those cases the only solution appears to manually remove the obsolete LaTeX-code that corresponds to the removed text.To avoid this I would really appreciate a command-line option for
latexdiff
(e.g.--add-only
) such that no LaTeX-code is generated with the deleted text.The text was updated successfully, but these errors were encountered: