squeeze.hdr - enscript - GNU Enscript
 (HTM) git clone git://thinkerwim.org/enscript.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       squeeze.hdr (1325B)
       ---
            1 %
            2 % Squeezed `Emacs ps-print-buffer' styled header.
            3 % Copyright (c) 1998 Markku Rossi.
            4 % Author: Markku Rossi <mtr@iki.fi>
            5 %
            6 
            7 %
            8 % This file is part of GNU Enscript.
            9 %
           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.
           14 %
           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.
           19 %
           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/>.
           22 %
           23 
           24 % -- code follows this line --
           25 %%DocumentNeededResources: font Helvetica
           26 %HeaderHeight:        20
           27 %Format: eurdatestr        %E
           28 %Format: pagenumstr        $V$%/$=
           29 
           30 % Fonts.
           31 /Helvetica /HeaderFont-Large MF
           32 /HeaderLF /HeaderFont-Large findfont 12 1.3 mul scalefont def
           33 
           34 /do_header {        % print the header
           35   gsave
           36     d_header_x d_header_y translate
           37     0 setgray
           38 
           39     % Horizontal line.
           40     0 1 moveto d_header_w 0 rlineto stroke
           41 
           42     % texts
           43 
           44     HeaderLF setfont
           45     /y 6 def
           46     5 y moveto ftail show
           47 
           48     72 0 rmoveto
           49     pagenumstr show
           50   grestore
           51 } def