summaryrefslogtreecommitdiff
path: root/makefile
blob: af76a5a8e24a6fc74baef8cc7ff0416f8782f28a (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
32
widescreen:
	echo '\documentclass[aspectratio=169]{beamer}' > aspect.tex
	make talk-cu-2018.pdf

standard:
	echo '\documentclass[aspectratio=43]{beamer}' > aspect.tex
	make talk-cu-2018.pdf

talk-cu-2018.pdf: content.md talk.tex common.tex references.bib images figures
	pandoc content.md --slide-level 2 --listings -t beamer -o content.tex
	xelatex talk.tex
	biber talk
	xelatex talk.tex
	pdftk talk.pdf cat 1-41 output talk1.pdf
	pdftk talk.pdf cat 42-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-clemson-2018.pdf
	rm -f talk1_small.pdf talk2.pdf talk.pdf talk1.pdf

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

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 *.run.xml *.bcf aspect.tex