Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sao.ru/precise/Midas_doc/doc/94NOV/vol1/node82.html
Дата изменения: Fri Feb 23 14:07:51 1996
Дата индексирования: Tue Oct 2 17:23:04 2012
Кодировка:

Поисковые слова: m 31
Encapsulated PostScript Files



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 LaTeX example 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}



Pascal Ballester
Fri Mar 24 17:17:52 MET 1995