groff
[Top][All Lists]
Advanced

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

Re: [Groff] Passing -D argument to grap on groff command line?


From: Werner LEMBERG
Subject: Re: [Groff] Passing -D argument to grap on groff command line?
Date: Thu, 21 Sep 2006 07:54:27 +0200 (CEST)

> I realize that it is possible to use the environment variable
> GRAP_DEFINES to pass the name of the grap definition file to grap,
> but I'd really like to be able to do this from the groff command
> line.  How do I do this?  The groff "-P" option seems to pass
> arguments on to postprocessors only.

Indeed, groff has no ability to pass arguments to preprocessors, even
for the ones which come with the groff bundle.  For eqn, to name an
example, Clarke's solution was to add configuration support directly
into the document via a special first .EQ ... .EN section.  Maybe
something similar exists for grap also?  Otherwise, you can pass the
environment variable directly on the command line:

  GRAP_DEFINES=foo groff ...


     Werner




reply via email to

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