bin/code-to-pdf @ dbeda4c1e7b6

More shit
author Steve Losh <steve@stevelosh.com>
date Tue, 14 Mar 2017 13:45:41 +0000
parents 1d6b60fde7f1
children 85bedd1649b9
#!/usr/bin/env bash

TITLE="$1"
shift

enscript -1 --media=A4 \
    --toc \
    --header '%H - $N | | page $% of $= in file $v' \
    --font "Menlo-Regular@8.5" \
    --header-font "Menlo-Bold@10" \
    --margins=60:60:18:60 \
    --fancy-header=sjl \
    --title $TITLE \
    --baselineskip 3 \
    --line-numbers \
    --highlight \
    --color \
    --mark-wrapped-lines=arrow \
    -p - \
    --word-wrap $* \
    | pstopdf -i -o code.pdf