41 lines
687 B
Plaintext
41 lines
687 B
Plaintext
|
# list all recipes
|
||
|
default:
|
||
|
just --list --unsorted
|
||
|
|
||
|
# build table of contents
|
||
|
toc:
|
||
|
#!/usr/bin/env sh
|
||
|
t=$(mktemp)
|
||
|
cat << EOF > $t
|
||
|
\f[B]{{{{title}}\f[] \f[I]by {{{{author}}\f[]@{{{{page}}
|
||
|
.sp .5v
|
||
|
EOF
|
||
|
ed<<EOF | tbl | groff -Tpdf > pages/toc/toc.pdf
|
||
|
a
|
||
|
.ll 0c
|
||
|
.po 1c
|
||
|
.device papersize=11.9c,18.8c
|
||
|
.TS
|
||
|
center tab(@);
|
||
|
lw(25m) s
|
||
|
lw(25m) r.
|
||
|
\s+6Contents\s0
|
||
|
.sp 2v
|
||
|
.
|
||
|
.r !recsel pages/toc/toc.rec | recfmt -f $t
|
||
|
a
|
||
|
.TE
|
||
|
.
|
||
|
,p
|
||
|
Q
|
||
|
EOF
|
||
|
rm $t
|
||
|
|
||
|
# build graph
|
||
|
graph:
|
||
|
grap pages/foreword/issues.g | groff -p -Tpdf > pages/foreword/issues.pdf
|
||
|
|
||
|
# make smol pdf
|
||
|
smol:
|
||
|
convert -density 200x200 -quality 70 -compress jpeg dist/zine7.pdf dist/zine7smol.pdf
|