home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / softsys / matlab / 134 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.8 KB  |  65 lines

  1. Newsgroups: comp.soft-sys.matlab
  2. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!agate!stanford.edu!EE.Stanford.EDU!isl!craig
  3. From: craig@isl.Stanford.EDU (Craig Barratt)
  4. Subject: Re: Figure Caption (mixing LaTeX and matlab plots)
  5. Message-ID: <1993Jan24.195635.26414@EE.Stanford.EDU>
  6. Keywords: figure caption
  7. Sender: usenet@EE.Stanford.EDU (Usenet)
  8. Organization: Stanford University
  9. References: <1jmuqlINNfal@phys2adm.usc.edu>
  10. Date: Sun, 24 Jan 93 19:56:35 GMT
  11. Lines: 52
  12.  
  13. In article <1jmuqlINNfal@phys2adm.usc.edu> ysun@phys2adm.usc.edu writes:
  14.  
  15. >I am currently using MATLAB-4.0 on SPARC station. I mainly use it for scienti-
  16. >fic plotting. But I have some problem in writing Greek letters in the figure.
  17. >Does anybody know how to do it in MATLAB?  Maybe at least using Latex.
  18.  
  19. I have written some LaTeX macros that make it easy to overlay postscript
  20. figures with fragments of LaTeX.  I use these macros to place nice
  21. LaTeX equations and math symbols on top of postscript figures.  The
  22. macros are available via anonymous ftp as described below.
  23.  
  24. Description:
  25.  
  26. * PsFrag is a set of LaTeX macros for overlaying postscript figures with
  27.   fragments of LaTeX.  More precisely, the PsFrag macros allow specific
  28.   pieces of postscript text in a postscript figure (included via \epsfbox
  29.   or \special) to be replaced with arbitrary fragments of LaTeX.  When
  30.   your document is latex'ed and dvips'ed, each piece of postscript text
  31.   is replaced by the LaTeX text.
  32.   
  33.   The postscript file might be produced, for example, by xfig, idraw,
  34.   matlab, xmath, etc.  Each string displayed by postscript's show operator
  35.   is a candidate for replacement by LaTeX text, math symbols, equations,
  36.   pictures etc.  For example, you can include a matlab plot in a LaTeX
  37.   document with the title, axis labels, and legend generated by LaTeX.
  38.  
  39.   The LaTeX fragments can be optionally rotated, scaled, and repositioned
  40.   relative to the text being replaced.  The LaTeX fragments automatically
  41.   track the postscript text position as the scaling and offsets of the
  42.   \special or \epsfbox are changed.
  43.  
  44. * PsFrag is available via anonymous ftp from isl.stanford.edu
  45.   (internet address 36.60.0.10).  Get the compressed tar file
  46.  
  47.     pub/boyd/psfrag/psfrag.tar.Z
  48.  
  49.   Extract the archive using uncompress and tar xvf (or gtar zxvf):
  50.  
  51.     uncompress psfrag.tar.Z
  52.     tar xvf psfrag.tar
  53.  
  54.   See the files README, USAGE, INSTALL for detailed information.
  55.   If you can't ftp then I can email you a uuencoded version.
  56.  
  57. * Note: PsFrag uses ghostscript (gs) from the gnu distribution, and assumes
  58.   that your dvi to ps driver is Tomas Rokicki's dvips (Radical Eye Software).
  59.   You will need both of these programs to use PsFrag.  Basically, PsFrag uses
  60.   ghostscript to interpret the postscript figure and spit out a LaTeX
  61.   picture environment that exactly lines up with the postscript figure.
  62.  
  63. Craig Barratt
  64. craig@isl.stanford.edu
  65.