Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[draft]{article}
- usepackage{commenting}
- declareauthor{joe}{Joseph}{blue}
- declareauthor{pete}{Peter}{red}
- declareauthor{bob}{Robert}{green}
- setdefaultauthor{joe} % if no author is specified, joe is used
- authorcommand{joe}{comment} % define joe as alias of comment[joe]
- onlyauthors{default,joe,pete} % exclude comments from bob
- % Display only comments dated between 08/01 and 15/01
- NoCommentsBefore{08/01}
- NoCommentsAfter{15/01}
- % IncludeNonDatedComments % default behaviour
- newcommand{lipsum}{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.}
- begin{document}
- lipsum{}
- comment{I am joe}% comment by default author, not dated
- lipsum{}
- changed[pete](10/01){lipsum}% this change is dated
- comment[bob]{This is awful}
- comment[joe]{Bla bla}
- lipsum{}
- changed[joe][Bob please check]{lipsum}
- lipsum{}
- comment[joe]{Add comment on lipsum}
- lipsum{}
- annot[pete]{Add reference?}
- lipsum{}
- joe(16/01){I think this paragraph is unnecessary}% will be filtered out because outside date bounds
- lipsum{}
- annot[pete](12/01){Citation needed}
- lipsum{}
- end{document}
- newcommand{changes1215}[1]{color{red}#1}
- newcommand{changes1215}[1]{#1}
- newcommand{changes1230}[1]{color{red}#1}
- scm-latexdiff 123456:document.tex
- #set folder and files
- folder = "yourfoldername"
- newfile = "new.tex"
- oldfile = "old.tex"
- #execute
- setwd(folder)
- system(paste("cmd.exe /c "latexdiff ", oldfile," ", newfile, " >
- difference_highlighted.tex"" , sep = ""), intern =TRUE)
- system(paste("cmd.exe /c "pdflatex difference_highlighted.tex""))
- system(paste("cmd.exe /c "bibtex difference_highlighted""))
- system(paste("cmd.exe /c "pdflatex difference_highlighted.tex""))
- system(paste("cmd.exe /c "pdflatex difference_highlighted.tex""))
Add Comment
Please, Sign In to add comment