Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xtitle + subscript/superscript

1,086 views
Skip to first unread message

jlh...@gmail.com

unread,
Jul 11, 2006, 10:05:52 AM7/11/06
to
Hello

I re-post an old question that received no answer.
I do not reword it because I think it was sufficiently explicit.

thanks for any help.
jlhomme

--------------------------------------------------------------------------------------------------------
hello community!
i just wanna ask if it is possible to show subscript/superscript signs
within SCILABs 'xtitle' command. In MATLAB it is possible to get a
subscript character by coding "_{character}" and superscripts by coding
"^character". as i know, in OCTAVE it's possible too.
thanks for your inputs!
qbus

none

unread,
Jul 11, 2006, 1:45:28 PM7/11/06
to
It is not possible directly in scilab. But I know this is possible if
you export your graph as a latex something graph. Then with a special
latex package you can do it. look through the newgroup archives. I have
never done it and don't remember what is the exact method

Bruno

Matthias Zenker

unread,
Jul 12, 2006, 8:35:55 AM7/12/06
to

jlh...@gmail.com wrote:
> i just wanna ask if it is possible to show subscript/superscript signs
> within SCILABs 'xtitle' command. In MATLAB it is possible to get a
> subscript character by coding "_{character}" and superscripts by coding
> "^character". as i know, in OCTAVE it's possible too.

You can use the special characters contained in the charset, For
example, you can create a superscripted 1, 2 and 3 (¹²³, dont' know
if it will show up here) by holding ALT and typing 0185, 0178 and on
the numeric keypad. Some greek letters are also possible.
But I agree that it would be a lot better if scilab understood some
LaTeX commands like Matlab does, or if another possibility to create
special characters (charset switching within a string?) was
implemented. Currently the only alternative way I know of is to
position several strings (one per charset) by hand.
I just have created request #307 for that.

Matthias

ycollet

unread,
Jul 12, 2006, 2:53:17 PM7/12/06
to
Export your graphic to .eps
Use pstoedit to convert your .eps into a .fig (xfig) file
Change the "a^2" text into "\tex{$a^2$}" in the .fig file
Use the package psfrag to render the tex text in the figure.

YC

Matthias Zenker

unread,
Jul 13, 2006, 3:34:05 AM7/13/06
to

This is straightforward under Linux, agreed.
But does it work under Windows?
Even if it did, it would require a Windows version of pstoedit, xfig
and LaTeX installed. Contrarily to Linux, those programs are not part
of every Windows distribution. ;)
It would be good to have a scilab-internal solution, like in Matlab.

Matthias

Stibbons

unread,
Aug 1, 2006, 4:24:08 AM8/1/06
to

Just annother possibility is the scilab-command xs2fig and the
"xfig-clone" for windows called WinFig (it comes if I remember
correctly with fig2dev and pstoedit).

0 new messages