Created
June 22, 2015 10:43
-
-
Save MasWag/59821f0ca0ac25ec8c6b to your computer and use it in GitHub Desktop.
演習3のslideを作成するためのMakefile.geeknoteを使ってevernoteからmarkdownを作ってpandocでbeamerにしてpdfにする。handoutも作れる。
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
MDS = 0624.md | |
TEXS = $(MDS:%.md=%.tex) | |
DVIS = $(MDS:%.md=%.dvi) | |
PDFS = $(MDS:%.md=%.pdf) | |
NUP_PDFS = $(PDFS:%.pdf=%-nup.pdf) | |
TEX = platex | |
dvi: $(DVIS) | |
pdf: $(PDFS) | |
nup_pdf: $(NUP_PDFS) | |
update: clean_MD $(MDS) | |
clean_MD: | |
rm -f $(MDS) | |
0624.md: | |
geeknote show 0624演習3用意 | awk 't;/Tags: 演習3/{t++}' > 0624.md | |
%.tex: %.md | |
pandoc -s -t beamer $< -o $@ -V theme:Dresden -V outertheme:infolines | |
%-nup.pdf: %.pdf | |
pdfnup --nup 2x3 --paper a4paper --no-landscape $< | |
%.pdf: %.dvi | |
dvipdfmx $< | |
.PHONY: update pdf dvi clean_MD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment