On 11/14/15, hoh...@arcor.de <hoh...@arcor.de> wrote:
>   Consider wrapping the call to groff at a shell script.

It is also sometimes handy to put the groff command and the document
in the same file.  Basically, at the top of your document, put a short
script that strips itself out and runs groff on the rest of the file.

#!/bin/sh

# Produce PostScript output for A6 landscape
sed '1,/^exit$/d' $0 | groff -dpaper=a6l -P-pa6 -P-l

exit
.\" --------------- begin document
.ps 90
.vs 90
.sp
Hello!

Reply via email to