[comp.lang.postscript] <None>

steve@wizard.DSG.Tandem.COM (Steve Mansour) (10/02/90)

I just got a copy of still.ps (the distill utility) from adobe's file server.
I would like to use it under Sun's X11/NeWS or with ghostscript 2.0 but I'm
having trouble getting started.  I'm new to PostScript interpreters, and I
would appreciate any help.

Under the "HOW TO USE" section the comments in the beginning suggest the
following:

    %       INTERPRETERS: if you have an interpreter with a file system
    %           handy, first type "(still.ps) run" to load this file, then
    %           distill your file like this: "(prog.ps) distill".  It will
    %           write the results in "prog.psx" (appends an x to the file
    %           name you give it).

I first tried psh under OpenWindows 2.0.  Here's what happened:

    sman:/home/sman/steve/src/ps[ 74 ]:psh
    executive
    Welcome to X11/NeWS Version 2
    (still.ps) run
    ***ERROR***
    Process: 0x300088 (sman NeWS client)   Error: undefinedfilename
       No such file or directory
    Stack: (still.ps) (r)
    Executing: 'file'
    At: {(r) *'file' 'cvx' 'exec'}
    In: Reading file(?,W,R)
    *****

Next I tried it under ghostscript 2.0 :

    sman:/home/sman/steve/src/ps[ 75 ]:gs
    Reading ghost.ps... Loading font file ugly_r.gsf... done.
    ghost.ps read.
    Ghostscript 2.0  Copyright (C) 1990 Aladdin Enterprises,
       Menlo Park, CA.  All rights reserved.
    Distributed by Free Software Foundation, Inc.
    Ghostscript comes with NO WARRANTY: see the file COPYING for details.
    GS>(still.ps) run
    GS>(cal.ps) distill
    %!PS-Adobe-2.1 debug version (\(V 1.0d release 12 edit 0\))

    % Distill Error; invoked with file name: (cal.ps)
    % This interpreter cannot open files directly.
    % Please add "distill" at end of file and concatenate with
    % file to be distilled.

    Error: /rangecheck in --getdevice--
    ... lots more stack info ...

So, I tried what was suggested in the comments.  I added "distill" to the end
end of the file and appended the code I wanted to distill, and tried again.

    %!PS-Adobe-2.1 debug version (\(V 1.0d release 12 edit 0\))
    %!PS-Adobe-2.1
    %%Title: %stdout
    %%Creator: Glenn Reid and still.ps (V 1.0d release 12 edit 0)
    %%BoundingBox: (atend)

    ... some lines truncated ...

           { 3 {2 index} repeat put pop 1 add }{ exch pop }ifelse
        } forall pop 3 1 roll REMAP
     } bdef
     end %PROLOGUE
    %%EndProcSet: Adobe_distill 0.1202 0.0

After the %%EndProcSet line, it just waited and produced no further
output.

What am I doing wrong?  Any input would be welcome.

Steve Mansour          steve@tandem.com          (apple|sun)!tandem!steve
Tandem Computers DSG   (408) 285-7316

sushil@omena.cps.msu.edu (Sushil Bhattacharjee) (02/01/91)

Subject:Including .ps file from Mathematica into LaTeX 
Sender: news@msuinfo.cl.msu.edu
Reply-To: sushil@omena.cps.msu.edu (Sushil Bhattacharjee)
Organization: PRIP Lab, Comp. Sci. Dept., MSU
Date: Thu, 31 Jan 91 21:16:09 GMT

Hi folks,
I have a postscript file generated from Mathematica on NeXT. When I try
to include it in a LaTeX file, I get a 
!Missing number, treated as zero.
message.

Has anyone else had this problem?/Does anyone know the remedy?
If so, please let me know.
If you have done this successfully, please let me know. That will tell
me that I am not doing it correctly.
I generally do not read this newsgroup, so I would appreciate it if you
can send me email at sushil@pixel.cps.msu.edu
Thanks,
Sushil

phys59@jetson.uh.edu (03/26/91)

In article <8911.27ee6eb3@jetson.uh.edu>, phys59@jetson.uh.edu writes:
> [...lots of PostScript code]
> /CheckSum 0 def
> 0 1 9 {dup BarString exch 1 getinterval cvi exch 2 mod 2 mul 1 add mul
>        CheckSum add /CheckSum exch def} for
> CheckSum 10 mod 10 exch sub /CheckSum exch def
> NewString 13 CheckSum cvi 1 string cvs putinterval
> [a pinch more PostScript code...]

One of those lines (you figure out which one!) should read:
CheckSum 10 mod 10 exch sub 10 mod /CheckSum exch def
                            ^^^^^^
Otherwise the program will fail with a cvs rangecheck error 10% of the time.
So sorry for any inconvenience this may have caused.

Ronald Parker, phys59@jetson.uh.edu
Route 2 CR475E
Hamilton, IN  46742

If you plan to profit off the above code, please contact me first.

Ron Parker
phys59@jetson.uh.edu
sig held up pending FCC type acceptance.
Disclaimer: As far as the university knows, I'm just another 9-digit number.

davy@raphael.erg.sri.com (David Curry) (03/29/91)

We're evaluating a color PostScript printer here (Tektronix Phaser II PXN)
and could use some nice color PostScript thingies.  If you have any you're
willing to let us print, please send them to me.

Please note: I'm looking for "real" color PostScript things here, not
PostScript
             versions of GIF files, etc.  I have plenty of those.  I'd rather
	     have straight color PostScript out of applications such as CAD/CAM,
             etc.

Thanks,
Dave Curry
davy@erg.sri.com

graeme@otago.ac.nz (07/01/91)

-- 
Graeme McKinstry,                graeme@otago.ac.nz
Computing Services Centre,
University of Otago,
Dunedin, New Zealand.