[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users 00812] Script for paginating PS
- To: mgp-users@mew.org
- Subject: [mgp-users 00812] Script for paginating PS
- From: Christoph Dalitz <christoph.dalitz@hs-niederrhein.de>
- Date: Thu, 14 Mar 2002 14:25:42 +0100
- Delivered-to: mailing list mgp-users@mew.org
- Mailing-list: contact mgp-users-help@mew.org; run by ezmlm
- Organization: FH Niederrhein
Hello,
in order to paginate my mgp-presentation printouts I have written
a small script "pspage" for paginating arbitrary PS-files.
Sample usage for 4-up printing with page numbers on every slide
and a footer line "Presentation 01.01.2002":
mgp2ps -e latin1 bla.mgp |\
pspage -l -font Times-Roman:24 |\
psnup -l -c -4 -b0.7cm -m1.2cm |\
pspage -l -font Times-Italic:10 -rtext "Presentation 01.01.2002" \
> bla.ps
In case anyone is interested: it is freely available from
http://lionel.kr.fh-niederrhein.de/PAGES/dozenten/dalitz/data/software/pspage
Christoph Dalitz
PS:
There is a problem in the PS-output of mgp2ps 1.09a which messes up some
PS-printeres (eg. HP Laserjet 1200). If you encounter this problem, you
must alter the file "print.c" in the mgp source distribution:
The line
fprintf(fp, "/calcy {false charpath flattenpath pathbbox setymax pop setymin pop} def\n");
must be replaced with
fprintf(fp, "/calcy {dup ( ) eq\n"
" {0 setymax 0 setymin pop}\n"
" {false charpath flattenpath pathbbox setymax pop setymin pop}\n"
" ifelse\n"
"} def\n");