🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.matlab
Article #34

Re: Figure Caption (mixing LaTeX and matlab plots)

#34
From: Craig Barratt
Date: Sun, 24 Jan 1993 19:56
52 lines
2944 bytes
In article <1jmuqlINNfal@phys2adm.usc.edu> ysun@phys2adm.usc.edu writes:

>I am currently using MATLAB-4.0 on SPARC station. I mainly use it for scienti-
>fic plotting. But I have some problem in writing Greek letters in the figure.
>Does anybody know how to do it in MATLAB?  Maybe at least using Latex.

I have written some LaTeX macros that make it easy to overlay postscript
figures with fragments of LaTeX.  I use these macros to place nice
LaTeX equations and math symbols on top of postscript figures.  The
macros are available via anonymous ftp as described below.

Description:

* PsFrag is a set of LaTeX macros for overlaying postscript figures with
  fragments of LaTeX.  More precisely, the PsFrag macros allow specific
  pieces of postscript text in a postscript figure (included via \epsfbox
  or \special) to be replaced with arbitrary fragments of LaTeX.  When
  your document is latex'ed and dvips'ed, each piece of postscript text
  is replaced by the LaTeX text.
  
  The postscript file might be produced, for example, by xfig, idraw,
  matlab, xmath, etc.  Each string displayed by postscript's show operator
  is a candidate for replacement by LaTeX text, math symbols, equations,
  pictures etc.  For example, you can include a matlab plot in a LaTeX
  document with the title, axis labels, and legend generated by LaTeX.

  The LaTeX fragments can be optionally rotated, scaled, and repositioned
  relative to the text being replaced.  The LaTeX fragments automatically
  track the postscript text position as the scaling and offsets of the
  \special or \epsfbox are changed.

* PsFrag is available via anonymous ftp from isl.stanford.edu
  (internet address 36.60.0.10).  Get the compressed tar file

	pub/boyd/psfrag/psfrag.tar.Z

  Extract the archive using uncompress and tar xvf (or gtar zxvf):

	uncompress psfrag.tar.Z
	tar xvf psfrag.tar

  See the files README, USAGE, INSTALL for detailed information.
  If you can't ftp then I can email you a uuencoded version.

* Note: PsFrag uses ghostscript (gs) from the gnu distribution, and assumes
  that your dvi to ps driver is Tomas Rokicki's dvips (Radical Eye Software).
  You will need both of these programs to use PsFrag.  Basically, PsFrag uses
  ghostscript to interpret the postscript figure and spit out a LaTeX
  picture environment that exactly lines up with the postscript figure.

Craig Barratt
craig@isl.stanford.edu
Technical Details
Message-ID: <1993Jan24.195635.26414@EE.Stanford.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!usenet.ins.cwru.edu!agate!stanford.edu!EE.Stanford.EDU!isl!craig
References: <1jmuqlINNfal@phys2adm.usc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.soft-sys.matlab
Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!usenet.ins.cwru.edu!agate!stanford.edu!EE.Stanford.EDU!isl!craig
From: craig@isl.Stanford.EDU (Craig Barratt)
Subject: Re: Figure Caption (mixing LaTeX and matlab plots)
Message-ID: <1993Jan24.195635.26414@EE.Stanford.EDU>
Keywords: figure caption
Sender: usenet@EE.Stanford.EDU (Usenet)
Organization: Stanford University
References: <1jmuqlINNfal@phys2adm.usc.edu>
Date: Sun, 24 Jan 93 19:56:35 GMT
Lines: 52