Booklet Printing with Lyx

1999-11-12 Thread Frank Geter


Does anyone know of a good way to print in booklet style on letter size
paper?  I worked for several hours yesterday and after much trial and error
I got something to work but it is not an elegant solution.  I used the
postscript utilities plus some strange paper and margin settings in Lyx to
achieve the desired results.  I had to select a custom papersize of 5.5
inches by 11.5 inches, a top margin of 1.25 inches, left margin of 0.4in,
right margin of 0.75 inches and a header margin of 1.5 inches.  This was
done on the default document article class.  I then printed to a file
(file.ps). And used the following commands.

psbook file.ps file2.ps
psnup -w8.5in -h11in -W5.5in -H8.5in file2.ps file3.ps
gv file3.ps

I then printed selected pages from Ghostview.

I think the reason for the strange settings in Lyx is that dvip
automatically processes assuming letter size paper. At least that is what
appears on the command line in Lyx when I tell it to print to a file.

Anyway, if someone knows of a simpler and more straight forward way to do
this please let me know.

Frank Geter
USDA NRCS ITC
2625 Redwing Road, Suite 110
Fort Collins, CO 80526
[EMAIL PROTECTED]
Ph# 970-282-2482



Re: Booklet Printing with Lyx

1999-11-12 Thread Carlos A M dos Santos


Try the attached script.


#!/bin/sh
# script for book generation.
# Examples of use: man -t command | book | lpr -Pprinter
#  This will print the man pages in book format and
#  both sides. If you need file out, say:
#man -t command |book  out.ps
#
# You can use: cat name.ps | book  name2.ps

PATH=/usr/local/bin:/usr/bin:/bin
export PATH

PSBOOK=/usr/local/bin/psbook
PSNUP=/usr/local/bin/psnup
PSTOPS=/usr/local/bin/pstops

if test $# -gt 0; then
   for N in $*; do
  $PSBOOK -q $N | $PSNUP -q -2 | $PSTOPS -q "2:0,1U(1w,1h)"
   done
else
   $PSBOOK -q | $PSNUP -q -2 | $PSTOPS -q "2:0,1U(1w,1h)"
fi



Booklet Printing with Lyx

1999-11-12 Thread Frank Geter


Does anyone know of a good way to print in booklet style on letter size
paper?  I worked for several hours yesterday and after much trial and error
I got something to work but it is not an elegant solution.  I used the
postscript utilities plus some strange paper and margin settings in Lyx to
achieve the desired results.  I had to select a custom papersize of 5.5
inches by 11.5 inches, a top margin of 1.25 inches, left margin of 0.4in,
right margin of 0.75 inches and a header margin of 1.5 inches.  This was
done on the default document article class.  I then printed to a file
(file.ps). And used the following commands.

psbook file.ps file2.ps
psnup -w8.5in -h11in -W5.5in -H8.5in file2.ps file3.ps
gv file3.ps

I then printed selected pages from Ghostview.

I think the reason for the strange settings in Lyx is that dvip
automatically processes assuming letter size paper. At least that is what
appears on the command line in Lyx when I tell it to print to a file.

Anyway, if someone knows of a simpler and more straight forward way to do
this please let me know.

Frank Geter
USDA NRCS ITC
2625 Redwing Road, Suite 110
Fort Collins, CO 80526
[EMAIL PROTECTED]
Ph# 970-282-2482



Re: Booklet Printing with Lyx

1999-11-12 Thread Carlos A M dos Santos


Try the attached script.


#!/bin/sh
# script for book generation.
# Examples of use: man -t command | book | lpr -Pprinter
#  This will print the man pages in book format and
#  both sides. If you need file out, say:
#man -t command |book  out.ps
#
# You can use: cat name.ps | book  name2.ps

PATH=/usr/local/bin:/usr/bin:/bin
export PATH

PSBOOK=/usr/local/bin/psbook
PSNUP=/usr/local/bin/psnup
PSTOPS=/usr/local/bin/pstops

if test $# -gt 0; then
   for N in $*; do
  $PSBOOK -q $N | $PSNUP -q -2 | $PSTOPS -q "2:0,1U(1w,1h)"
   done
else
   $PSBOOK -q | $PSNUP -q -2 | $PSTOPS -q "2:0,1U(1w,1h)"
fi



Booklet Printing with Lyx

1999-11-12 Thread Frank Geter


Does anyone know of a good way to print in booklet style on letter size
paper?  I worked for several hours yesterday and after much trial and error
I got something to work but it is not an elegant solution.  I used the
postscript utilities plus some strange paper and margin settings in Lyx to
achieve the desired results.  I had to select a custom papersize of 5.5
inches by 11.5 inches, a top margin of 1.25 inches, left margin of 0.4in,
right margin of 0.75 inches and a header margin of 1.5 inches.  This was
done on the default document article class.  I then printed to a file
(file.ps). And used the following commands.

psbook file.ps file2.ps
psnup -w8.5in -h11in -W5.5in -H8.5in file2.ps file3.ps
gv file3.ps

I then printed selected pages from Ghostview.

I think the reason for the strange settings in Lyx is that dvip
automatically processes assuming letter size paper. At least that is what
appears on the command line in Lyx when I tell it to print to a file.

Anyway, if someone knows of a simpler and more straight forward way to do
this please let me know.

Frank Geter
USDA NRCS ITC
2625 Redwing Road, Suite 110
Fort Collins, CO 80526
[EMAIL PROTECTED]
Ph# 970-282-2482



Re: Booklet Printing with Lyx

1999-11-12 Thread Carlos A M dos Santos


Try the attached script.


#!/bin/sh
# script for book generation.
# Examples of use: man -t  | book | lpr -P
#  This will print the man pages in book format and
#  both sides. If you need file out, say:
#man -t  |book > out.ps
#
# You can use: cat name.ps | book > name2.ps

PATH=/usr/local/bin:/usr/bin:/bin
export PATH

PSBOOK=/usr/local/bin/psbook
PSNUP=/usr/local/bin/psnup
PSTOPS=/usr/local/bin/pstops

if test $# -gt 0; then
   for N in $*; do
  $PSBOOK -q $N | $PSNUP -q -2 | $PSTOPS -q "2:0,1U(1w,1h)"
   done
else
   $PSBOOK -q | $PSNUP -q -2 | $PSTOPS -q "2:0,1U(1w,1h)"
fi