SchlossLab / Schloss_Cluster_PeerJ_2015

Replication study of He et al. (2015) in Microbiome by Pat Schloss & Sarah Westcott
https://xkcd.com/386/
MIT License
3 stars 1 forks source link

Create track changes document #8

Closed pschloss closed 8 years ago

pschloss commented 8 years ago

See: http://timotheepoisot.fr/2014/07/10/markdown-track-changes/

pschloss commented 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