-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathmake-talk-flags.mk
executable file
·58 lines (40 loc) · 2.22 KB
/
make-talk-flags.mk
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This file checks the header of the base file for information about how to produce the talk and stores it in relevant files.
# Extract the date and the prefix of the produced files.
DATE=$(shell mdfield date ${BASE}.md)
CATEGORIES=$(shell mdfield categories ${BASE}.md)
MATHJAX="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_SVG"
REVEALJS="https://inverseprobability.com/talks/slides/reveal.js/"
SLIDESHEADER=$(shell mdfield slidesheader ${BASE}.md)
POSTSHEADER=$(shell mdfield postssheader ${BASE}.md)
ASSIGNMENT=$(shell mdfield assignment ${BASE}.md)
NOTATION=$(shell mdfield notation ${BASE}.md)
PREFIX=$(shell flags prefix ${BASE})
# Local calls for the preprocessor and inkscape
INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape
PP=mdpp
PPFLAGS=-T
PPFLAGS=$(shell flags pp $(BASE))
BIBFLAGS=--bibliography=../lawrence.bib --bibliography=../other.bib --bibliography=../zbooks.bib
CITEFLAGS=--citeproc --csl=../elsevier-harvard.csl ${BIBFLAGS}
PDSFLAGS=-s ${CITEFLAGS} --mathjax=${MATHJAX}
SNIPPETSDIR=$(shell mdfield snippetsdir $(BASE).md)
DIAGRAMSDIR=$(shell mdfield diagramsdir $(BASE).md)
WRITEDIAGRAMSDIR=$(shell mdfield writediagramsdir $(BASE).md)
POSTSDIR=$(shell mdfield postsdir $(BASE).md)
NOTESDIR=$(shell mdfield notesdir $(BASE).md)
NOTEBOOKSDIR=$(shell mdfield notebooksdir $(BASE).md)
SLIDESDIR=$(shell mdfield slidesdir $(BASE).md)
TEXDIR=$(shell mdfield texdir $(BASE).md)
WEEK=$(shell mdfield week $(BASE).md)
SESSION=$(shell mdfield session $(BASE).md)
DEPS=$(shell dependencies inputs $(BASE).md --snippets-path $(SNIPPETSDIR))
DIAGDEPS=$(shell dependencies diagrams $(BASE).md --snippets-path $(SNIPPETSDIR))
BIBDEPS=$(shell dependencies bibinputs $(BASE).md --snippets-path $(SNIPPETSDIR))
DOCXDEPS=$(shell dependencies docxdiagrams $(BASE).md --snippets-path $(SNIPPETSDIR))
PPTXDEPS=$(shell dependencies docxdiagrams $(BASE).md --snippets-path $(SNIPPETSDIR))
TEXDEPS=$(shell dependencies texdiagrams $(BASE).md --snippets-path $(SNIPPETSDIR))
ALL=$(shell dependencies all $(BASE).md --snippets-path $(SNIPPETSDIR))
POSTFLAGS=$(shell flags post $(BASE))
PPTXFLAGS=$(shell flags pptx $(BASE))
DOCXFLAGS=$(shell flags docx $(BASE))
SLIDEFLAGS=$(shell flags reveal $(BASE))