bin/code-to-pdf @ a99f17704db4

More
author Steve Losh <steve@stevelosh.com>
date Sat, 13 Apr 2019 10:05:32 -0400
parents 385a012ed003
children ad00851f9411
#!/usr/bin/env bash

set -euo pipefail

TITLE="$1"
shift

enscript -1 --media=Letter \
    --toc \
    --header '%H - $N | | page $% of $= in file $v' \
    --font "UbuntuMono-Regular@8" \
    --header-font "UbuntuMono-Bold@10" \
    --title "$TITLE" \
    --baselineskip 3 \
    --line-numbers \
    --highlight \
    --color \
    --mark-wrapped-lines=arrow \
    --margins=60:60:18:60 \
    --portrait \
    --output - \
    --word-wrap $* \
    # | ps2pdf code

    # --margins=20:40:30:30 \
    # --landscape \
    # --fancy-header=sjl \