3 % Copyright (c) 1996-1999 Markku Rossi.
4 % Author: Markku Rossi <mtr@iki.fi>
8 % This file is part of GNU enscript.
10 % This program is free software; you can redistribute it and/or modify
11 % it under the terms of the GNU General Public License as published by
12 % the Free Software Foundation; either version 2, or (at your option)
15 % This program is distributed in the hope that it will be useful,
16 % but WITHOUT ANY WARRANTY; without even the implied warranty of
17 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 % GNU General Public License for more details.
20 % You should have received a copy of the GNU General Public License
21 % along with this program; see the file COPYING. If not, write to
22 % the Free Software Foundation, 59 Temple Place - Suite 330,
23 % Boston, MA 02111-1307, USA.
26 % -- code follows this line --
27 %Format: userstr Printed by %N
28 %Format: datestr %D{%d %b %Y %H:%M}
29 %Format: fmodstr $D{%d %b %Y %H:%M}
30 %Format: upperpagestr Page $V$%/$=
31 %Format: lowerpagestr page $p
37 /Helvetica /helvetica-encoded MF
38 /SmallFont /helvetica-encoded findfont 10 scalefont def
40 /Helvetica-Bold /helvetica-bold-encoded MF
41 /BigFont /helvetica-bold-encoded findfont 12 scalefont def
45 /do_header { % print a2ps header
49 d_footer_x d_footer_w add lowerpagestr stringwidth pop sub
51 d_footer_y moveto lowerpagestr show
53 % current date in footer
55 d_footer_x a2ps_marg add d_footer_y moveto datestr show
57 % full filename in footer
59 d_footer_x d_footer_w 2 div add fname stringwidth pop 2 div sub
60 d_footer_y moveto fname show
64 d_header_x d_header_y d_header_w 24 Box fill
69 d_header_x d_header_y d_header_w 24 Box stroke
72 d_header_x d_header_w add userstr stringwidth pop sub a2ps_marg sub
73 d_header_y 29 add moveto userstr show
76 d_header_x a2ps_marg add d_header_y 6 add moveto fmodstr show
79 d_header_x d_header_w add upperpagestr stringwidth pop sub
81 d_header_y 6 add moveto upperpagestr show
85 d_header_x d_header_w 2 div add ftail stringwidth pop 2 div sub
86 d_header_y 6 add moveto ftail show