a2ps
====

Anyone  still use  the a2ps(1)  utility? I  was in  need to  print some
formatted C source codes and tried to find some hard ways to go. Then I
have remembered that there must me something simple which I used in the
dark past.

And it is!  The a2ps(1) is still available  in the Debian/Ubuntu/Fedora
and so and it is rather easy to use:

a2ps simul.c --media=a4 --tabsize=2 -1 -o simul.ps

It means  that the  "simul.c" source  code was printed  on an  A4 paper
format with tabulator width set to 2 (the "-1" switch means I want just
1 page per A4 paper sheet because default is 2 pages). Without the "-o"
switch it will send the final  PostScript code directly to  the default
printer (and I don't think that my old office OKI monster can handle it
directly).

There can  be a configuration  file where  the default switches  can be
saved to ease user's life, of course (~/.a2psrc).

The a2ps is not  new so it struggles with the  UTF-8 encoding (it works
but headers and footers might include unnecessary mess). Thus I set the
LC_ALL=C before its use. Then  everything is English/ASCII and it looks
as expected (it's UNIX after all so everything should  be non-localised
by default, I think!).