[Top][All Lists]

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

Re: Adding a custom symbol

From: Valeriy E. Ushakov
Subject: Re: Adding a custom symbol
Date: Fri, 13 Jan 2012 16:20:47 +0400
User-agent: Mutt/

On Fri, Jan 13, 2012 at 10:45:38 +0000, Mark Summerfield wrote:

> I need to generate 2 different versions of a document. I'd like to do
> this:
>     $ lout --'@Monochrome{Yes}' main.lout > bw.ps
> and
>     $ lout main.lout > color.ps
> How can I add @Monochrome{No} as a default value somewhere?

IIRC, define that symbol as a named parameter (with appropriate
default) to, say, @MySetup and @Use @MySetup.  Command line options
are consulted for overrides when a symbol is @Use'd (see calls to
HuntCommandOption in z06.c).

Consider the manual page example @PageType which is a named parameter
to @DocumentSetup.


reply via email to

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