-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (30 loc) · 932 Bytes
/
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
PDF = XPCoin-Whitepaper-ja.pdf
DVI = XPCoin-Whitepaper-ja.dvi
TEX = XPCoin-Whitepaper-ja.tex
all: $(PDF)
dvi: $(DVI)
pdf: $(PDF)
$(PDF): $(DVI)
dvipdfmx $(DVI)
$(DVI): $(TEX) manuscript.tex ms-icon-310x310.eps
platex $(TEX)
manuscript.tex: whitepaper_ja.md
@cat whitepaper_ja.md \
| sed s/.png/.eps/g \
| sed s/,/、/g \
| sed s/./。/g \
| pandoc -f markdown_strict+footnotes -t latex \
| sed 's/\(\\textbf{XPは、あなたの経験を価値にする}\)/\\begin{center}\1\\end{center}/' \
| sed 's/includegraphics/includegraphics[width=1.0\\columnwidth]/g' \
| sed 's/\[htbp\]/\[t\]/g' \
| sed 's/section/section\*/g' \
> manuscript.tex
#.png.eps:
# convert $< $(<.png=.eps)
ms-icon-310x310.eps:
convert ms-icon-310x310.png ms-icon-310x310.svg
convert ms-icon-310x310.svg ms-icon-310x310.eps
view: $(PDF)
open $(PDF)
clean:
/bin/rm -f $(DVI) $(PDF) *.out *.aux *.log manuscript.tex *.eps *.svg