summaryrefslogtreecommitdiff
path: root/makefile
blob: bda67cd419e05f96822404158ab2da3d049afd06 (plain)
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
BIBSTYLE = https://schneider.ncifcrf.gov/ftp/ecology.bst

talk-fnr-2018.pdf: content.md talk.tex common.tex references.bib style.bst images figures
	pandoc content.md --slide-level 2 --listings -t beamer -o content.tex
	xelatex talk.tex
	bibtex talk
	xelatex talk.tex
	xelatex talk.tex
	pdftk talk.pdf cat 1-36 output talk1.pdf
	pdftk talk.pdf cat 37-end output talk2.pdf
	gs -sDEVICE=pdfwrite -dMaxSubsetPct=100 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -sOutputFile="talk1_small.pdf" -dNOPAUSE -dBATCH "talk1.pdf"
	pdftk talk1_small.pdf talk2.pdf cat output talk-fnr-2018.pdf
	rm talk.pdf talk1_small.pdf talk1.pdf talk2.pdf
	xdg-open talk-fnr-2018.pdf

references.bib: content.md
	pubs extract-tex content.md references.bib

style.bst:
	wget -nc $(BIBSTYLE) -O style.bst
	
images: collect-images.sh image-sources.txt
	@mkdir -p images
	bash collect-images.sh

figures: figures.R data-sources.R
	@mkdir -p figures
	Rscript figures.R

clean:
	rm -fv *.aux *.log *.toc *.blg *.bbl *.synctex.gz *.out *.snm *.nav *.vrb content.tex *.bib