Latex Fonts and Octave

Ben Abbott bpabbott at mac.com
Fri Mar 27 05:45:09 CDT 2009


On Mar 27, 2009, at 5:42 AM, Ivan Sutoris wrote:

> It is also possible to use epslatexstandalone terminal, which outputs
> minimal tex file and eps figure. Tex file can be compiled directly by
> latex and replaces all texts and labels in figure using native tex
> fonts, so you should be also able to use tex notation. Resulting dvi
> can be converted to pdf (or one can add \usepackage{epstopdf} to tex
> file and use pdflatex directly). An artifical example:
>
> plot(rand(50,1))
> xlabel('Time')
> ylabel('$\varphi$')
> print myfig.tex -depslatexstandalone
> system('latex myfig.tex');
> system('dvipdfm myfig.dvi');
>
> Result should be file myfig.pdf - this works quite well on my system
> (Miktex 2.7).
>
> Regards
> Ivan Sutoris

Very cool!

Thomas, I can verify this works for me on Mac OSX.

If I understand your problem, this is a nice and simple solution.

Ben


More information about the Help-octave mailing list