Starts presentation
Beamer document created makefile can create a file with or without notes xkcd images are auto-downloaded by the makefile
This commit is contained in:
parent
d3db0dd7eb
commit
b128151e39
4 changed files with 125 additions and 0 deletions
23
Makefile
Normal file
23
Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
XKCD_FILES = $(shell bin/xkcd-filenames)
|
||||
|
||||
main.pdf: main.latex $(XKCD_FILES)
|
||||
pdflatex -output-directory="./" main.latex
|
||||
|
||||
with-notes.pdf: with-notes.latex
|
||||
pdflatex -output-directory="./" with-notes.latex
|
||||
|
||||
with-notes.latex: main.latex $(XKCD_FILES)
|
||||
sed 's/\%showNotes\%//' main.latex > with-notes.latex
|
||||
|
||||
clean:
|
||||
rm *.aux *.log *.out *.toc *.nav *.snm *.pdf
|
||||
rm with-notes.latex
|
||||
|
||||
auto-images/auto-xkcd-%.png:
|
||||
mkdir -p auto-images
|
||||
curl https://xkcd.com/$*/info.0.json 2> /dev/null | jq '.img' | sed 's/.png/_2x.png/g' | xargs curl -s -o $@
|
||||
|
||||
clean-images:
|
||||
rm -rf auto-images/
|
||||
|
||||
clean-all: clean clean-images
|
Loading…
Add table
Add a link
Reference in a new issue