Matej Cepl wrote:
Got this message:robin wrote:Many system upgrades ago, I had a neat little script called psbooklet which would take a PostScript file and turn it into an A4 booklet (sort of a combination of pstops and psbook). Now I can't find it anywhere on the net. Does anyone know a download location for this script, or any equivalent program (I tried psheft, but couldn't get it to compile).
What is wrong with this? #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XXXXXX` TMPF2=`mktemp /tmp/psbooklet2XXXXXX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 } Matej
*] [1] [*] [*] Wrote 4 pages, 26691 bytes
[1] [2] Wrote 2 pages, 29669 bytes
/home/nalan/Documents/psbooklet: line 7: syntax error: unexpected end of file
Running the commands manually is fine for psbook, but psnup for some reason won't put two virtual pages on one physical page.
Robin
--
"Do unto others what you would like others to do unto you. And have fun doing it."
- Linus Torvalds
Robin Turner
IDMYO,
Bilkent University
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin