Closed pschloss closed 8 years ago
OPTS = --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --filter /usr/local/bin/pandoc-citeproc --template /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine /usr/local/texbin/pdflatex --include-in-header header.tex --bibliography references.bib
all: orig.pdf revised.pdf diff.pdf
orig.pdf: original.md
pandoc $< -o $@ $(OPTS)
revised.pdf: revised.md
pandoc $< -o $@ $(OPTS)
diff.pdf: original.md revised.md
pandoc original.md -o orig.tex $(OPTS)
pandoc revised.md -o revised.tex $(OPTS)
latexdiff orig.tex revised.tex > diff.tex
pdflatex diff
rm {revised,orig,diff}.tex
See: http://timotheepoisot.fr/2014/07/10/markdown-track-changes/