From f7ec266e119f48b6fa48a6d4847ccfd2aa9709eb Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 22 Jun 2019 20:22:35 +0300 Subject: Change: rename pandoc.sh to ftt-pandoc --- ftt-pandoc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ftt-pandoc (limited to 'ftt-pandoc') 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 \ + "$@" -- cgit v1.2.1