2 % `emacs.hdr' with file modification time and current time
3 % Copyright (c) 1995, 1996, 1997 Markku Rossi.
4 % Author: Markku Rossi <mtr@iki.fi>
7 % This file is part of GNU Enscript.
9 % Enscript is free software: you can redistribute it and/or modify
10 % it under the terms of the GNU General Public License as published by
11 % the Free Software Foundation, either version 3 of the License, or
12 % (at your option) any later version.
14 % Enscript is distributed in the hope that it will be useful,
15 % but WITHOUT ANY WARRANTY; without even the implied warranty of
16 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 % GNU General Public License for more details.
19 % You should have received a copy of the GNU General Public License
20 % along with Enscript. If not, see <http://www.gnu.org/licenses/>.
23 % -- code follows this line --
24 %%DocumentNeededResources: font Helvetica
25 %Format: fmodstr $D{%a %b %d %H:%M:%S %Y}
26 %Format: datestr %D{%a %b %d %H:%M:%S %Y}
27 %Format: pagenumstr $V$%/$=
30 /Helvetica /HeaderFont-Bold MF
31 /HeaderF /HeaderFont-Bold findfont 13 scalefont def
33 /Helvetica /HeaderFont-Large MF
34 /HeaderLF /HeaderFont-Large findfont 13 1.3 mul scalefont def
36 /do_header { % print emacs header
38 d_header_x d_header_y translate
43 1 0 d_header_w 1 sub d_header_h 1 sub Box fill
45 % gray box with black frames
46 0 1 d_header_w 1 sub d_header_h 1 sub Box
58 /y d_header_h 12 div d_header_h 2 div add def
59 xmarg y moveto fname show
61 pagenumstr dup stringwidth pop
62 d_header_w exch sub 1 sub xmarg sub y moveto show
66 /y d_header_h 6 div def
67 xmarg y moveto fmodstr show
69 datestr dup stringwidth pop
70 d_header_w exch sub 1 sub xmarg sub y moveto show