Last change
on this file since 270 was
231,
checked in by pinsard, 17 years ago
|
improvements/corrections of some *.pro headers
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | ; |
---|
2 | ;+ |
---|
3 | ; NAME: |
---|
4 | ; SUB_SUP_IDL |
---|
5 | ; PURPOSE: |
---|
6 | ; Return the proper IDL font positioning command for TeX |
---|
7 | ; sub/superscripts. |
---|
8 | ; CATEGORY: |
---|
9 | ; CALLING SEQUENCE: |
---|
10 | ; fnt = sub_sup_idl( strn ) |
---|
11 | ; INPUTS: |
---|
12 | ; strn -- Either '^' or '_', the TeX super/subscript in |
---|
13 | ; characters |
---|
14 | ; KEYWORD PARAMETERS: |
---|
15 | ; /FORCE_UD -- Set this to use !U/!D instead of !E/!I for |
---|
16 | ; sub/superscripts . |
---|
17 | ; OUTPUTS: |
---|
18 | ; fnt -- Either '!U' or !E' for superscripts, out |
---|
19 | ; or '!D' or '!I' for subscripts. |
---|
20 | ; COMMON BLOCKS: |
---|
21 | ; SIDE EFFECTS: |
---|
22 | ; NOTES: |
---|
23 | ; EXAMPLE: |
---|
24 | ; LIBRARY FUNCTIONS CALLED: |
---|
25 | ; |
---|
26 | ; MODIFICATION HISTORY: |
---|
27 | ; $Id$ |
---|
28 | ; $Log: sub_sup_idl.pro,v $ |
---|
29 | ; Revision 1.1 1996/01/31 18:47:37 mcraig |
---|
30 | ; Initial revision |
---|
31 | ; |
---|
32 | ; RELEASE: |
---|
33 | ; $Name: Rel_2_1_2 $ |
---|
34 | ;- |
---|
35 | ; |
---|
36 | FUNCTION Sub_sup_idl, token, FORCE_UD = force_ud |
---|
37 | ; |
---|
38 | compile_opt idl2, strictarrsubs |
---|
39 | ; |
---|
40 | |
---|
41 | IF keyword_set(force_ud) THEN BEGIN |
---|
42 | IF (token EQ '^') THEN return, '!U' |
---|
43 | IF (token EQ '_') THEN return, '!D' |
---|
44 | return, '' |
---|
45 | ENDIF ELSE BEGIN |
---|
46 | IF (token EQ '^') THEN return, '!E' |
---|
47 | IF (token EQ '_') THEN return, '!I' |
---|
48 | return, '' |
---|
49 | ENDELSE |
---|
50 | |
---|
51 | END |
---|
52 | |
---|
53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.