-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
65 lines (52 loc) · 2.63 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
################################################
SRC = Pasturel_etal2020
# SRC_rev = Pasturel_etal2019
SRC_rev = Pasturel_etal2020_R1
default: $(SRC)_trackedchanges.pdf
pdf: $(SRC).pdf
diff: $(SRC)_trackedchanges.pdf
################################################
LATEXMK = latexmk -bibtex -pdf
################################################
$(SRC).pdf: $(SRC).tex $(SRC).bib
$(LATEXMK) $(SRC).tex
response_to_reviewers.pdf: response_to_reviewers.tex $(SRC).tex $(SRC).bib
$(LATEXMK) response_to_reviewers.tex
cover.pdf: cover.tex $(SRC).tex $(SRC).bib
$(LATEXMK) cover.tex
# post-production
$(SRC)_trackedchanges.pdf: $(SRC)_PLoS-CB.tex $(SRC).bib $(SRC_rev).tex
latexdiff --graphics-markup=both $(SRC_rev).tex $(SRC)_PLoS-CB.tex > $(SRC)_trackedchanges.tex
$(LATEXMK) $(SRC)_trackedchanges.tex
open $(SRC)_trackedchanges.pdf
INK = inkscape --without-gui --export-type=eps --export-ignore-filters
convert_eps:
mkdir -p figures_PLoS-CB/
$(INK) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure1.pdf -o figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure1.eps
$(INK) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure2.pdf -o figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure2.eps
$(INK) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure3.pdf -o figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure3.eps
$(INK) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure4.pdf -o figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure4.eps
$(INK) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure5.pdf -o figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure5.eps
CONV = convert -density 600 -flatten -compress lzw -units pixelsperinch -depth 8
convert_tiff:
mkdir -p figures_PLoS-CB/
$(CONV) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure1.pdf figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure1.tiff
$(CONV) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure2.pdf figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure2.tiff
$(CONV) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure3.pdf figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure3.tiff
$(CONV) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure4.pdf figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure4.tiff
$(CONV) figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure5.pdf figures_PLoS-CB/Pasturel_etal2020_PLoS-CB-figure5.tiff
################################################
edit_linux: linux_edit
linux_edit:
texmaker ${SRC}.tex &
gedit Makefile &
edit_mac: mac_edit
mac_edit:
a
################################################
touch:
touch *.tex
clean:
rm -f *.dvi *.ps *.out *.log *.aux *.bbl *.blg *.snm *.fls *.nav *.toc *.fff *.synctex.gz* *.fdb_latexmk *.run.xml *.bcf
.PHONY: all clean
################################################