summaryrefslogtreecommitdiff
path: root/manual/format-de-pdf
blob: d4c1fa397c51cc8db91fa454d91a1d7873aa156b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -eu

OUTPUT="$1"
TITLE="$2"
AUTHOR="$3"
VERSION="$4"
TRANS_DE="$5"
shift 5

cat > 000.mdwn <<EOF
% $TITLE
% $AUTHOR
  $TRANS_DE
% $VERSION
EOF

pandoc --smart --toc --chapters --number-sections -V lang=german -V geometry:a4paper -o "$OUTPUT" 000.mdwn "$@"
rm -f 000.mdwn