🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7850

Re: help for postscript novice

#7850
From: Charlie Geyer
Date: Fri, 20 Jan 1989 22:42
24 lines
1543 bytes
In article <311@esosun.UUCP> gail@esosun.UUCP (Gail F Matthews) writes:
 
> I have two files: one containing some text, the other containing the
> output from psplot.  How do I get the text printed on the same page
> with the psplot output?

Suppose the file containing the text is foo.txt, and the file
containing the output from psplot is bar.ps.

Run foo.txt through enscript making foo.ps, e.g.,

  enscript -fHelvetica12 -B -p foo.ps foo.txt

Now patching together the PostScript files and sending them to the
printer gets them printed.  The only problem is that both foo.ps and
bar.ps contain page eject commands -- the PostScript "showpage"
operator.  That must be stripped out of one of the files with an
editor.  For example

  sed "s/showpage//" bar.ps | cat - foo.ps | lpr

does the job, assuming you have a UNIX system.  If not the principle
is the same, patch together the files removing the showpage from one.
Technical Details
Message-ID: <1190@uw-entropy.ms.washington.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!cornell!uw-beaver!uw-june!uw-entropy!mica!charlie
References: <311@esosun.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-lcc!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!mailrus!cornell!uw-beaver!uw-june!uw-entropy!mica!charlie
From: charlie@mica.stat.washington.edu (Charlie Geyer)
Newsgroups: comp.lang.postscript
Subject: Re: help for postscript novice
Message-ID: <1190@uw-entropy.ms.washington.edu>
Date: 20 Jan 89 22:42:32 GMT
References: <311@esosun.UUCP>
Sender: news@uw-entropy.ms.washington.edu
Reply-To: charlie@mica.stat.washington.edu (Charlie Geyer)
Distribution: na
Organization: UW Statistics, Seattle
Lines: 24