[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: LaTeX in Octave
From: |
Fulford, Glenn |
Subject: |
RE: LaTeX in Octave |
Date: |
Thu, 23 Mar 2000 09:23:51 +1200 |
An alternative approach to those mentioned, is to use a LaTeX package called
PSfrag.
What PSfrag does, is replaces a text label in an eps file with a LaTeX
equivalent. For more information, see
http://ctan.unsw.edu.au/tex-archive/info/epslatex.pdf
and the PSfrag package can be downloaded from
http://ctan.unsw.edu.au/tex-archive/macros/latex/contrib/supported/psfrag/
Recently I saw posted in the Matlab newsgroup, by Arno Linnemann, a Matlab
function laprint.m
that interfaced nicely with psfrag, but I hadn't had a chance to try it out
yet.
I would expect this would be easy to port to Octave.
Laprint.m is free and available from
http://www.uni-kassel.de/~linne/matlab/
Here is an example:
1. Create the matlab plot:
>> set(0,'DefaultTextInterpreter','none')
>> plot([1 2])
>> title('\huge The \underline{true} $\int_\tau^\infty\tilde
y(t)dt$')
>> laprint
2. Push save in the LaPrint window.
3. Include unnamed.tex and unnamed.eps in a LaTeX document like this:
\documentclass{article}
\usepackage{epsfig,psfrag}
\begin{document}
\begin{figure}[ht]
\begin{center}
\input{unnamed.tex}
\end{center}
\end{figure}
\end{document}
4. Compile and view using, e.g., latex, dvips and ghostview
Hope this helps, Glenn.
________________________________________________________________
Glenn Fulford Ph: +64 4 922 1513 Fax: +64 4 528 1380
AgResearch
Wallaceville Animal Research Centre, Upper Hutt, New Zealand.
email: address@hidden address@hidden
Web: http://www.ma.adfa.edu.au/~grf http://www.agresearch.cri.nz
> -----Original Message-----
> From: Ben Sapp [SMTP:address@hidden
> Sent: Thursday, March 23, 2000 4:34 AM
> To: SZABO Sandor
> Cc: address@hidden
> Subject: Re: LaTeX in Octave
>
> SZABO Sandor wrote:
> >
> > Dear Octave users,
> >
> > I would like to print a function (e.g. Gauss function) with the label
> > including the
> > formula of it. Does exist a package which can handle LaTeX formula?
> > I'm interested in any possibilities.
> > Thanks,
> > Sandor Szabo
> >
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- LaTeX in Octave, SZABO Sandor, 2000/03/22
- RE: LaTeX in Octave,
Fulford, Glenn <=