-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
47 lines (36 loc) · 1009 Bytes
/
justfile
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
doc := "WGUnderwood"
all: format todo spell longlines build warn thumbnail compress
alias c := clean
alias f := format
alias t := todo
alias w := warn
alias s := spell
alias l := longlines
alias b := build
format:
@tex-fmt {{doc}}.tex {{doc}}.bib wgu-cv.cls
build:
@tex-build -l {{doc}}.tex
compress:
@compress-pdf {{doc}}.pdf
@compress-pdf {{doc}}.pdf
@compress-pdf {{doc}}.pdf
@compress-pdf {{doc}}.pdf
thumbnail:
@pdftoppm -png -hide-annotations -scale-to 800 {{doc}}.pdf temp
@magick temp-1.png -bordercolor gray20 -border 3x3 -append temp.png
@magick temp.png -bordercolor gray20 -border 3x3 temp.png
@pngquant temp.png -Q 0-10 -f -o thumbnail.png
@rm -f temp*.png
warn:
@tex-check {{doc}}.log
longlines:
@long-lines {{doc}}.tex {{doc}}.bib justfile
spell:
@spell-check -b {{doc}}.tex {{doc}}.bib
todo:
@todo-finder {{doc}}.tex {{doc}}.bib README.md wgu-cv.cls justfile
clean:
@tex-clean
@rm -f *.html
@rm -f *.bak[0-9]*