Re: OT: psbooklet
Thanks to all who contributed to this thread. Today my colleagues were oohing and aahing over our pretty little exam booklet! 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
Re: OT: psbooklet
Thanks to all who contributed to this thread. Today my colleagues were oohing and aahing over our pretty little exam booklet! 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
Re: OT: psbooklet
Thanks to all who contributed to this thread. Today my colleagues were oohing and aahing over our pretty little exam booklet! 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
Re: OT: psbooklet
On Sat, 30 Nov 2002, Matej Cepl wrote: Robin Turner wrote: What is wrong with this? #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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. Sorry it should be psnup -2up $TMPF1 $TMPF2 I tried the script (it's attached) and made the change, but I still get the error: /home/chr/Private/bin/bookletScript.sh: line 7: syntax error: unexpected end of file What's wrong? /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2up $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 }
Re: OT: psbooklet
Does attached script all you needed? -- Lav GNU! ALT Linux Team! LaTeX! LyX! ps2booklet.sh Description: application/shellscript
Re: OT: psbooklet
On Sun, 1 Dec 2002, Vitaly Lipatov wrote: Does attached script all you needed? Yes, thanks. /C -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
Re: OT: psbooklet
On Sat, Nov 30, 2002 at 05:42:20PM +0200, 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). I use psbook $1 | psnup -2 -l -m0 $1.ps sometimes... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: OT: psbooklet
On Sat, 30 Nov 2002, Matej Cepl wrote: Robin Turner wrote: What is wrong with this? #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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. Sorry it should be psnup -2up $TMPF1 $TMPF2 I tried the script (it's attached) and made the change, but I still get the error: /home/chr/Private/bin/bookletScript.sh: line 7: syntax error: unexpected end of file What's wrong? /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2up $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 }
Re: OT: psbooklet
Does attached script all you needed? -- Lav GNU! ALT Linux Team! LaTeX! LyX! ps2booklet.sh Description: application/shellscript
Re: OT: psbooklet
On Sun, 1 Dec 2002, Vitaly Lipatov wrote: Does attached script all you needed? Yes, thanks. /C -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
Re: OT: psbooklet
On Sat, Nov 30, 2002 at 05:42:20PM +0200, 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). I use psbook $1 | psnup -2 -l -m0 $1.ps sometimes... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: OT: psbooklet
On Sat, 30 Nov 2002, Matej Cepl wrote: > Robin Turner wrote: > > >What is wrong with this? > > > > > > #!/bin/sh > > > TMPF1=`mktemp /tmp/psbooklet1XX` > > > TMPF2=`mktemp /tmp/psbooklet2XX` > > > psbook $1 $TMPF1 > > > psnup -2 $TMPF1 $TMPF2 > > > [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 } > > > > > >Matej > > > > > Got this message: > > > > *] [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. > > Sorry it should be > psnup -2up $TMPF1 $TMPF2 > I tried the script (it's attached) and made the change, but I still get the error: /home/chr/Private/bin/bookletScript.sh: line 7: syntax error: unexpected end of file What's wrong? /Christian -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2up $TMPF1 $TMPF2 [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 }
Re: OT: psbooklet
Does attached script all you needed? -- Lav GNU! ALT Linux Team! LaTeX! LyX! ps2booklet.sh Description: application/shellscript
Re: OT: psbooklet
On Sun, 1 Dec 2002, Vitaly Lipatov wrote: > Does attached script all you needed? > Yes, thanks. /C -- Christian Ridderström, +46-8-790 91 37 http://www.md.kth.se/~chr Mechatronics lab, Dept. of Machine Designhttp://www.md.kth.se
Re: OT: psbooklet
On Sat, Nov 30, 2002 at 05:42:20PM +0200, 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). I use psbook $1 | psnup -2 -l -m0 > $1.ps sometimes... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Re: OT: psbooklet
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/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej -- Matej Cepl, [EMAIL PROTECTED], Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 Roses are red; Violets are blue. I'm schizophrenic, And so am I.
Re: OT: psbooklet
Matej Cepl wrote: 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/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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
Re: OT: psbooklet
Robin Turner wrote: What is wrong with this? #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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. Sorry it should be psnup -2up $TMPF1 $TMPF2 Matej -- Matej Cepl, [EMAIL PROTECTED], Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 A woman without a man is like a fish without a bicycle. Therefore, a man without a woman is like a bicycle without a fish.
Re: OT: psbooklet
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/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej -- Matej Cepl, [EMAIL PROTECTED], Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 Roses are red; Violets are blue. I'm schizophrenic, And so am I.
Re: OT: psbooklet
Matej Cepl wrote: 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/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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
Re: OT: psbooklet
Robin Turner wrote: What is wrong with this? #!/bin/sh TMPF1=`mktemp /tmp/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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. Sorry it should be psnup -2up $TMPF1 $TMPF2 Matej -- Matej Cepl, [EMAIL PROTECTED], Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 A woman without a man is like a fish without a bicycle. Therefore, a man without a woman is like a bicycle without a fish.
Re: OT: psbooklet
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/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 } Matej -- Matej Cepl, [EMAIL PROTECTED], Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 Roses are red; Violets are blue. I'm schizophrenic, And so am I.
Re: OT: psbooklet
Matej Cepl wrote: 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/psbooklet1XX` TMPF2=`mktemp /tmp/psbooklet2XX` psbook $1 $TMPF1 psnup -2 $TMPF1 $TMPF2 [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 } Matej Got this message: *] [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
Re: OT: psbooklet
Robin Turner wrote: > >What is wrong with this? > > > > #!/bin/sh > > TMPF1=`mktemp /tmp/psbooklet1XX` > > TMPF2=`mktemp /tmp/psbooklet2XX` > > psbook $1 $TMPF1 > > psnup -2 $TMPF1 $TMPF2 > > [ $? == 0 ] && { mv $TMPF2 $1 ; rm $TMPF1 } > > > >Matej > > > Got this message: > > *] [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. Sorry it should be psnup -2up $TMPF1 $TMPF2 Matej -- Matej Cepl, [EMAIL PROTECTED], Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 A woman without a man is like a fish without a bicycle. Therefore, a man without a woman is like a bicycle without a fish.