comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » New Lib (TeXtoIDL): Easy Greek letters in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
New Lib (TeXtoIDL): Easy Greek letters in IDL [message #6596] Thu, 11 July 1996 00:00 Go to next message
mcraig is currently offline  mcraig
Messages: 3
Registered: July 1996
Junior Member
Greetings,

I have written a set of IDL functions to make Greek letters, special
symbols, and sub/superscripts easier to use in IDL. The routines
translate a string written in the TeX typesetting notation to a string
in IDL format. The TeX notation is MUCH easier to remember. An
excerpt from the README is below. Also in the README, though not
included below, is an introduction to TeX notation for those not
familiar with it.

From the TeXtoIDL README:

PURPOSE:
The purpose of the TeXtoIDL routines is to make it simple to use Greek
letters, subscripts and superscripts in making labels for plots in
IDL. This is accomplished by allowing the user to use TeX control
sequences for Greek letters and special symbols and for
sub/superscripts. The TeX control sequences are simple and easy to
remember, especially if you already use TeX for writing papers (for
those unfamiliar with TeX, an explanation of that notation is below).
The translation is done for either vector or PostScript fonts.

EXAMPLE:
If you type. . .
IDL> str = TeXtoIDL("\rho^2 + 2\Gamma_{ij}")
IDL> print, str
STR STRING = '!7q!X!U2!N + 2!7C!X!Dij!N'
IDL> xyouts,.5,.5,str,CHARSIZE=2.,/NORM

then on the screen you will see the Greek letter rho with a 2 in the
exponent, and then a + and then a 2 and then the uppercase Greek
letter gamma, with an "ij" in the subscript.

The library is available at:

ftp://coma.berkeley.edu/pub/mcraig/idl/TeXtoIDL/

Enjoy,
Matt

-----------------------------------------------
Matt Craig
Astronomy Dept, U.C. Berkeley
mcraig@astro.berkeley.edu
Re: New Lib (TeXtoIDL): Easy Greek letters in IDL [message #6639 is a reply to message #6596] Thu, 18 July 1996 00:00 Go to previous message
Mirko Vukovic is currently offline  Mirko Vukovic
Messages: 124
Registered: January 1996
Senior Member
matt craig wrote:
>
> Greetings,
>
> I have written a set of IDL functions to make Greek letters, special
> symbols, and sub/superscripts easier to use in IDL. The routinesYesss!!!!. excellent idea.
--
Mirko Vukovic, Ph.D. mirko.vukovic@grc.varian.com
Varian Research Center Phone: (415) 424-4969
3075 Hansen Way, M/S K-109 Fax: (415) 424-6988
Palo Alto, CA 94304-1025
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems with the IDL TIME_TEST
Next Topic: Annotate trouble

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:49:33 PDT 2025

Total time taken to generate the page: 1.27788 seconds