On Sat, 2 Feb 2002, Patrick Powell wrote:

> > From [EMAIL PROTECTED] Wed Jan 16 02:32:39 2002
> > Date: Wed, 16 Jan 2002 10:29:43 +0100 (MET)
> > From: Johan Bengtsson <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: LPRng: Problems using enscript
> >
> > Hi,
> >
> > WORKS:
> >
> > enscript_options= -o-  
> > enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript 
>\%s{enscript_options}               
> > text_converter= \%s{enscript_converter}
> >
> > DOESN'T WORK:
> >
> > enscript_options= --header='$n %W Page $% of $=' -o-
> > enscript_converter= /opt/pd/libexec/filters/wrapper /opt/gnu/bin/enscript 
>\%s{enscript_options}
> > text_converter= \%s{enscript_converter}
> >
> 
> The 'enscript_options' are being run through a Printf-like conversion
> process. You need to escape them by using %%.  Try:
> 
>  enscript_options= --header='$n %%W Page $%% of $=' -o-

I gave up on enscript and tried a2ps instead. Same problems, but it
finally worked when I enclosed the whole flag in ticks like below:

a2ps_options=  -q -B -1 -M \%M{papersize} '--left-footer=Jobsize: \%s{b}'

Best regards,
Johan Bengtsson

-- 
http://www.dd.chalmers.se/~elijah/



-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to