[comp.lang.postscript] help for postscript novice

gail@esosun.UUCP (Gail F Matthews) (01/20/89)

NB: I don't know anything about postscript!

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?  Attempts at combining enscript output with
the psplot output have been stunningly unsuccessful (I get two pages
or none at all).  Any help will be greatly appreciated.

Gail Matthews
esosun!gail@seismo.css.gov
gail%esosun.css.gov@seismo.css.gov
(619) 458-2789

charlie@mica.stat.washington.edu (Charlie Geyer) (01/21/89)

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.

jim@nih-csl.UUCP (jim sullivan) (01/23/89)

In article <311@esosun.UUCP> gail@esosun.UUCP (Gail F Matthews) writes:
>NB: I don't know anything about postscript!
>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?  Attempts at combining enscript output with
>the psplot output have been stunningly unsuccessful (I get two pages
>or none at all).  Any help will be greatly appreciated.

	Look for formfeed characters in the enscript output.  These are 
	ascii character 10.  Remove these (there should be only one),
	then merge the psplot file.  If this dosen't work, you could 
	try simply taking the page from the one output and putting
	it in the paper tray and letting the other output write
	overtop of it.

			Good Luck,
			Jim
			jim@nih-csl.dcrt.nih.gov

jim@nih-csl.UUCP (jim sullivan) (01/23/89)

In article <890@nih-csl.UUCP> jim@nih-csl.UUCP (jim sullivan) writes:
>In article <311@esosun.UUCP> gail@esosun.UUCP (Gail F Matthews) writes:
>>NB: I don't know anything about postscript!
>>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?  Attempts at combining enscript output with
>>the psplot output have been stunningly unsuccessful (I get two pages
>>or none at all).  Any help will be greatly appreciated.
>
>	Look for formfeed characters in the enscript output.  These are 
>	ascii character 10.

	Oops!  Not ascii character 10 but the word 'showpage'.

                             Remove these (there should be only one),
>	then merge the psplot file.  If this dosen't work, you could 
>	try simply taking the page from the one output and putting
>	it in the paper tray and letting the other output write
>	overtop of it.
>
>			Good Luck,
>			Jim
>			jim@nih-csl.dcrt.nih.gov


	Sorry, early monday morning you know. ---Jim


.
.
.
.
.
.
.
.
.
.
.
.
.
.