| Michael Loßin on Tue, 9 Apr 2002 11:05:30 +0200 (CEST)(envelope-from owner-apsfilter-help@apsfilter.org) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: passing options to subfilters? |
Michal Szymanski wrote: > Would be nice. The topic I am thinking about, is "pretty printing". With > the default setup (of apsfilter and probably also of a2ps) I get some > files (e.g. C programs starting with #include) printed > syntax-highlighted, in color on a deskjet printer. This is not always > desirable. It would be nice to have an option to control pretty > printing: nopp, pp, color-pp. This should be possible, provided that those text-to-PS filters have options to explicitly switch on/off pretty-printing (to allow overriding any option already included in A2PS_BASIC etc.). > > A2PS_OPTS does actually overwrite the complete command line > > and will be used if it is set (with only "-q -o -" added, > > so the output will be properly sent to stdout). > > > > A2PS_BASIC is used to supply a basic set of options that are > > extended with (the file specific set of) paper size, color, > > file type, ... parameters. > > Thanks for explanation. One more question: what are the default options > passed? At first, I thought that the commented options give defaults but > surely they do not (e.g. text is printed w/o borders!) Hm?! (from template apsfilterrc:) # override a2ps default options # defaults: ^^^^^^^^ ;-) # A2PS_BASIC="--delegate=no -X iso1 -g" # A2PS_PAPERSIZE="$PAPERSIZE" (case-corrected) ^^^^ these are the defaults #A2PS_BASIC='-X iso1' #don't format troff documents, by Joerg Wunsch <joerg@apsfilter.org> #A2PS_BASIC='-Eplain' #A2PS_PAPERSIZE=Letter #A2PS_PAPERSIZE=A4stylus ^^^^ these are examples # override the complete a2ps commandline #A2PS_OPTS='-X iso1 -m --borders=yes --prologue=color --highlight-level=heavy' ^^^^^^^^^ this is only used when set (and it's unset by default) HTH Michael