3 % Copyright (c) 1996-1999 Markku Rossi.
4 % Author: Markku Rossi <mtr@iki.fi>
8 % This file is part of GNU Enscript.
10 % Enscript 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 3 of the License, or
13 % (at your option) any later version.
15 % Enscript 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 Enscript. If not, see <http://www.gnu.org/licenses/>.
24 % -- code follows this line --
25 %Format: userstr Printed by %N
26 %Format: datestr %D{%d %b %Y %H:%M}
27 %Format: fmodstr $D{%d %b %Y %H:%M}
28 %Format: upperpagestr Page $V$%/$=
29 %Format: lowerpagestr page $p
35 /Helvetica /helvetica-encoded MF
36 /SmallFont /helvetica-encoded findfont 10 scalefont def
38 /Helvetica-Bold /helvetica-bold-encoded MF
39 /BigFont /helvetica-bold-encoded findfont 12 scalefont def
43 /do_header { % print a2ps header
47 d_footer_x d_footer_w add lowerpagestr stringwidth pop sub
49 d_footer_y moveto lowerpagestr show
51 % current date in footer
53 d_footer_x a2ps_marg add d_footer_y moveto datestr show
55 % full filename in footer
57 d_footer_x d_footer_w 2 div add fname stringwidth pop 2 div sub
58 d_footer_y moveto fname show
62 d_header_x d_header_y d_header_w 24 Box fill
67 d_header_x d_header_y d_header_w 24 Box stroke
70 d_header_x d_header_w add userstr stringwidth pop sub a2ps_marg sub
71 d_header_y 29 add moveto userstr show
74 d_header_x a2ps_marg add d_header_y 6 add moveto fmodstr show
77 d_header_x d_header_w add upperpagestr stringwidth pop sub
79 d_header_y 6 add moveto upperpagestr show
83 d_header_x d_header_w 2 div add ftail stringwidth pop 2 div sub
84 d_header_y 6 add moveto ftail show