-
Notifications
You must be signed in to change notification settings - Fork 0
/
mk.tex
33 lines (23 loc) · 896 Bytes
/
mk.tex
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
ifeq ($(origin Help), undefined)
Help = Help:\n
help:
@echo "$(Help)"
endif
Help+=\n**tex.mk**\n *.xe Use XeLaTeX to compile *.tex\n *.xe.zip First compile, and then zip it.\n *.sp Use XeLaTeX to compile $(Patten)*.tex\n *.sp.zip First compile, and then zip it.\n clean.tex Clean tex compile files.\n --eval=Patten=SomePatten To change the patten. No space is allowed.\n
TeXCmd = latexmk -xelatex -logfilewarninglist -time -synctex=1 -file-line-error
WinTeXCmd = xelatex.exe -time-statistics -synctex=1 -quiet -c-style-errors
Patten ?= Kalmanson_v2.
%.sp: $(Patten)%.tex
$(TeXCmd) $<
%.sp.zip: %.sp
zip $(Patten)$*.zip *.pdf *.tex *.bib *.synctex.gz *.txt
%.win: %.tex
$(WinTeXCmd) $<
%.xe: %.tex
$(TeXCmd) $<
%.xe.zip: %.xe
zip $(Patten)$*.zip *.pdf *.tex *.bib *.synctex.gz *.txt
clean.tex:
rm -v -f *.aux *.blg *.fls *.out *.toc *.log *.fdb_latexmk
open_folder:
nautilus .