-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
90 lines (67 loc) · 2.2 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
FILENAME=vonLaszewski-frontiers
DIR=paper-frontier
# .PHONY: $(FILENAME).pdf
.PHONY: images
all: $(FILENAME).pdf
# MAIN LATEXMK RULE
$(FILENAME).pdf: $(FILENAME).tex
latexmk -quiet -deps -bibtex $(PREVIEW_CONTINUOUSLY) -f -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $(FILENAME).tex
.PRECIOUS: %.pdf
.PHONY: watch
watch: PREVIEW_CONTINUOUSLY=-pvc
watch: $(FILENAME).pdf
.PHONY: clean
images:
python bin/pdf-to-jpg.py
# | xargs convert -density 300 -trim test.pdf -quality 100
txt:
#detex $(FILENAME).tex | cat -s > $(FILENAME).txt
pdftotext -layout $(FILENAME).pdf $(FILENAME).txt
edit:
emacs $(FILENAME).tex
clean:
latexmk -C -bibtex
rm -rf $(FILENAME).spl
rm -f *_bibertool.bib
rm -f *.ttt
rm -f *.blg
latexdiff-setup:
mkdir -p tmp
cd tmp; wget https://github.com/cyberaide/paper-frontiers/archive/refs/tags/v0.1.tar.gz
cd tmp; tar -xvf v0.1.tar.gz
latexdiff:
latexdiff tmp/paper-frontiers-0.1/vonLaszewski-frontiers.tex vonLaszewski-frontiers.tex > vonLaszewski-frontiers-diff.tex
# diff vonLaszewski-frontiers.tex tmp/paper-frontiers-0.1/vonLaszewski-frontiers.tex
pdflatex $(FILENAME)-diff
bibtex $(FILENAME)-diff
pdflatex $(FILENAME)-diff
pdflatex $(FILENAME)-diff
open $(FILENAME)-diff.pdf
regular:
pdflatex $(FILENAME)
bibtex $(FILENAME)
pdflatex $(FILENAME)
pdflatex $(FILENAME)
log:
emacs -fh 80 $(FILENAME).log
bib:
bibexport -o $(FILENAME)-citations.bib $(FILENAME).aux
biber:
@echo
biber -V --tool cloud-scheduling.bib | fgrep -v INFO
@echo
biber -V --tool cloud-scheduling_bibertool.bib | fgrep -v INFO
@echo
biber -V --tool strings.bib | fgrep -v INFO
@echo
biber -V --tool vonlaszewski.bib | fgrep -v INFO
@make -f Makefile clean
zip: clean
cd ..; zip -x "*/.DS*" "*/*.git*" "*/*bin*" "*/*zip" "*/*.md" "*/Makefile" -r $(DIR)/$(FILENAME).zip $(DIR)
flatzip: clean
zip -x "*.git*" "*bin*" "*zip" "*.md" "Makefile" -r $(FILENAME).zip .
publish:
cp $(FILENAME).pdf ../../../laszewski/laszewski.github.io/papers/
cd ../../../laszewski/laszewski.github.io/papers; git add $(FILENAME).pdf
cd ../../../laszewski/laszewski.github.io/papers; git commit -m "update $(FILENAME)" $(FILENAME).pdf
cd ../../../laszewski/laszewski.github.io/papers; git push