bin/code-to-pdf @ a65fd2691c94 default tip
More
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Mon, 03 Nov 2025 14:55:17 -0500 |
| parents | 46c8ae0df6cc |
| children | (none) |
#!/usr/bin/env bash set -euo pipefail TITLE="$1" shift enscript -1 --media=Letter \ --toc \ --header '%H - $N | | page $% of $= in file $v' \ --fancy-header=sjl \ --font "UbuntuMono-Regular@8" \ --header-font "UbuntuMono-Bold@10" \ --title "$TITLE" \ --baselineskip 3 \ --line-numbers \ --color \ --mark-wrapped-lines=arrow \ --margins=50:50:18:50 \ --portrait \ --output - \ --word-wrap $* \ | ps2pdf - code.pdf # --margins=20:40:30:30 \ # --landscape \ # --highlight \