How to track changes in LaTeX, especially \abstract{environment}
Recently, I have to submit a reversed PDF file of a draft building from Tex.
I have tried latexdiff, It worked very well in main text, but not in abstract.
If I combine 2 figures to 1, how to deal with the change of figure reference id? For example I combined Fig 1 and 2, There is no change of other figure's latex block, but in pdf file, all ids were changed! How to track these changes in the PDF?
Answer to question 1: Can you post a minimum working example? latexdiff will not track changes in the preamble (with a few pre-defined exceptions), but should track yext between \begin{abstract} and \end{abstract}. If your format really uses \abstract{text} look up the --append-textcmd option of latexdiff.
Note: Edited in response to the next answer to fix a wrongly-remembered option name
I have tried -append-textcmd="abstract", but still not work.
Following you suggestion of using add-textcmd given this error "Unknown option: add-textcmd". I upload a MWE here. The .cls was not allowed to upload, so I zipped it.
The diff.tex files looks what I would expect, although I did not test whether it compiles (if it doesn't then there is likely some incompatibility between mdpi.cls and ulem.sty, which I cannot really help you with - you would need to use a different markup style in that case (option -t)
PS: I gave you the wrong option name in my previous answer but you figured out the correct one - I have fixed it above in order not to confuse future readers
Thank you again for the answer. You were right. The --type UNDERLINE not work but CTRADITIONAL TRADITIONAL CFONT FONTSTRIKE INVISIBLE can be used to compile PDF as following code:
github is specially designed to track changes in codes (all programming codes: be it R, LaTeX, python, etc): It enables you to check up versions and control changes in your previous and past works by highlighting the added lines (green) and deleted lines (red) in your LaTeX code text. You need to sign up first for the github, then upload your code and share the link with your supervisor. You both will then see your weekly progress. By the way, I have a presentation exactly on this topic: how to check up updates in research papers for both parties (student-supervisor):
Deleted research itemThe research item mentioned here has been deleted