-
-
Save liuhoward/8efe56d6b12c64eae79cd8449a0bc879 to your computer and use it in GitHub Desktop.
A Makefile to compile latex slides and build handouts (assuming the use of beamer)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
latexfile = openaccess | |
LATEX = xelatex | |
$(latexfile).pdf: $(latexfile).tex | |
$(LATEX) $< | |
notes: $(latexfile)_withnotes.pdf | |
all: $(latexfile).pdf notes | |
$(latexfile)_withnotes.pdf: $(latexfile)_withnotes.tex | |
$(LATEX) $< | |
pdfnup $@ --nup 1x2 --no-landscape --paper letterpaper --frame true --scale 0.9 --outfile $@ | |
$(latexfile)_withnotes.tex: $(latexfile).tex | |
sed -e '/^\\setbeameroption/ s/hide notes/show notes/' -e '/^\\documentclass/ s/\]/,handout\]/' $< > $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment