next up previous contents index
Next: Examples Up: Graphic Facilities Previous: Handling of Plotfiles

  
Encapsulated PostScript Files

For any PostScript hardcopy printer that has been assigned by ASSIGN/GRAPH, MIDAS produces a so-called encapsulated PostScript file. Using a public domain macro package (e.g. Psfig/TEX) this PostScript plot file can, with a minimum of effort, be included in TEX or LATEX documents  LATEX}. To do so, in the TEX or LATEX document one should refer to the (possibly renamed) MIDAS PostScript file (normally pscrplot.ps). Below, follows a simple LATEXexample that shows how it works.
Example:
MIDAS 005> ASSIGN/GRAPH postscript
MIDAS 006> PLOT/ROW image [@100,@150:@150,@250] 20.0,20.0
MIDAS 007> OVERPLOT/TABLE table #1

In your directory we now have a PostScript file postscript.ps, containing the complete plot information written by the commands 006 and 007. Now, you can include this MIDAS PostScript file in our LATEX document, in this case using psfig, developed by Trevor Darrell (trevor@media.mit.edu). Here is how the LATEX text file with the included MIDAS plot then looks like.
Example:

  \documentstyle[11pt,psfig]{article}
   \begin{document}
    \section*{Abstract}
     We show a simple example of how one can include a PostScript figure,
     generated by MIDAS, into a existing \LaTeX document.
     \nopagebreak

     \begin{figure}[h]
      \centering{
       \hspace*{-1.cm}
       \vbox{\psfig{figure=postscript.ps,width=10cm,height=5cm}}\par
      }
     \end{figure}
   \end{document}



Petra Nass
1999-06-09