🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #11317

Re: Including postscript in LaTeX

#11317
From: Ulysses Li
Date: Fri, 23 Feb 1990 08:18
49 lines
2640 bytes
In article <00093.AA00093@nieland.DAYTON.OH.US> ted@nieland.DAYTON.OH.US 
(Ted Nieland) writes: 
> 
> Len Schwer of SRI wrote up a very nice set of instructions for including
> postscript drawings in LaTeX.  It is a fairly long document.
> 
> It has been submitted to the EPUBS SIG of DECUS for publication in their
> Newsletter and it is also on the Fall 1989 DECUS VAX/L&T SIG tape in the
> EPUBS directory.
> 
> I highly recommend it for anyone who is looking to include postscript
> in a LaTeX Document.

Seems to me that quite a few people have got very complicated
approaches to include the PostScript files into LaTeX. However,
I learned this technique from a user at our local computer, 
which I feel much simpler. I'd like to explain briefly how it
works with example of my current report writing.

I first have my astronomical CCD photo converted into a standard 
PostScript file called, say ``photo.ps'' in my home directory. 
Then you just simply modify the file ``photo.ps'' a bit by deleting
commands that will cause the execution of LaserWriter such as
``%!'' and ``showpage'' from it. Then I just need to put the 
following lines into the LaTeX context of my report.

	\begin{figure}
	\vspace{5.5in}
	\special{psfile=photo.ps hscale=0.56 vscale=0.56 hoffset=20}
	\caption{The CCD Photometric Picture of QSO 0957 + 561 A \& B} 
	\label{ccdpic}
	\end{figure} 

After that, I just go ahead doing the compiling of the LaTeX context as
we usually do with ``latex file.tex'' to get the DVI file ``file.dvi''.
Then I convert the DVI file ``file.dvi'' into PostScript file  
``file.ps'' with command ``dvi2ps file.dvi > file.ps''. In this step,
the previous PostScript figure ``photo.ps'' will be automatically inserted 
into the appropriate place of ``file.ps''. Then I just print out the 
PostScript file ``file.ps'' on LaserWriter like you usually do to print
PosrScript files. The figure just goes nicely with the context of my
report.

Hope this is helpful. 

--
Ulysses Li
ARPA:	ulysses@astro.as.utexas.edu
UUCP:	ulysses@utastro.UUCP
Technical Details
Message-ID: <9002230218.AA271828@utastro.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!utastro!ulysses
References: <00093.AA00093@nieland.DAYTON.OH.US>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!utastro!ulysses
From: ulysses@astro.as.utexas.edu (Ulysses Li)
Newsgroups: comp.text.tex
Subject: Re: Including postscript in LaTeX
Summary: A SIMPLER APPROACH I'M USING NOW...
Keywords: ``\special''
Message-ID: <9002230218.AA271828@utastro.UUCP>
Date: 23 Feb 90 08:18:38 GMT
References: <00093.AA00093@nieland.DAYTON.OH.US>
Reply-To: ulysses@utastro.UUCP (Ulysses Li)
Followup-To: comp.text.tex
Organization: UT-Austin Astronomy Department/McDonald Observatory
Lines: 49