Well, it looks like if you want footers you sorta have to roll your
own. My solution is attached below.

I guess there is no do_footer routine because the do_header routine
does the footers, too, at least in some circumstances. There happens
to be a supplied fancy header a2ps.hdr which also prints a footer. So,
here is a footer.hdr which just prints out the page numbers at the lower
right corner. That's all I wanted to do.

This gets really easy once you poke around in the hdr files supplied
with enscript. Just gotta know a little postscript, is all. The trick
is realizing that all the positions on the paper, eg., d_footer_x, are
generated by enscript. You just have to fool with the %Format strings
at the start of the hdr file to get the information you want to show n
the header. The more adventurous can fool with the graphical stuff in
the hdr file.

Then, when you invoke enscript, use this option:
          --fancy-header=footer

Joel

% footer.hdr modified from a2ps.
% -- code follows this line --
%Format: lowerpagestr   page $% of $=

%FooterHeight: 12

% Fonts.
/Helvetica /helvetica-encoded MF
/SmallFont /helvetica-encoded findfont 8 scalefont def
/a2ps_marg 10 def
/do_header {    % print a2ps header
  gsave
    % lowerpagestr
    SmallFont setfont
    d_footer_x d_footer_w add lowerpagestr stringwidth pop sub
    a2ps_marg sub
    d_footer_y moveto lowerpagestr show
  grestore
} def

_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://mail.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to