Changeset 163 for trunk/SRC/Textoidl/textoidl.pro
- Timestamp:
- 08/29/06 14:59:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Textoidl/textoidl.pro
r134 r163 1 ;+ 2 ; @file_comments 3 ; Convert a valid TeX string to a valid IDL string for plot labels. 1 4 ; 2 ;+ 3 ; NAME: 4 ; TEXTOIDL 5 ; PURPOSE: 6 ; Convert a valid TeX string to a valid IDL string for plot labels. 7 ; CATEGORY: 8 ; text/strings 9 ; CALLING SEQUENCE: 10 ; new = textoidl(old) 11 ; INPUTS: 12 ; old -- TeX string to be converted. Will not be in 13 ; modified. old may be a string array. 14 ; KEYWORD PARAMETERS: 15 ; FONT -- Set to 0 to use hardware font, -1 to use 16 ; vector. Note that the only hardware font 17 ; supported is PostScript. 18 ; /TEX_SEQUENCES -- return the available TeX sequences 19 ; /HELP -- print out info on use of the function 20 ; and exit. 21 ; OUTPUTS: 22 ; new -- IDL string corresponding to old. out 23 ; COMMON BLOCKS: 24 ; SIDE EFFECTS: 25 ; NOTES: 5 ; @categories 6 ; Text, String 7 ; 8 ; @param INPUTSTRING {in}{required} 9 ; TeX string to be converted. Will not be modified. old may be a string array. 10 ; 11 ; @keyword FONT 12 ; Set to 0 to use hardware font, -1 to use 13 ; vector. Note that the only hardware font 14 ; supported is PostScript. 15 ; 16 ; @keyword TEX_SEQUENCES 17 ; return the available TeX sequences 18 ; 19 ; @keyword HELP 20 ; print out info on use of the function and exit. 21 ; 22 ; @restrictions 26 23 ; - Use the procedure SHOWTEX to get a list of the available TeX 27 24 ; control sequences. … … 32 29 ; - The FONT keyword overrides the font selected' 33 30 ; by !p.font' 34 ; EXAMPLE: 31 ; 32 ; @examples 35 33 ; out = TeXtoIDL('\Gamma^2 + 5N_{ed}') 36 34 ; The string out may be used in XYOUTS or other IDL text … … 38 36 ; exponent of 2, then a plus sign, then an N with the subscript 39 37 ; ed. 40 ; MODIFICATION HISTORY:41 ; $Id$38 ; 39 ; @history 42 40 ; $Log: textoidl.pro,v $ 43 41 ; Revision 1.7 2004/06/15 17:25:54 mcraig … … 62 60 ; Initial revision 63 61 ; 64 ; RELEASE:65 ; $Name: Rel_2_1_2 $66 ;67 ; COPYRIGHT:68 62 ; Copyright (C) 1996 The Regents of the University of California, All 69 63 ; Rights Reserved. Written by Matthew W. Craig. 70 64 ; See the file COPYRIGHT for restrictions on distrubting this code. 71 65 ; This code comes with absolutely NO warranty; see DISCLAIMER for details. 66 ; 67 ; @version 68 ; $Id$ 72 69 ;- 73 70 ; 74 FUNCTION Textoidl, InputString, $71 FUNCTION textoidl, InputString, $ 75 72 FONT=fnt, $ 76 73 HELP=hlp, $
Note: See TracChangeset
for help on using the changeset viewer.