#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/pdf-convert txt2pdf () { local files=($@) local name for f in $files; do name=${f:r} ps2pdf =(paps =(iso2utf $f)) ${name}.pdf done } groff2pdf () { local manpage=$1 man -t $manpage | ps2pdf -dNOPLATFONTS - > ${manpage}.pdf }