🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #962

problem including postscript with dvips

#962
From: fritz zaucker
Date: Thu, 06 Aug 1992 21:46
62 lines
2241 bytes
Hi,

using dvips  5.47 I tried to include a PostScript figure created on a
Mac with a scanner into my TeX document. I used \epsfbox to to so. The
EPS file looks like the following:

%%BoundingBox: 0 0 556 341
%%Creator: Microtek Scanner DA
%%Title: stocker

%%CreationDate:  1992 8 5Wed
%%EndComments
%!PS-Adobe-2.0 EPSF-1.2
/width  2320 def
/height  1424 def
/depth  1 def
/pixwidth  556 def
/pixheight  341 def
/concatprocs
  {/proc2 exch cvlit def
   /proc1 exch cvlit def
   /newproc proc1 length proc2 length add array def
   newproc 0 proc1 putinterval
   newproc proc1 length proc2 putinterval newproc cvx
  } def
/picstr width depth mul 8 div cvi string def
/dopic
{ gsave
  width height depth 
  [width 0 0 height neg 0 height]
  { currentfile picstr readstring pop}
  image
  grestore
  }def  
pixwidth pixheight scale
depth 8 ne {{1 exch sub} currenttransfer concatprocs
settransfer} if
dopic
HERE IS SOMETHING LIKE BINARY DATA. PLENTY OF ASCII-0, etc. The file
ends with
 showpage
FOLLOWED BY A ASCII-0

If I look at the file with GhostScript, it displays just fine. After
including it into the TeX file, the picture is just a mess (though at
the right place). GhostScript gives an error message after the figure:

Operand stack:
    -savetype-  0  0.0039
Execution stack:
    %interp_exit    --nostringval--  --nostringval--  false  --nostringval--  --nostringval--  false  --nostringval--  --nostringval--  --nostringval--  --nostringval--
Dictionary stack:
    432/449  7/200  122/200  45/200
Ghostscript 2.4.1 (4/21/92)

and the rest of the page isn't displayed anymore.

Can anybody help, please?

Thanks a lot,
Fritz
Technical Details
Message-ID: <FRITZZ.92Aug6164642@ko.ldgo.columbia.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!natinst.com!news.dell.com!swrinde!elroy.jpl.nasa.gov!ucla-cs!rutgers!news.columbia.edu!lamont!ko!fritzz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!natinst.com!news.dell.com!swrinde!elroy.jpl.nasa.gov!ucla-cs!rutgers!news.columbia.edu!lamont!ko!fritzz
From: fritzz@lamont.ldgo.columbia.edu (fritz zaucker)
Newsgroups: comp.text.tex
Subject: problem including postscript with dvips
Message-ID: <FRITZZ.92Aug6164642@ko.ldgo.columbia.edu>
Date: 6 Aug 92 21:46:42 GMT
Sender: news@lamont.ldgo.columbia.edu
Organization: Lamont-Doherty Geological Observatory, Columbia University, New
 York
Lines: 62
Originator: fritzz@ko.ldgo.columbia.edu