X-Git-Url: https://projects.mako.cc/source/beamer-mako/blobdiff_plain/ab41ccc423093246578a5c7ae5348e9980ccef4d..64e244128bcd86d506bad6a4833177be7c465b5f:/template/Makefile?ds=sidebyside diff --git a/template/Makefile b/template/Makefile index 1dd9601..da907e7 100644 --- a/template/Makefile +++ b/template/Makefile @@ -1,33 +1,46 @@ #!/usr/bin/make -all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) +all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex)) pdf: all -%.pdf: %.tex - perl -p -e 's/©//' refs.bib > refs-cleaned.bib - recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib - mogrify -format pdf figures/logo.svg - rubber -fd $< - extract-notes $< +%.pdf: %.tex + latexmk -f -pdf $< + qpdf --qdf --object-streams=disable $@ - | sponge $@ + sed -e 's|/PageLabels|/BageLapels|g' < $@ |sponge $@ + qpdf $@ - | sponge $@ -clean: - rubber -d --clean *.tex - rm -f *.tmp - rm -f vc - rm -f refs-cleaned.bib - rm -f refs-processed.bib - rm -f figures/logo.pdf - rm -f *.pdfpc +# by default, we produce combined notes/slides output +notes.config: + echo '\setbeameroption{show notes on second screen}' > notes.config + +# rules for generating notesonly +notesonly-config: + echo '\setbeameroption{show only notes}' > notes.config +notesonly: notesonly-config pdf + +# rules for generating slides only +slides-config: + echo '' > notes.config +slides: slides-config pdf viewpdf: all evince *.pdf +pdfpc: notes.config pdf + pdfpc -n right *pdf + spell: aspell -c -t --tex-check-comments -b text.tex vc: vc-git +clean: + latexmk -C *.tex + rubber -d --clean *.tex + rm -f *.tmp + rm -f vc + rm -f notes.config + rm -f *.pdfpc - -.PHONY: clean all +.PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell