[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] groff variable for ideal

From: Ralph Corderoy
Subject: Re: [Groff] groff variable for ideal
Date: Wed, 18 Jun 2014 12:09:28 +0100

Hi Ulrich,

> The way I handle preprocessors and other options, is, to put them into
> a (pseudo-) comment in the first line of a document, like e.g.:
> .\" tbl eqn lnd 

I do something similar but put shell commands as a comment, e.g.

    .\" set -eEu -o pipefail
    .\" f=foo
    .\" o='-p -t'
    .\" groff $o $ | ps2pdf - $f.pdf
    .\" groff $o $ | ps2pdf - $f-debug.pdf
    .\" exit 0 is then run with something like

    sed s/...// | bash

I used to maintain a makefile and store what preprocessors were needed
for each file there, but I prefer this;  it keeps them with the source.
And being shell, it's highly flexible.

Cheers, Ralph.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]