This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
35 lines (24 loc) · 1.71 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
all: intro.pdf chapter1.pdf chapter1_diff.pdf chapter1.docx chapter2.pdf chapter3.pdf summary.pdf
intro.pdf: intro.md intro_refs.bib format.sty
pandoc -H format.sty -V fontsize=12pt --bibliography intro_refs.bib --csl=ecology.csl intro.md -o intro.pdf
chapter1.pdf: chapter1.md sad_comparison_refs.bib format.sty
pandoc -H format.sty -V fontsize=12pt --bibliography sad_comparison_refs.bib --csl=ecology.csl chapter1.md -o chapter1.pdf
chapter1.docx: chapter1.md sad_comparison_refs.bib format.sty
pandoc -H format.sty -V fontsize=12pt --bibliography sad_comparison_refs.bib --csl=ecology.csl chapter1.md -o chapter1.docx
chapter2.pdf: chapter2.md miscDB_combined_refs.bib format.sty
pandoc -H format.sty -V fontsize=12pt --bibliography miscDB_combined_refs.bib --csl=ecology.csl chapter2.md -o chapter2.pdf
chapter3.pdf: chapter3.md neutral_comparison_refs.bib format.sty
pandoc -H format.sty -V fontsize=12pt --bibliography neutral_comparison_refs.bib --csl=ecology.csl chapter3.md -o chapter3.pdf
summary.pdf: summary.md summary_refs.bib format.sty
pandoc -H format.sty -V fontsize=12pt --bibliography summary_refs.bib --csl=ecology.csl summary.md -o summary.pdf
miscDB_combined_refs: miscDB_paper_refs.bib miscDB_refs.bib
cat miscDB_paper_refs.bib miscDB_refs.bib > miscDB_combined_refs.bib
# Make track changes version of Chapter 1 for PeerJ
OPTS= -H format.sty -V fontsize=12pt --bibliography sad_comparison_refs.bib --csl=ecology.csl
chapter1_diff.pdf: chapter1_submitted.md chapter1.md
pandoc chapter1_submitted.md -o orig.tex $(OPTS)
pandoc chapter1.md -o revised.tex $(OPTS)
latexdiff orig.tex revised.tex > diff.tex
pdflatex diff
mv diff.pdf chapter1_diff.pdf
rm revised.tex orig.tex diff.tex diff.aux diff.log diff.out