Guest User

Untitled

a guest
Nov 17th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. documentclass[draft]{article}
  2.  
  3. usepackage{commenting}
  4.  
  5. declareauthor{joe}{Joseph}{blue}
  6. declareauthor{pete}{Peter}{red}
  7. declareauthor{bob}{Robert}{green}
  8.  
  9. setdefaultauthor{joe} % if no author is specified, joe is used
  10.  
  11. authorcommand{joe}{comment} % define joe as alias of comment[joe]
  12.  
  13. onlyauthors{default,joe,pete} % exclude comments from bob
  14.  
  15. % Display only comments dated between 08/01 and 15/01
  16. NoCommentsBefore{08/01}
  17. NoCommentsAfter{15/01}
  18. % IncludeNonDatedComments % default behaviour
  19.  
  20. newcommand{lipsum}{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.}
  21.  
  22. begin{document}
  23. lipsum{}
  24. comment{I am joe}% comment by default author, not dated
  25. lipsum{}
  26. changed[pete](10/01){lipsum}% this change is dated
  27. comment[bob]{This is awful}
  28. comment[joe]{Bla bla}
  29. lipsum{}
  30. changed[joe][Bob please check]{lipsum}
  31. lipsum{}
  32. comment[joe]{Add comment on lipsum}
  33. lipsum{}
  34. annot[pete]{Add reference?}
  35. lipsum{}
  36. joe(16/01){I think this paragraph is unnecessary}% will be filtered out because outside date bounds
  37. lipsum{}
  38. annot[pete](12/01){Citation needed}
  39. lipsum{}
  40. end{document}
  41.  
  42. newcommand{changes1215}[1]{color{red}#1}
  43.  
  44. newcommand{changes1215}[1]{#1}
  45. newcommand{changes1230}[1]{color{red}#1}
  46.  
  47. scm-latexdiff 123456:document.tex
  48.  
  49. #set folder and files
  50. folder = "yourfoldername"
  51. newfile = "new.tex"
  52. oldfile = "old.tex"
  53.  
  54. #execute
  55. setwd(folder)
  56. system(paste("cmd.exe /c "latexdiff ", oldfile," ", newfile, " >
  57. difference_highlighted.tex"" , sep = ""), intern =TRUE)
  58. system(paste("cmd.exe /c "pdflatex difference_highlighted.tex""))
  59. system(paste("cmd.exe /c "bibtex difference_highlighted""))
  60. system(paste("cmd.exe /c "pdflatex difference_highlighted.tex""))
  61. system(paste("cmd.exe /c "pdflatex difference_highlighted.tex""))
Add Comment
Please, Sign In to add comment