Last change
on this file since 353 was
327,
checked in by pinsard, 17 years ago
|
modification of headers : mainly blanks around = sign for keywords in declaration of function and pro
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Rev | Line | |
---|
[67] | 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: |
---|
[231] | 27 | ; $Id$ |
---|
[67] | 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 $ |
---|
[327] | 34 | ; |
---|
[67] | 35 | ;- |
---|
[327] | 36 | FUNCTION sub_sup_idl, token, FORCE_UD=force_ud |
---|
[114] | 37 | ; |
---|
| 38 | compile_opt idl2, strictarrsubs |
---|
| 39 | ; |
---|
[67] | 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 |
---|
Note: See
TracBrowser
for help on using the repository browser.