source: trunk/ToBeReviewed/TEXtoIDL/README @ 47

Last change on this file since 47 was 47, checked in by pinsard, 18 years ago

upgrade of TEXT2IDL/TEXtoIDL according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/ : files

  • Property svn:executable set to *
File size: 3.5 KB
Line 
1  Copyright (C) 1996 The Regents of the University of California, All
2  Rights Reserved.  Written by Matthew W. Craig.
3
4
5PURPOSE:
6   The purpose of the TeXtoIDL routines is to make it simple to use Greek
7letters, subscripts and superscripts in making labels for plots in
8IDL.  This is accomplished by allowing the user to use TeX control
9sequences for Greek letters and special symbols and for
10sub/superscripts.  The TeX control sequences are simple and easy to
11remember, especially if you already use TeX for writing papers (for
12those unfamiliar with TeX, an explanation of that notation is below).
13The translation is done for either vector or PostScript fonts.
14
15BUGS:
16   Please report any bugs you find or suggestions for improvement to:
17mcraig@mnstate.edu
18
19FILES:
20   For a list of the files in this distribution see the file FILES.
21   For a list of one line descriptions of the routines in this
22     distribution, see the file DESCRIPTIONS.
23
24INSTALLATION:
25   Put these routines somewhere in you IDL path.
26
27USE:
28   Once installed, type (in IDL):
29IDL> print,TeXtoIDL(/HELP)
30for brief instructions.  The command SHOWTeX will display the
31available TeX sequences on the current graphics device.  In addition,
32subscripts and superscripts in the usual TeX notation are available.
33For more details on what TeX notation is, see the section
34INTRO TO TeX, below.
35
36EXAMPLE:
37   If you type. . .
38IDL> str = TeXtoIDL("\rho^2 + 2\Gamma_{ij}")
39IDL> help, str
40STR             STRING    = '!7q!X!U2!N + 2!7C!X!Dij!N'
41IDL> xyouts,.5,.5,str,CHARSIZE=2.,/NORM
42
43then on the screen you will see the Greek letter rho with a 2 in the
44exponent, and then a + and then a 2 and then the uppercase Greek
45letter gamma, with an "ij" in the subscript.
46
47VERSION:
48  You are using version $Name: Rel_2_1_2 $ of TeXtoIDL.
49
50REVISION HISTORY:
51  See the file VERSIONS.
52
53LEGALITIES:
54   For copyright and redistribution restrictions, see the file
55   COPYRIGHT.
56
57   This software is provided on an "as is" basis, and has absolutely
58   NO warranty.  For more details, see the file DISCLAIMER.
59
60INTRO TO TeX:
61   TeX is a typesetting language which makes including equations in
62manuscripts very easy.  In particular, it has an easy to remember
63syntax for including Greek letters, special symbols, and subscripts
64and superscripts.  These routines emulate the behavior of TeX,
65allowing its syntax to be used in making IDL plot labels and the
66like. 
67
68   The TeX syntax for Greek letters is simple.  If you want, for
69example, the Greek letter "rho", just type "\rho" and you will get it.
70The IDL string for "rho" is "!7q!X" (for vector fonts) or "!Mr!X" (for
71PostScript fonts).  In any event, the IDL strings are not easy to
72remember, and depend on the font type.  If you type SHOWTEX at the IDL
73command line, a table will be made on the current graphics device
74showing which Greek letters and special symbols are available, and
75what they look like on your graphics device.
76
77   The syntax for sub/superscripts is also simple.  An example will make
78it clear.  If I write "N_{sub}", I will get an "N" with the subscript
79"sub".  The underscore begins the subscript, and everything enclosed
80in the braces is in the subscript.  Superscripts are similar;
81"N^{sup}" is an "N" with a superscript "sup".  Since it is frequent to
82have one character sub- or superscripts, braces are not needed for a
83one character script.  So "N^2" makes an "N" with a "2" in the
84exponent.  You can combine sub and superscripts, for example
85"N^2_{sub}", and you can even put subscripts on the things in your
86superscripts, e.g. "N^{N_j}", though this probably won't look very
87good.
Note: See TracBrowser for help on using the repository browser.