Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Project page
Discussion
Edit
View history
Editing
CommunityData:LaTex Diff
From CommunityData
Jump to:
navigation
,
search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== The Scenario == You've been given an R+R. Congrats! Often, it's either helpful or required to submit a version of your paper that shows what changed from the original version. == latexdiff == Fortunately, there is a tool designed for just this: [https://www.ctan.org/pkg/latexdiff latexdiff]. You will need the original version of the .tex file. If needed, you can checkout the git commit that you made when you created the original submitted version. Or, if using Overleaf, use the history to go back to that version. If you are using knitr, then you will need to create the .tex file from the .Rtex file. If you are using Overleaf + .Rtex, this is easy: the files are in a hidden spot, but can just be downloaded. Next to the 'Recompile' button in Overleaf is a button with tooltip 'Logs and output files'. Clicking this will make a button visible at the bottom right titled 'Other logs and files' -- if you hold down on the button, you'll be able to download main.tex (the cached file Overleaf generated when it compiled your knitr code into the document text). Save this .tex file as <code>orig.tex</code>. Now, go back to the current version of the manuscript (e.g., by checking out the main branch in git). If your current file is called <code>new.tex</code>, then create the diff file with: <code> latexdiff orig.tex new.tex > diff.tex </code> Finally, you create the PDF of the diff with: <code> latexmk -f -pdf diff.tex </code>
Summary:
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see
CommunityData:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Tools
What links here
Related changes
Special pages
Page information