Up: info for short term visitors

Including Pictures in TeX Files

Including graphics in TeX files can be involved, and for complicated undertakings, one should probably begin by reading the dvips manual in the Center library (also available as /u/src/text/dvips/dvips.tex), and/or the geom.sty manual (available as /u/src/text/geomsty/manual.ps. However, including standard encapsulated PostScript files is relatively routine. General instructions for .eps files follow. For instructions about producing eps files with Mathematica, Maple and Geomview, consult the web pages about making mathematical illustrations.

Including Encapsualted PostScript Files

  1. In you TeX file, add the line

    \input epsf in plain TeX, and

    \documentstyle[12pt,epsf]{article} or its analog in LaTeX.

  2. At the point in your TeX file that you want to include the graphic, enter the line

    \epsffile{filename.ps}

    To scale the figure, use put the line

    \epsfxsize=<dimen>

    before the \epsffile{} command. You may use any standard TeX dimension units. This command specifies the horizontal dimension, and the vertical dimension scales proportionally.

  3. Preview and print your file as usual.

Including Maple Figures

  1. Produce the figure you want to include.

  2. First issue an interface command such as this:

    interface(plotdevice=ps, plotoutput=`filename.ps`);

  3. Plot your graph. The plot command will create the file specified in the interface command.
  4. Follow the procedure described above for arbitrary .eps files

Including Mathematica Figures

  1. Produce the figure you want to include.

  2. Save the figure as a PostScript file using the command PSPrint[%n] where the output line of your graph is n.
  3. Use the command psfix filename.ps > newfile.ps to add necessary PostScript header information to your file.
  4. Follow the procedure described above for arbitrary .eps files

Including Geomview Graphics

  1. Create the Geomview scene you want to include.
  2. Use the PS Snapshot external module to save the scene as a PostScript file.
  3. Follow the procedure described above for arbitrary .eps files


Up: info for short term visitors

[HOME] The Geometry Center Home Page

Comments to: webmaster@geom.umn.edu
Created: Fri Sep 8 11:39:00 1995 --- Last modified: Jun 18 1996