( ESNUG 247 Item 5 ) -------------------------------------------- [8/16/96]

Subject: (ESNUG 244 #6) Synopsys Online Documentation & WorldView 2.1

> Recently we've installed Synopsys 3.4b and when trying the online
> documentation I noticed some odd behavior. ... Upon startup, the
> "Search->Collection" window pops up automatically after the welcome page
> is displayed.  How can I suppress this behavior? ... Does anyone have some
> tips on how to use the printerConfig Xresource with WorldView 2.1?  I
> would like to be able to print, for example, two pages on one (using pl2ps
> and PSUtils) directly from WorldView.  Using only a filter didn't work,
> but using pl2ps and the PSUtils on UNIX level did.


From: kamphuis@earl.hl.siemens.de (Peter Kamphuis)

John,

I found out how to print two pages on one directly from WorldView.
Following is described for Synopsys 3.4b with WorldView 2.1.

First you need access to PSUtils.  PSUtils is a set of public domain
PostScript converting tools by Angus J.C. Duggan.  We have them installed in
/usr/local/bin, but you should find them in the Internet (try some ftp
server with a path like .../applications/textproc/Postscript/psutils).

Then you need to create a script that creates PostScript from the WorldView
*.pl files, converts it and sends it to your printer.  You'll find two
scripts (iviewspool, iviewspoolb) below.  They must be available to
WorldView through your PATH variable.

Finally you need to setup the printerConfig resource in your Iview file
as follows:

  Iview*printerConfig: myprt_dbl, PostScript; \
                       myprt_dbl (2 on 1), External, iviewspool %s %s; \
                       myprt_dblse (booklet), External, iviewspoolb %s %s;

Note that many of our printers are network HP Laserjets with a duplex unit.
The name "myprt_dbl" sets up the printer for double sided printing with long
edge binding, the name "myprt_dblse" does the same, but with short edge
binding, needed for booklets.  Especially converting to booklets is nice for
printing out the quick references.  If you don't have a duplex printer, you
could use psselect from PSUtils to select only odd or even pages and print
out twice.

Below you'll find the two scripts that show a simplified version of my
(only one) script.  My original script contains some more checking, etc.
that would be too long for posting here.  You can contact me for more
information.

Note that I've used European paper formats, use the appropriate US formats
("Letter") as necessary.  I also had font problems when printing out the
normal online documentation.  You must use the print collection: follow the
"Demand Printing" link.

  #!/bin/csh -f
  # iviewspool: Alternate printer spooler for iview. Generate 2 pages on 1.
  set PRT = ${1}
  set BOOKFILE = ${2}
  set PL2PS = "${SYNOPSYS}/worldview/bin/pl2ps"
  set PSNUP = "/usr/local/bin/psnup"
  ${PL2PS} -D -dps A4 -e -ft 3 -hdr False -i ${BOOKFILE} -rm 0 
     | ${PSNUP} -2 | lpr -P${PRT}
  # EOF #

  #!/bin/csh -f
  # iviewspoolb: Alternate printer spooler for iview. Generate booklet.
  set PRT = ${1}
  set BOOKFILE = ${2}
  set PL2PS = "${SYNOPSYS}/worldview/bin/pl2ps"
  set PSRESIZE = "/usr/local/bin/psresize"
  set PSBOOK = "/usr/local/bin/psbook"
  set PSNUP = "/usr/local/bin/psnup"
  ${PL2PS} -D -dps A4 -e -ft 3 -hdr False -i ${BOOKFILE} -rm 0
     | ${PSRESIZE} -pA3 | ${PSBOOK} | ${PSNUP} -2 -b30 | lpr -P${PRT}
  # EOF #

I hope this is useful. Ideas and comments are welcome.

  - Peter Kamphuis
    Siemens Semiconductor, Munich



 Sign up for the DeepChip newsletter.
Email
 Read what EDA tool users really think.


Feedback About Wiretaps ESNUGs SIGN UP! Downloads Trip Reports Advertise

"Relax. This is a discussion. Anything said here is just one engineer's opinion. Email in your dissenting letter and it'll be published, too."
This Web Site Is Modified Every 2-3 Days
Copyright 1991-2024 John Cooley.  All Rights Reserved.
| Contact John Cooley | Webmaster | Legal | Feedback Form |

   !!!     "It's not a BUG,
  /o o\  /  it's a FEATURE!"
 (  >  )
  \ - / 
  _] [_     (jcooley 1991)