[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Does groff match my needs?
From: |
Dave Kemper |
Subject: |
Re: [Groff] Does groff match my needs? |
Date: |
Mon, 16 Nov 2015 10:03:04 -0600 |
On 11/14/15, address@hidden <address@hidden> 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!