blob: 147d86abd0c3bd0dfc3d308a0023e2f5a0b07fa6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
set -eu
docdate()
{
git describe --dirty 2> /dev/null || date -R
}
pandoc \
--filter ./pandoc-fable-filter \
--toc \
--number-sections \
--standalone \
--self-contained \
"-Vdate:$(docdate)" \
-Vtitlepage:true \
-Vfontsize:12pt \
"-Vmainfont:Bitstream Charter" \
-Vsansfont:Cabin \
"-Vmonofont:Courier 10 Pitch" \
-Vgeometry:top=2cm,bottom=2.5cm,left=2cm,right=1cm \
"$@"
|