bin/code-to-pdf @ b86a3b6153f2

Progress continues
author Steve Losh <steve@stevelosh.com>
date Sun, 08 Jul 2018 15:49:42 +0000
parents 385a012ed003
children a99f17704db4
#!/usr/bin/env bash

TITLE="$1"
shift

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

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