bin/code-to-pdf @ 2df1499f1f78

Add vim/bundle/LanguageClient-neovim to .hgignore.
author Steve Losh <steve@stevelosh.com>
date Fri, 19 Jan 2018 20:02:27 +0000
parents 07fbabc1f02d
children 1cd90a0458e4
#!/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" \
    --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