Skip to content

Commit b392f84

Browse files
committed
src/latexmkrc: init
1 parent 2d9769b commit b392f84

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ TEXFILES := $(LIDRFILES:.lidr=.tex)
2323
.PHONY: all clean
2424

2525

26-
clean:
27-
rm -rf all.{aux,log,out,toc,pdf} _minted-all $(TEXFILES)
26+
clean: clean-tex
27+
rm -rf all.* auto _minted-all $(TEXFILES)
28+
29+
30+
clean-tex: all.tex
31+
latexmk -pdf -CA all.tex
2832

2933

3034
all.pdf: all.tex
31-
latexmk -xelatex -e '$$pdflatex=q/xelatex %O --shell-escape %S/' $<
35+
latexmk -pdf $<
3236

3337

3438
all.tex: book.tex $(TEXFILES)

src/latexmkrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$pdflatex = q/xelatex %O --shell-escape %S/;

0 commit comments

Comments
 (0)