-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·44 lines (29 loc) · 1.07 KB
/
Makefile
File metadata and controls
executable file
·44 lines (29 loc) · 1.07 KB
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
MAIN = main
LATEXMK = latexmk -xelatex -shell-escape
all: main clean
main:
$(LATEXMK) $(MAIN).tex
### recommend latexmk command
# xelatex -shell-escape $(MAIN).tex
# bibtex $(MAIN).aux
# xelatex -shell-escape $(MAIN).tex
# xelatex -shell-escape $(MAIN).tex
clean:
latexmk -c $(MAIN).tex
rm -r _minted-main
rm -r *.bbl
gif:
convert -density 600 main.pdf -background white -alpha background -alpha off -strip -resize @1048576 main-%02d.png
convert -layers OptimizePlus -delay 150 -loop 0 main-*.png main.gif
rm -r main-*.png
### tlmgr may install some package unsuccessfully, so is not recommended.
# install_tex:
# curl -sL "https://yihui.org/tinytex/install-bin-unix.sh" | sh
# install_packages:
# tlmgr update --self
# tlmgr install minted ctex geometry fancyhdr graphicx pdfpages multicol multirow\
# setspace makeidx tikz indentfirst caption subcaption \
# amsmath amsthm amssymb amsfonts mathrsfs siunitx pifont \
# hyperref cleveref booktabs tabularx longtable algorithm2e \
# enumitem xcolor graphbox minted listings environ mdframed \
# natbib titlesec