bin/code-to-pdf @ b6d64b1c4cdf

Merge.
author Steve Losh <steve@stevelosh.com>
date Tue, 13 Mar 2018 16:40:00 +0000
parents 1cd90a0458e4
children 385a012ed003
#!/usr/bin/env bash

TITLE="$1"
shift

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

    # --margins=60:60:18:60 \