% % `emacs.hdr' with file modification time and current time % Copyright (c) 1995, 1996, 1997 Markku Rossi. % Author: Markku Rossi % % This file is part of GNU Enscript. % % Enscript is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % % Enscript is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with Enscript. If not, see . % % -- code follows this line -- %%DocumentNeededResources: font Helvetica %Format: fmodstr $D{%a %b %d %H:%M:%S %Y} %Format: datestr %D{%a %b %d %H:%M:%S %Y} %Format: pagenumstr $V$%/$= % Fonts. /Helvetica /HeaderFont-Bold MF /HeaderF /HeaderFont-Bold findfont 13 scalefont def /Helvetica /HeaderFont-Large MF /HeaderLF /HeaderFont-Large findfont 13 1.3 mul scalefont def /do_header { % print emacs header gsave d_header_x d_header_y translate 0 setgray .5 setlinewidth % black shadow 1 0 d_header_w 1 sub d_header_h 1 sub Box fill % gray box with black frames 0 1 d_header_w 1 sub d_header_h 1 sub Box gsave .9 setgray fill grestore stroke % texts /xmarg 5 def % Top line. HeaderLF setfont /y d_header_h 12 div d_header_h 2 div add def xmarg y moveto fname show pagenumstr dup stringwidth pop d_header_w exch sub 1 sub xmarg sub y moveto show % Bottom line HeaderF setfont /y d_header_h 6 div def xmarg y moveto fmodstr show datestr dup stringwidth pop d_header_w exch sub 1 sub xmarg sub y moveto show grestore } def