forked from lawrennd/old_talks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-paper.mk
More file actions
26 lines (21 loc) · 816 Bytes
/
make-paper.mk
File metadata and controls
26 lines (21 loc) · 816 Bytes
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
%.paper.tex.markdown: %.md ${DEPS}
${PP} $< -o $@ --format notes --to tex --code none ${PPFLAGS}
# Fix percentage width for latex.
sed -i -e 's/width=\(.*\)\%/width=0.\1\\textwidth/g' $@
sed -i -e 's/height=\(.*\)\%/height=0.\1\\textheight/g' $@
${BASE}.paper.pdf: ${BASE}.paper.aux ${BASE}.paper.bbl ${BASE}.paper.tex
pdflatex -shell-escape ${BASE}.paper.tex
cp ${BASE}.paper.pdf ${NOTESDIR}/${OUT}.paper.pdf
${BASE}.paper.bbl: ${BASE}.paper.aux ${BIBDEPS}
bibtex ${BASE}.notes
${BASE}.paper.aux: ${BASE}.paper.tex
pdflatex -shell-escape ${BASE}.paper.tex
${BASE}.paper.tex: ${BASE}.paper.tex.markdown
pandoc -s \
--template pandoc-notes-tex-template.tex \
--number-sections \
--natbib \
${BIBFLAGS} \
-B ../_includes/${NOTATION} \
-o ${BASE}.paper.tex \
${BASE}.paper.tex.markdown