diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-06-22 20:22:35 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-06-22 20:28:00 +0300 |
commit | f7ec266e119f48b6fa48a6d4847ccfd2aa9709eb (patch) | |
tree | 29104cc52b7e3b38ee4010f46fa57a445c6bb539 /ftt-pandoc | |
parent | cdae7583610cb9777f5c97e61eb087ebeb74b8df (diff) | |
download | fable-poc-f7ec266e119f48b6fa48a6d4847ccfd2aa9709eb.tar.gz |
Change: rename pandoc.sh to ftt-pandoc
Diffstat (limited to 'ftt-pandoc')
-rwxr-xr-x | ftt-pandoc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ftt-pandoc b/ftt-pandoc new file mode 100755 index 0000000..147d86a --- /dev/null +++ b/ftt-pandoc @@ -0,0 +1,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 \ + "$@" |