Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!athena.mit.edu!boaz From: boaz@athena.mit.edu (Boaz P Ben-Zvi) Newsgroups: comp.text.tex Subject: Re: PostScript Figures in LaTeX? Keywords: PostScript Latex Message-ID: <1990Feb22.231556.5937@athena.mit.edu> Date: 22 Feb 90 23:15:56 GMT References: <1990Feb20.180954.27574@sctc.com> Sender: news@athena.mit.edu (News system) Reply-To: boaz@lcs.mit.edu Distribution: comp Organization: Laboratory for Computer Science, MIT Lines: 32 In article <1990Feb20.180954.27574@sctc.com>, thomsen@sctc.com (Dan Thomsen) writes: > I have heard that postscript figures can be included in Latex documents. > Has anyone had any luck doing this? Is any special software needed? > To include PostScript code in your LaTeX document you need to use the \special command. LaTeX (TeX) transfers the argument of \special verbatim to the DVI output, and the software that translates the DVI into PS should handle that argument. The common use: a file (e.g., figure.ps) contains the postscript code for the figure. You put in your LaTeX file something like: .... \begin{picture}(..., ...) % picture size enough for figure.ps \special{psfile=figure.ps} % include the PS file, use the same coordinates ...... % more stuff (e.g., LaTeX picture commands) \end{picture} Programs that convert DVI to PS: * dvi2ps: available from rtsg.ee.lbl.gov (and other places) * dvips: available from LaBrea.Stanford.edu Get one of the above and read its doc to know about more options (e.g., with dvips you can include PS code directly inside you LaTeX file, without using a separate PS file). ------------ Boaz Ben-Zvi boaz@mit.edu ------------