Such as: $\alpha_1$.
Can this be done in Scilab ?
Right now I am just using:
xstring(0.52,14,'alpha_1');
which looks mighty ugly.
First, add in your label the following formula:
xstring(0.52,14,'\tex{$alpha_1$}');
Then export your figure in eps
in the latex preamble, add
\usepackage{psfrag}
\psfragscanon
and the label will be translated into latex formula.
YC
ycollet wrote:
> First, add in your label the following formula:
> xstring(0.52,14,'\tex{$alpha_1$}');
> Then export your figure in eps
> in the latex preamble, add
> \usepackage{psfrag}
> \psfragscanon
>
> and the label will be translated into latex formula.
... but only if the eps is inserted into a LaTeX document, right?
It would be much better to have some LaTeX commands interpreted by
scilab graphics directly, see request 122 (http://
requestzilla.scilab.org/show_bug.cgi?id=122), open since almost two
years...
Matthias
Matthias Zenker wrote:
> It would be much better to have some LaTeX commands interpreted by
> scilab graphics directly, see request 122 (http://
> requestzilla.scilab.org/show_bug.cgi?id=122), open since almost two
> years...
Even worse, it's open since almost FOUR years (last modification was
two years ago)!!
Well, it is a request...
Btw, Scilab is open-source and now free, you can submit a patch to
introduce this feature (I promise that I will take some time to watch
your patch and incorporate it in the trunk).
Sylvestre
Sylvestre Ledru wrote:
> Well, it is a request...
Yes, but since the question arises regularly in the newsgroup, and
since MATLAB has this feature for a long time, wouldn't it be worth
considering even if it is ONLY a request...?
> Btw, Scilab is open-source and now free, you can submit a patch to
> introduce this feature (I promise that I will take some time to watch
> your patch and incorporate it in the trunk).
If I had the time and the knowledge to do it (I am not familiar with
the scilab source code), I would certainly do it.
In fact what we would need is the possibility to change fonts within a
graphics string to allow for superscript, subscript and greek letters.
Would it really be that hard to implement?
Matthias
Cheers
Apu
--
Message posted via http://www.mathkb.com