generated from PoisotLab/manuscript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 1.22 KB
/
Makefile
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
.PHONY: all
all:
typepath=../manuscript-typesetter
# Manuscript template
set-typesetter:
rm .typesetter
ln -sf $(typepath) .typesetter
(cd .typesetter; git checkout ms_networks_opinion)
run-full:
julia --project=.typesetter .typesetter/scripts/00_build.jl
# Say [no] to replacing LICENSE
run-downloads:
julia --project=.typesetter .typesetter/scripts/01_downloads.jl
run-build:
julia --project=.typesetter .typesetter/scripts/02_metadata.jl
julia --project=.typesetter .typesetter/scripts/03_folders.jl
julia --project=.typesetter .typesetter/scripts/04_run.jl
draft:
./pandoc-2.19.2/bin/pandoc README.md -s -o dist/draft.pdf -F pandoc-crossref --citeproc --bibliography=references.json --csl .typesetter/citationstyle.csl --metadata-file=manuscript-metadata.json --pdf-engine ./tectonic --template=.typesetter/templates/draft.tex
preprint:
./pandoc-2.19.2/bin/pandoc README.md -s -o dist/preprint.pdf --pdf-engine ./tectonic -F pandoc-crossref --citeproc --bibliography=references.json --csl .typesetter/citationstyle.csl --metadata-file=manuscript-metadata.json --template=.typesetter/templates/preprint.tex
clean:
rm .fonts pandoc-* manuscript-metadata.json references.json tectonic* -vrf
clean-all: clean
rm -vrf dist