topost

Mark Moraes moraes at cs.toronto.edu
Tue Aug 28 13:56:31 AEST 1990


karron at MCIRPS2.MED.NYU.EDU writes:

>I would also like to paste images into tex documents.
>Have you been able to put images in TeX ? How do you do it ?

The generally accepted way to put images (or other
output-device-specific stuff) in LaTeX documents is to use \special.
It's low-level, and implies knowledge of the output filter you're
using -- your document will be less "portable".  Check the
dvi2whatever filter you're using and see what it supports by way of
\specials.

For PostScript, there exist a set of macros called psfig (see your
friendly neighbourhood TeX archive site -- sun.soe.clarkson.edu?  The
master copy used to be on linc.cis.upenn.edu) that allow inclusion of
encapsulated PostScript.  For example, with X11, you can do stuff like
	xwd | xpr -device ps > file.ps
and then include file.ps.  (R4 xpr will work, earlier versions will
not)  Most modern versions of dvi*ps provide the \specials that
psfig needs.

pgmtops (from the pbmplus image conversion utilities) will also
generate PostScript that you can include with psfig.

	Mark.



More information about the Comp.sys.sgi mailing list